Ignore:
Timestamp:
12/04/15 10:35:04 (5 years ago)
Author:
mkommend
Message:

#2521: Intermediate version of schedule encoding refactoring.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleCrossover.cs

    r12012 r13435  
    3232  public abstract class ScheduleCrossover : InstrumentedOperator, IScheduleCrossover, IStochasticOperator {
    3333
    34     public ILookupParameter<IScheduleEncoding> ChildParameter {
    35       get { return (ILookupParameter<IScheduleEncoding>)Parameters["Child"]; }
     34    public ILookupParameter<ISchedule> ChildParameter {
     35      get { return (ILookupParameter<ISchedule>)Parameters["Child"]; }
    3636    }
    37     public IScopeTreeLookupParameter<IScheduleEncoding> ParentsParameter {
    38       get { return (IScopeTreeLookupParameter<IScheduleEncoding>)Parameters["Parents"]; }
     37    public IScopeTreeLookupParameter<ISchedule> ParentsParameter {
     38      get { return (IScopeTreeLookupParameter<ISchedule>)Parameters["Parents"]; }
    3939    }
    4040    public ILookupParameter<IRandom> RandomParameter {
     
    4848      : base() {
    4949      Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic manipulation operators."));
    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."));
    53       ParentsParameter.ActualName = "SchedulingSolution";
     50      Parameters.Add(new LookupParameter<ISchedule>("Child", "The child solution resulting from the crossover."));
     51      ChildParameter.ActualName = "Schedule";
     52      Parameters.Add(new ScopeTreeLookupParameter<ISchedule>("Parents", "The parent solution which should be crossed."));
     53      ParentsParameter.ActualName = "Schedule";
    5454    }
    5555  }
Note: See TracChangeset for help on using the changeset viewer.