Changeset 17587 for branches/2521_ProblemRefactoring/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorMultiObjectiveProblem.cs
- Timestamp:
- 06/04/20 18:16:58 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorMultiObjectiveProblem.cs
r17544 r17587 22 22 #endregion 23 23 24 using System;25 24 using System.Linq; 26 25 using HEAL.Attic; … … 36 35 public abstract class RealVectorMultiObjectiveProblem : MultiObjectiveProblem<RealVectorEncoding, RealVector> { 37 36 [Storable] protected ReferenceParameter<IntValue> DimensionRefParameter { get; private set; } 38 public IValueParameter<IntValue> DimensionParameter => DimensionRefParameter;39 37 [Storable] protected ReferenceParameter<DoubleMatrix> BoundsRefParameter { get; private set; } 40 public IValueParameter<DoubleMatrix> BoundsParameter => BoundsRefParameter;41 38 42 39 public int Dimension { … … 47 44 public DoubleMatrix Bounds { 48 45 get { return BoundsRefParameter.Value; } 49 set { Bounds Parameter.Value = value; }46 set { BoundsRefParameter.Value = value; } 50 47 } 51 48 … … 99 96 100 97 private void RegisterEventHandlers() { 101 DimensionRefParameter.Value.ValueChanged += DimensionParameter_Value_ValueChanged; 102 BoundsRefParameter.ValueChanged += BoundsParameter_ValueChanged; 103 } 104 105 private void DimensionParameter_Value_ValueChanged(object sender, EventArgs e) { 106 DimensionOnChanged(); 107 } 108 109 private void BoundsParameter_ValueChanged(object sender, EventArgs e) { 110 BoundsOnChanged(); 98 IntValueParameterChangeHandler.Create(DimensionRefParameter, DimensionOnChanged); 99 DoubleMatrixParameterChangeHandler.Create(BoundsRefParameter, BoundsOnChanged); 111 100 } 112 101
Note: See TracChangeset
for help on using the changeset viewer.