Changeset 13403 for branches/ProblemRefactoring/HeuristicLab.Encodings.RealVectorEncoding/3.3/Moves/AdditiveMoveGenerator.cs
- Timestamp:
- 11/25/15 23:24:01 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemRefactoring/HeuristicLab.Encodings.RealVectorEncoding/3.3/Moves/AdditiveMoveGenerator.cs
r12012 r13403 31 31 [Item("AdditiveMoveGenerator", "Base class for all additive move generators.")] 32 32 [StorableClass] 33 public abstract class AdditiveMoveGenerator : SingleSuccessorOperator, I AdditiveRealVectorMoveOperator, IMoveGenerator, IStochasticOperator {33 public abstract class AdditiveMoveGenerator : SingleSuccessorOperator, IRealVectorAdditiveMoveOperator, IMoveGenerator, IStochasticOperator { 34 34 public override bool CanChangeName { 35 35 get { return false; } … … 43 43 public ILookupParameter<AdditiveMove> AdditiveMoveParameter { 44 44 get { return (LookupParameter<AdditiveMove>)Parameters["AdditiveMove"]; } 45 }46 protected ScopeParameter CurrentScopeParameter {47 get { return (ScopeParameter)Parameters["CurrentScope"]; }48 45 } 49 46 public IValueLookupParameter<DoubleMatrix> BoundsParameter { … … 59 56 Parameters.Add(new LookupParameter<RealVector>("RealVector", "The real vector for which moves should be generated.")); 60 57 Parameters.Add(new LookupParameter<AdditiveMove>("AdditiveMove", "The moves that should be generated in subscopes.")); 61 Parameters.Add(new ScopeParameter("CurrentScope", "The current scope where the moves should be added as subscopes."));62 58 Parameters.Add(new ValueLookupParameter<DoubleMatrix>("Bounds", "A 2 column matrix specifying the lower and upper bound for each dimension. If there are less rows than dimension the bounds vector is cycled.")); 63 59 } … … 72 68 moveScopes[i].Variables.Add(new Variable(AdditiveMoveParameter.ActualName, moves[i])); 73 69 } 74 CurrentScopeParameter.ActualValue.SubScopes.AddRange(moveScopes);70 ExecutionContext.Scope.SubScopes.AddRange(moveScopes); 75 71 return base.Apply(); 76 72 }
Note: See TracChangeset
for help on using the changeset viewer.