- Timestamp:
- 11/17/15 12:15:00 (9 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/LastLayerCloner.cs
r13203 r13206 29 29 30 30 namespace HeuristicLab.Algorithms.ALPS { 31 [Item("Last ScopeCloner", "An operator that creates a new scopeby cloning the current last one.")]31 [Item("LastLayerCloner", "An operator that creates a new layer by cloning the current last one.")] 32 32 [StorableClass] 33 public sealed class Last ScopeCloner : SingleSuccessorOperator {34 public OperatorParameter New ScopeOperatorParameter {35 get { return (OperatorParameter)Parameters["New ScopeOperator"]; }33 public sealed class LastLayerCloner : SingleSuccessorOperator { 34 public OperatorParameter NewLayerOperatorParameter { 35 get { return (OperatorParameter)Parameters["NewLayerOperator"]; } 36 36 } 37 37 38 public IOperator New ScopeOperator {39 get { return New ScopeOperatorParameter.Value; }40 set { New ScopeOperatorParameter.Value = value; }38 public IOperator NewLayerOperator { 39 get { return NewLayerOperatorParameter.Value; } 40 set { NewLayerOperatorParameter.Value = value; } 41 41 } 42 42 43 43 [StorableConstructor] 44 private Last ScopeCloner(bool deserializing) : base(deserializing) { }44 private LastLayerCloner(bool deserializing) : base(deserializing) { } 45 45 46 private Last ScopeCloner(LastScopeCloner original, Cloner cloner)46 private LastLayerCloner(LastLayerCloner original, Cloner cloner) 47 47 : base(original, cloner) { 48 48 } 49 49 public override IDeepCloneable Clone(Cloner cloner) { 50 return new Last ScopeCloner(this, cloner);50 return new LastLayerCloner(this, cloner); 51 51 } 52 52 53 public Last ScopeCloner()53 public LastLayerCloner() 54 54 : base() { 55 Parameters.Add(new OperatorParameter("New ScopeOperator", "An Operator that is performed on the new scope."));55 Parameters.Add(new OperatorParameter("NewLayerOperator", "An operator that is performed on the new layer.")); 56 56 } 57 57 … … 70 70 71 71 var next = new OperationCollection(base.Apply()); 72 if (New ScopeOperator != null)73 next.Insert(0, ExecutionContext.CreateOperation(New ScopeOperator, newScope));72 if (NewLayerOperator != null) 73 next.Insert(0, ExecutionContext.CreateOperation(NewLayerOperator, newScope)); 74 74 return next; 75 75 }
Note: See TracChangeset
for help on using the changeset viewer.