- Timestamp:
- 11/11/12 22:57:09 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleCrossover.cs
r8603 r8887 30 30 [Item("ScheduleCrossover", "A scheduling crossover operation.")] 31 31 [StorableClass] 32 public abstract class ScheduleCrossover <T> : SingleSuccessorOperator, IScheduleCrossover, IStochasticOperator where T : Item{33 #region IScheduleCrossover Members 34 public ILookupParameter<I temArray<T>> ParentsParameter {35 get { return ( ScopeTreeLookupParameter<T>)Parameters["Parents"]; }32 public abstract class ScheduleCrossover : SingleSuccessorOperator, IScheduleCrossover, IStochasticOperator { 33 34 public ILookupParameter<IScheduleEncoding> ChildParameter { 35 get { return (ILookupParameter<IScheduleEncoding>)Parameters["Child"]; } 36 36 } 37 38 public ILookupParameter<T> ChildParameter { 39 get { return (ILookupParameter<T>)Parameters["Child"]; } 37 public IScopeTreeLookupParameter<IScheduleEncoding> ParentsParameter { 38 get { return (IScopeTreeLookupParameter<IScheduleEncoding>)Parameters["Parents"]; } 40 39 } 41 #endregion42 43 40 public ILookupParameter<IRandom> RandomParameter { 44 41 get { return (LookupParameter<IRandom>)Parameters["Random"]; } … … 47 44 [StorableConstructor] 48 45 protected ScheduleCrossover(bool deserializing) : base(deserializing) { } 49 protected ScheduleCrossover(ScheduleCrossover<T> original, Cloner cloner) 50 : base(original, cloner) { 51 } 46 protected ScheduleCrossover(ScheduleCrossover original, Cloner cloner) : base(original, cloner) { } 52 47 public ScheduleCrossover() 53 48 : base() { 54 49 Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic manipulation operators.")); 55 Parameters.Add(new ScopeTreeLookupParameter<T>("Parents", "The parent solution which should be crossed.")); 50 Parameters.Add(new LookupParameter<IScheduleEncoding>("Child", "The child solution resulting from the crossover.")); 51 ChildParameter.ActualName = "SchedulingSolution"; 52 Parameters.Add(new ScopeTreeLookupParameter<IScheduleEncoding>("Parents", "The parent solution which should be crossed.")); 56 53 ParentsParameter.ActualName = "SchedulingSolution"; 57 Parameters.Add(new LookupParameter<T>("Child", "The child solution resulting from the crossover."));58 ChildParameter.ActualName = "SchedulingSolution";59 54 } 60 55 }
Note: See TracChangeset
for help on using the changeset viewer.