- Timestamp:
- 05/15/14 15:06:57 (10 years ago)
- Location:
- branches/SimSharp/HeuristicLab.Problems.Programmable/3.3/Operators
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SimSharp/HeuristicLab.Problems.Programmable/3.3/Operators/ParameterVectorCreater.cs
r10850 r10856 20 20 #endregion 21 21 22 using System.Linq; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; … … 29 30 [Item("ParameterVectorCreater", "Contains solution creators that together create a multi-vector encoding.")] 30 31 [StorableClass] 31 public class ParameterVectorCreater : InstrumentedOperator, ISolutionCreator {32 public class ParameterVectorCreater : MultiOperator<ISolutionCreator>, ISolutionCreator { 32 33 33 34 [StorableConstructor] … … 39 40 return new ParameterVectorCreater(this, cloner); 40 41 } 42 43 public override IOperation InstrumentedApply() { 44 var baseOperations = base.InstrumentedApply(); 45 return new OperationCollection(new[] { baseOperations }.Concat(Operators.Select(x => ExecutionContext.CreateOperation(x)))); 46 } 41 47 } 42 48 } -
branches/SimSharp/HeuristicLab.Problems.Programmable/3.3/Operators/ParameterVectorCrossover.cs
r10850 r10856 20 20 #endregion 21 21 22 using System.Linq; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; … … 29 30 [Item("ParameterVector Crossover", "Applies different crossovers to cross a multi vector encoding.")] 30 31 [StorableClass] 31 public class ParameterVectorCrossover : InstrumentedOperator, ICrossover {32 public class ParameterVectorCrossover : MultiOperator<ICrossover>, ICrossover { 32 33 33 34 [StorableConstructor] … … 41 42 return new ParameterVectorCrossover(this, cloner); 42 43 } 44 45 public override IOperation InstrumentedApply() { 46 var baseOperations = base.InstrumentedApply(); 47 return new OperationCollection(new[] { baseOperations }.Concat(Operators.Select(x => ExecutionContext.CreateOperation(x)))); 48 } 43 49 } 44 50 } -
branches/SimSharp/HeuristicLab.Problems.Programmable/3.3/Operators/ParameterVectorManipulator.cs
r10850 r10856 20 20 #endregion 21 21 22 using System.Linq; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; … … 29 30 [Item("ParameterVector Manipulator", "Applies different manipulators to change a multi vector encoding.")] 30 31 [StorableClass] 31 public class ParameterVectorManipulator : InstrumentedOperator, IManipulator {32 public class ParameterVectorManipulator : MultiOperator<IManipulator>, IManipulator { 32 33 33 34 [StorableConstructor] … … 41 42 return new ParameterVectorManipulator(this, cloner); 42 43 } 44 45 public override IOperation InstrumentedApply() { 46 var baseOperations = base.InstrumentedApply(); 47 return new OperationCollection(new[] { baseOperations }.Concat(Operators.Select(x => ExecutionContext.CreateOperation(x)))); 48 } 43 49 } 44 50 }
Note: See TracChangeset
for help on using the changeset viewer.