Changeset 17433
- Timestamp:
- 02/10/20 17:29:35 (5 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace
- Files:
-
- 31 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/JsonItemBaseControl.Designer.cs
r17410 r17433 30 30 this.textBoxName = new System.Windows.Forms.TextBox(); 31 31 this.label1 = new System.Windows.Forms.Label(); 32 this.labelDescription = new System.Windows.Forms.Label(); 33 this.textBoxDescription = new System.Windows.Forms.TextBox(); 32 34 this.SuspendLayout(); 33 35 // … … 56 58 this.textBoxActualName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 57 59 | System.Windows.Forms.AnchorStyles.Right))); 58 this.textBoxActualName.Location = new System.Drawing.Point(92, 49);60 this.textBoxActualName.Location = new System.Drawing.Point(92, 75); 59 61 this.textBoxActualName.Name = "textBoxActualName"; 60 62 this.textBoxActualName.Size = new System.Drawing.Size(404, 20); … … 64 66 // 65 67 this.labelActualName.AutoSize = true; 66 this.labelActualName.Location = new System.Drawing.Point(6, 52);68 this.labelActualName.Location = new System.Drawing.Point(6, 78); 67 69 this.labelActualName.Name = "labelActualName"; 68 70 this.labelActualName.Size = new System.Drawing.Size(65, 13); … … 91 93 this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; 92 94 // 95 // labelDescription 96 // 97 this.labelDescription.AutoSize = true; 98 this.labelDescription.Location = new System.Drawing.Point(6, 52); 99 this.labelDescription.Name = "labelDescription"; 100 this.labelDescription.Size = new System.Drawing.Size(60, 13); 101 this.labelDescription.TabIndex = 13; 102 this.labelDescription.Text = "Description"; 103 // 104 // textBoxDescription 105 // 106 this.textBoxDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 107 | System.Windows.Forms.AnchorStyles.Right))); 108 this.textBoxDescription.Location = new System.Drawing.Point(92, 49); 109 this.textBoxDescription.Name = "textBoxDescription"; 110 this.textBoxDescription.Size = new System.Drawing.Size(404, 20); 111 this.textBoxDescription.TabIndex = 14; 112 // 93 113 // JsonItemBaseControl 94 114 // 95 115 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 96 116 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 117 this.Controls.Add(this.textBoxDescription); 118 this.Controls.Add(this.labelDescription); 97 119 this.Controls.Add(this.labelEnable); 98 120 this.Controls.Add(this.checkBoxActive); … … 117 139 private System.Windows.Forms.TextBox textBoxName; 118 140 private System.Windows.Forms.Label label1; 141 private System.Windows.Forms.Label labelDescription; 142 private System.Windows.Forms.TextBox textBoxDescription; 119 143 } 120 144 } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/JsonItemBaseControl.cs
r17431 r17433 24 24 false, DataSourceUpdateMode.OnPropertyChanged); 25 25 textBoxName.DataBindings.Add("Text", VM, nameof(JsonItemVMBase.Name)); 26 textBoxDescription.DataBindings.Add("Text", VM, nameof(JsonItemVMBase.Description)); 26 27 textBoxActualName.DataBindings.Add("Text", VM, nameof(JsonItemVMBase.ActualName)); 27 28 28 //checkBoxActive.Checked = VM.Selected;29 //textBoxName.Text = VM.Item.Name;30 29 if (string.IsNullOrWhiteSpace(VM.Item.ActualName)) 31 30 textBoxActualName.ReadOnly = true; -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/ArrayValueVM.cs
r17431 r17433 15 15 protected override double MaxTypeValue => double.MaxValue; 16 16 17 public override JsonItemBaseControl GetControl() => new JsonItemDoubleArrayValueControl(this); 17 public override JsonItemBaseControl GetControl() => 18 new JsonItemDoubleArrayValueControl(this); 18 19 19 20 public override double[] Value { … … 33 34 protected override int MaxTypeValue => int.MaxValue; 34 35 35 public override JsonItemBaseControl GetControl() => new JsonItemIntArrayValueControl(this); 36 public override JsonItemBaseControl GetControl() => 37 new JsonItemIntArrayValueControl(this); 36 38 37 39 public override int[] Value { … … 46 48 public abstract class ArrayValueVM<T> : RangedValueBaseVM<T> { 47 49 48 public ArrayValueVM() { 49 //base.ItemChanged += OnItemChanged; 50 } 50 public ArrayValueVM() { } 51 51 52 52 public void SetIndexValue(object obj, int index) { -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/JsonItemVMBase.cs
r17431 r17433 58 58 } 59 59 60 public string Description { 61 get => Item.Description; 62 set { 63 Item.Description = value; 64 OnPropertyChange(this, nameof(Description)); 65 } 66 } 67 60 68 public string ActualName { 61 69 get => Item.ActualName; -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/MatrixValueVM.cs
r17431 r17433 10 10 public class DoubleMatrixValueVM : MatrixValueVM<double> { 11 11 public override Type JsonItemType => typeof(DoubleMatrixJsonItem); 12 public override JsonItemBaseControl GetControl() => new JsonItemDoubleMatrixValueControl(this); 12 public override JsonItemBaseControl GetControl() => 13 new JsonItemDoubleMatrixValueControl(this); 13 14 14 15 public override double[][] Value { -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/SingleValueVM.cs
r17420 r17433 14 14 protected override int MaxTypeValue => int.MaxValue; 15 15 16 public override JsonItemBaseControl GetControl() => 16 public override JsonItemBaseControl GetControl() => 17 17 new JsonItemIntValueControl(this); 18 18 } … … 24 24 protected override double MaxTypeValue => double.MaxValue; 25 25 26 public override JsonItemBaseControl GetControl() => 26 public override JsonItemBaseControl GetControl() => 27 27 new JsonItemDoubleValueControl(this); 28 28 } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemBoolControl.Designer.cs
r17410 r17433 33 33 | System.Windows.Forms.AnchorStyles.Right))); 34 34 this.checkBoxValue.AutoSize = true; 35 this.checkBoxValue.Location = new System.Drawing.Point(92, 75);35 this.checkBoxValue.Location = new System.Drawing.Point(92, 101); 36 36 this.checkBoxValue.Name = "checkBoxValue"; 37 37 this.checkBoxValue.Size = new System.Drawing.Size(15, 14); … … 42 42 // 43 43 this.label2.AutoSize = true; 44 this.label2.Location = new System.Drawing.Point(6, 75);44 this.label2.Location = new System.Drawing.Point(6, 101); 45 45 this.label2.Name = "label2"; 46 46 this.label2.Size = new System.Drawing.Size(34, 13); … … 56 56 this.Controls.Add(this.checkBoxValue); 57 57 this.Name = "JsonItemBoolControl"; 58 this.Size = new System.Drawing.Size(500, 1 05);58 this.Size = new System.Drawing.Size(500, 140); 59 59 this.Controls.SetChildIndex(this.checkBoxValue, 0); 60 60 this.Controls.SetChildIndex(this.label2, 0); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemMultiValueControl.Designer.cs
r17431 r17433 35 35 | System.Windows.Forms.AnchorStyles.Right))); 36 36 this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; 37 this.dataGridView.Location = new System.Drawing.Point(9, 75);37 this.dataGridView.Location = new System.Drawing.Point(9, 101); 38 38 this.dataGridView.Name = "dataGridView"; 39 this.dataGridView.Size = new System.Drawing.Size(487, 171);39 this.dataGridView.Size = new System.Drawing.Size(487, 208); 40 40 this.dataGridView.TabIndex = 13; 41 41 // … … 44 44 this.numericRangeControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) 45 45 | System.Windows.Forms.AnchorStyles.Right))); 46 this.numericRangeControl1.Location = new System.Drawing.Point(9, 252);46 this.numericRangeControl1.Location = new System.Drawing.Point(9, 315); 47 47 this.numericRangeControl1.Name = "numericRangeControl1"; 48 48 this.numericRangeControl1.Size = new System.Drawing.Size(487, 128); 49 49 this.numericRangeControl1.TabIndex = 14; 50 50 // 51 // JsonItem ArrayValueControl51 // JsonItemMultiValueControl 52 52 // 53 53 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); … … 55 55 this.Controls.Add(this.numericRangeControl1); 56 56 this.Controls.Add(this.dataGridView); 57 this.Name = "JsonItem ArrayValueControl";58 this.Size = new System.Drawing.Size(502, 386);57 this.Name = "JsonItemMultiValueControl"; 58 this.Size = new System.Drawing.Size(502, 449); 59 59 this.Controls.SetChildIndex(this.dataGridView, 0); 60 60 this.Controls.SetChildIndex(this.numericRangeControl1, 0); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemMultiValueControl.cs
r17431 r17433 10 10 11 11 namespace HeuristicLab.JsonInterface.OptimizerIntegration { 12 12 13 13 public class JsonItemDoubleMatrixValueControl : JsonItemMultiValueControl<double> { 14 14 … … 81 81 protected abstract void SaveCellData(object data, int col, int row); 82 82 83 /*84 public JsonItemMultiValueControl(JsonItemVMBase vm, object dataSource) : base(vm) {85 InitializeComponent();86 dataGridView.DataSource = dataSource;87 88 InitRangeBinding();89 }90 */91 83 private void InitRangeBinding() { 92 84 NumericRangeControl = numericRangeControl1; -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemRangeControl.Designer.cs
r17432 r17433 41 41 this.groupBox1.Controls.Add(this.label4); 42 42 this.groupBox1.Controls.Add(this.label2); 43 this.groupBox1.Location = new System.Drawing.Point(9, 75);43 this.groupBox1.Location = new System.Drawing.Point(9, 101); 44 44 this.groupBox1.Name = "groupBox1"; 45 45 this.groupBox1.Size = new System.Drawing.Size(487, 64); … … 90 90 this.numericRangeControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 91 91 | System.Windows.Forms.AnchorStyles.Right))); 92 this.numericRangeControl1.Location = new System.Drawing.Point(9, 1 45);92 this.numericRangeControl1.Location = new System.Drawing.Point(9, 171); 93 93 this.numericRangeControl1.Name = "numericRangeControl1"; 94 94 this.numericRangeControl1.Size = new System.Drawing.Size(487, 112); … … 102 102 this.Controls.Add(this.groupBox1); 103 103 this.Name = "JsonItemRangeControl"; 104 this.Size = new System.Drawing.Size(500, 262);104 this.Size = new System.Drawing.Size(500, 301); 105 105 this.Controls.SetChildIndex(this.groupBox1, 0); 106 106 this.Controls.SetChildIndex(this.numericRangeControl1, 0); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValidValuesControl.Designer.cs
r17417 r17433 44 44 this.tableOptions.RowCount = 1; 45 45 this.tableOptions.RowStyles.Add(new System.Windows.Forms.RowStyle()); 46 this.tableOptions.Size = new System.Drawing.Size(478, 137);46 this.tableOptions.Size = new System.Drawing.Size(478, 417); 47 47 this.tableOptions.TabIndex = 12; 48 48 // … … 54 54 this.groupBoxRange.AutoSize = true; 55 55 this.groupBoxRange.Controls.Add(this.tableOptions); 56 this.groupBoxRange.Location = new System.Drawing.Point(6, 1 08);56 this.groupBoxRange.Location = new System.Drawing.Point(6, 128); 57 57 this.groupBoxRange.Name = "groupBoxRange"; 58 this.groupBoxRange.Size = new System.Drawing.Size(490, 162);58 this.groupBoxRange.Size = new System.Drawing.Size(490, 442); 59 59 this.groupBoxRange.TabIndex = 14; 60 60 this.groupBoxRange.TabStop = false; … … 67 67 this.comboBoxValues.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 68 68 this.comboBoxValues.FormattingEnabled = true; 69 this.comboBoxValues.Location = new System.Drawing.Point(92, 75);69 this.comboBoxValues.Location = new System.Drawing.Point(92, 101); 70 70 this.comboBoxValues.Name = "comboBoxValues"; 71 71 this.comboBoxValues.Size = new System.Drawing.Size(404, 21); … … 75 75 // 76 76 this.label2.AutoSize = true; 77 this.label2.Location = new System.Drawing.Point(6, 78);77 this.label2.Location = new System.Drawing.Point(6, 104); 78 78 this.label2.Name = "label2"; 79 79 this.label2.Size = new System.Drawing.Size(34, 13); … … 91 91 this.ForeColor = System.Drawing.Color.Black; 92 92 this.Name = "JsonItemValidValuesControl"; 93 this.Size = new System.Drawing.Size(500, 276);93 this.Size = new System.Drawing.Size(500, 576); 94 94 this.Controls.SetChildIndex(this.groupBoxRange, 0); 95 95 this.Controls.SetChildIndex(this.comboBoxValues, 0); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValueControl.Designer.cs
r17432 r17433 33 33 this.textBoxValue.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 34 34 | System.Windows.Forms.AnchorStyles.Right))); 35 this.textBoxValue.Location = new System.Drawing.Point(92, 75);35 this.textBoxValue.Location = new System.Drawing.Point(92, 101); 36 36 this.textBoxValue.Name = "textBoxValue"; 37 37 this.textBoxValue.Size = new System.Drawing.Size(404, 20); … … 41 41 // 42 42 this.label2.AutoSize = true; 43 this.label2.Location = new System.Drawing.Point(6, 78);43 this.label2.Location = new System.Drawing.Point(6, 104); 44 44 this.label2.Name = "label2"; 45 45 this.label2.Size = new System.Drawing.Size(34, 13); … … 49 49 // numericRangeControl1 50 50 // 51 this.numericRangeControl1.Location = new System.Drawing.Point(9, 101); 52 this.numericRangeControl1.Anchor = System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right; 51 this.numericRangeControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 52 | System.Windows.Forms.AnchorStyles.Right))); 53 this.numericRangeControl1.Location = new System.Drawing.Point(9, 127); 53 54 this.numericRangeControl1.Name = "numericRangeControl1"; 54 55 this.numericRangeControl1.Size = new System.Drawing.Size(487, 112); … … 63 64 this.Controls.Add(this.textBoxValue); 64 65 this.Name = "JsonItemValueControl"; 65 this.Size = new System.Drawing.Size(500, 2 20);66 this.Size = new System.Drawing.Size(500, 247); 66 67 this.Controls.SetChildIndex(this.textBoxValue, 0); 67 68 this.Controls.SetChildIndex(this.label2, 0); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValueControl.cs
r17420 r17433 11 11 12 12 namespace HeuristicLab.JsonInterface.OptimizerIntegration { 13 13 14 14 public class JsonItemIntValueControl : JsonItemValueControl { 15 15 … … 21 21 Init(); 22 22 } 23 24 23 } 25 24 … … 33 32 Init(); 34 33 } 35 36 34 } 37 35 38 36 public abstract partial class JsonItemValueControl : JsonItemBaseControl { 39 37 #region Protected Properties -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/AlgorithmConverter.cs
r17420 r17433 27 27 item.AddChildren(new ResultItem() { 28 28 Name = res.Name, 29 Description = value.ItemDescription, 29 30 Value = true, 30 31 Range = new object[] { true, false } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/BaseConverter.cs
r17410 r17433 29 29 (IItem)Activator.CreateInstance(type,args); 30 30 31 protected T Instantiate<T>(params object[] args) => (T)Instantiate(typeof(T), args); 32 31 33 32 protected object GetMaxValue(Type t) { 34 33 TypeCode typeCode = Type.GetTypeCode(t); 35 36 34 37 35 if (t.IsEqualTo(typeof(PercentValue))) -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/ConstrainedValueParameterConverter.cs
r17420 r17433 32 32 IJsonItem item = new StringJsonItem() { 33 33 Name = parameter.Name, 34 Description = value.ItemDescription, 34 35 Value = parameter.ActualValue?.ToString(), 35 36 Range = GetValidValues(parameter).Select(x => x.ToString()) -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/EnumTypeConverter.cs
r17410 r17433 22 22 return new StringJsonItem() { 23 23 Name = value.ItemName, 24 Description = value.ItemDescription, 24 25 Value = Enum.GetName(enumType, val), 25 26 Range = Enum.GetNames(enumType) -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/LookupParameterConverter.cs
r17407 r17433 19 19 IJsonItem item = new JsonItem() { 20 20 Name = parameter.Name, 21 Description = parameter.Description, 21 22 ActualName = ((ILookupParameter)parameter).ActualName 22 23 }; -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/MultiCheckedOperatorConverter.cs
r17420 r17433 26 26 item.AddChildren(new BoolJsonItem() { 27 27 Name = op.Name, 28 Description = op.Description, 28 29 Value = val.Operators.ItemChecked(op), 29 30 Range = new bool[] { false, true } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/ParameterizedItemConverter.cs
r17420 r17433 22 22 23 23 public override IJsonItem Extract(IItem value, IJsonItemConverter root) { 24 IJsonItem item = new JsonItem() { Name = value.ItemName };24 var parameterizedItem = value as IParameterizedItem; 25 25 26 var parameterizedItem = value as IParameterizedItem; 26 IJsonItem item = new JsonItem() { 27 Name = value.ItemName, 28 Description = value.ItemDescription 29 }; 30 27 31 foreach (var param in parameterizedItem.Parameters) { 28 32 if (!param.Hidden) { -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/RegressionProblemDataConverter.cs
r17420 r17433 20 20 21 21 public override IJsonItem Extract(IItem value, IJsonItemConverter root) { 22 IJsonItem item = new JsonItem() { Name = value.ItemName }; 22 IJsonItem item = new JsonItem() { 23 Name = value.ItemName, 24 Description = value.ItemDescription 25 }; 23 26 24 27 dynamic val = (dynamic)value; -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/StringValueConverter.cs
r17410 r17433 18 18 new StringJsonItem() { 19 19 Name = value.ItemName, 20 Description = value.ItemDescription, 20 21 Value = ((StringValue)value).Value 21 22 }; -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/ValueLookupParameterConverter.cs
r17420 r17433 25 25 if (param.Value != null) { 26 26 IJsonItem tmp = root.Extract(param.Value, root); 27 /*tmp.Parent = item;28 actualValue = tmp.Value;29 actualRange = tmp.Range;30 */31 27 item = tmp; 32 28 } else { … … 34 30 } 35 31 item.Name = param.Name; 32 item.Description = param.Description; 36 33 item.ActualName = param.ActualName; 37 34 return item; -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/ValueParameterConverter.cs
r17420 r17433 23 23 24 24 IJsonItem item = new JsonItem() { 25 Name = parameter.Name 25 Name = parameter.Name, 26 Description = parameter.Description 26 27 }; 27 28 … … 31 32 if (tmp.Name == "[OverridableParamName]") { 32 33 tmp.Name = parameter.Name; 34 tmp.Description = parameter.Description; 33 35 item = tmp; 34 36 //JsonItem.Merge(item as JsonItem, tmp as JsonItem); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/ValueRangeConverter.cs
r17420 r17433 26 26 return new IntRangeJsonItem() { 27 27 Name = "[OverridableParamName]", 28 Description = value.ItemDescription, 28 29 Value = new int[] { range.Start, range.End }, 29 30 Range = new int[] { int.MinValue, int.MaxValue } … … 47 48 return new DoubleRangeJsonItem() { 48 49 Name = "[OverridableParamName]", 50 Description = value.ItemDescription, 49 51 Value = new double[] { range.Start, range.End }, 50 52 Range = new double[] { double.MinValue, double.MaxValue } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/ValueTypeArrayConverter.cs
r17420 r17433 28 28 new IntArrayJsonItem() { 29 29 Name = "[OverridableParamName]", 30 Description = value.ItemDescription, 30 31 Value = ((IntArray)value).CloneAsArray(), 31 32 Range = new int[] { int.MinValue, int.MaxValue } … … 51 52 new DoubleArrayJsonItem() { 52 53 Name = "[OverridableParamName]", 54 Description = value.ItemDescription, 53 55 Value = ((DoubleArray)value).CloneAsArray(), 54 56 Range = new double[] { double.MinValue, double.MaxValue } … … 74 76 new DoubleArrayJsonItem() { 75 77 Name = "[OverridableParamName]", 78 Description = value.ItemDescription, 76 79 Value = ((PercentArray)value).CloneAsArray(), 77 80 Range = new double[] { 0.0d, 1.0d } … … 97 100 new BoolArrayJsonItem() { 98 101 Name = "[OverridableParamName]", 102 Description = value.ItemDescription, 99 103 Value = ((BoolArray)value).CloneAsArray(), 100 104 Range = new bool[] { false, true } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/ValueTypeMatrixConverter.cs
r17420 r17433 21 21 new IntMatrixJsonItem() { 22 22 Name = "[OverridableParamName]", 23 Description = value.ItemDescription, 23 24 Value = Transform((IntMatrix)value), 24 25 Range = new int[] { int.MinValue, int.MaxValue } … … 39 40 new DoubleMatrixJsonItem() { 40 41 Name = "[OverridableParamName]", 42 Description = value.ItemDescription, 41 43 Value = Transform((DoubleMatrix)value), 42 44 Range = new double[] { double.MinValue, double.MaxValue } … … 57 59 new DoubleMatrixJsonItem() { 58 60 Name = "[OverridableParamName]", 61 Description = value.ItemDescription, 59 62 Value = Transform((PercentMatrix)value), 60 63 Range = new double[] { 0.0d, 1.0d } … … 75 78 new BoolMatrixJsonItem() { 76 79 Name = "[OverridableParamName]", 80 Description = value.ItemDescription, 77 81 Value = Transform((BoolMatrix)value), 78 82 Range = new bool[] { false, true } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/ValueTypeValueConverter.cs
r17410 r17433 19 19 new IntJsonItem() { 20 20 Name = "[OverridableParamName]", 21 Description = value.ItemDescription, 21 22 Value = ((IntValue)value).Value, 22 23 Range = new int[] { int.MinValue, int.MaxValue } … … 34 35 new DoubleJsonItem() { 35 36 Name = "[OverridableParamName]", 37 Description = value.ItemDescription, 36 38 Value = ((DoubleValue)value).Value, 37 39 Range = new double[] { double.MinValue, double.MaxValue } … … 49 51 new DoubleJsonItem() { 50 52 Name = "[OverridableParamName]", 53 Description = value.ItemDescription, 51 54 Value = ((PercentValue)value).Value, 52 55 Range = new double[] { double.MinValue, double.MaxValue } … … 64 67 new BoolJsonItem() { 65 68 Name = "[OverridableParamName]", 69 Description = value.ItemDescription, 66 70 Value = ((BoolValue)value).Value, 67 71 Range = new bool[] { false, true } … … 79 83 new DateTimeJsonItem() { 80 84 Name = "[OverridableParamName]", 85 Description = value.ItemDescription, 81 86 Value = ((DateTimeValue)value).Value, 82 87 Range = new DateTime[] { DateTime.MinValue, DateTime.MaxValue } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Interfaces/IJsonItem.cs
r17420 r17433 9 9 public interface IJsonItem { 10 10 string Name { get; set; } 11 12 string Description { get; set; } 11 13 12 14 string Path { -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/JsonItem.cs
r17420 r17433 41 41 42 42 public virtual string Name { get; set; } 43 44 public virtual string Description { get; set; } 43 45 44 46 public virtual string Path { -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/UnsupportedJsonItem.cs
r17408 r17433 9 9 public class UnsupportedJsonItem : JsonItem { 10 10 public override string Name { 11 get => throw new NotSupportedException(); 12 set => throw new NotSupportedException(); 13 } 14 15 public override string Description { 11 16 get => throw new NotSupportedException(); 12 17 set => throw new NotSupportedException();
Note: See TracChangeset
for help on using the changeset viewer.