- Timestamp:
- 05/28/20 14:41:43 (5 years ago)
- Location:
- branches/2521_ProblemRefactoring/HeuristicLab.Parameters/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Parameters/3.3/FixedValueParameter.cs
r17532 r17567 39 39 } 40 40 41 public override void ForceValue(T value) {42 throw new NotSupportedException("FixedValueParameters do not support setting their value.");43 }44 45 41 [StorableConstructor] 46 42 protected FixedValueParameter(StorableConstructorFlag _) : base(_) { } -
branches/2521_ProblemRefactoring/HeuristicLab.Parameters/3.3/OptionalValueParameter.cs
r17317 r17567 49 49 } 50 50 } 51 public virtual void ForceValue(T value) {52 DoSetValue(value);53 }54 51 private void DoSetValue(T value) { 55 52 if (value != this.value) { -
branches/2521_ProblemRefactoring/HeuristicLab.Parameters/3.3/ReferenceParameter.cs
r17566 r17567 166 166 return new ReferenceParameter<T>(this, cloner); 167 167 } 168 169 public void ForceValue(T value) { ReferencedParameter.ForceValue(value); }170 168 } 171 169 … … 195 193 return new ReferenceParameter<T, U>(this, cloner); 196 194 } 197 198 public void ForceValue(T value) { ReferencedParameter.ForceValue(value); }199 195 } 200 196 }
Note: See TracChangeset
for help on using the changeset viewer.