Changeset 17473 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/ValueTypeMatrixConverter.cs
- Timestamp:
- 03/10/20 17:17:37 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/ValueTypeMatrixConverter.cs
r17471 r17473 23 23 Description = value.ItemDescription, 24 24 Value = Transform((IntMatrix)value), 25 Range = new int[] { int.MinValue, int.MaxValue } 25 Minimum = int.MinValue, 26 Maximum = int.MaxValue 26 27 }; 27 28 } … … 42 43 Description = value.ItemDescription, 43 44 Value = Transform((DoubleMatrix)value), 44 Range = new double[] { double.MinValue, double.MaxValue }, 45 Minimum = double.MinValue, 46 Maximum = double.MaxValue, 45 47 RowNames = ((DoubleMatrix)value).RowNames, 46 48 ColumnNames = ((DoubleMatrix)value).ColumnNames … … 63 65 Description = value.ItemDescription, 64 66 Value = Transform((PercentMatrix)value), 65 Range = new double[] { 0.0d, 1.0d } 67 Minimum = 0.0d, 68 Maximum = 1.0d 66 69 }; 67 70 } … … 79 82 public override IJsonItem Extract(IItem value, IJsonItemConverter root) => 80 83 new BoolMatrixJsonItem() { 81 Name = "[OverridableParamName]", 84 //Name = "[OverridableParamName]", 85 Name = value.ItemName, 82 86 Description = value.ItemDescription, 83 Value = Transform((BoolMatrix)value), 84 Range = new bool[] { false, true } 87 Value = Transform((BoolMatrix)value) 85 88 }; 86 89 }
Note: See TracChangeset
for help on using the changeset viewer.