Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/11/12 22:57:09 (12 years ago)
Author:
abeham
Message:

#1329:

  • Moved decoders and evaluators from encoding to problem
  • Removed unnecessary state variables in operators
  • Introduced parameters in interfaces and added wiring code
  • Removed ConcreteScheduleManipulator as it does not perform any manipulation
  • Made ErrorPolicy and ForcingStrategy configurable and added views for them
  • Renamed the SchedulingEvaluationAlgorithm and also converted the AlgorithmOperator to a SingleSuccessorOperator
  • Fixed Plugin- and AssemblyFileVersion
  • Added missing license headers
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleCreator.cs

    r8603 r8887  
    2929  [Item("ScheduleCreator", "Represents the generalized form of creators for Scheduling Problems.")]
    3030  [StorableClass]
    31   public abstract class ScheduleCreator<T> : SingleSuccessorOperator, IScheduleCreator where T : Item {
    32     public ILookupParameter<T> ScheduleEncodingParameter {
    33       get { return (ILookupParameter<T>)Parameters["ScheduleEncoding"]; }
     31  public abstract class ScheduleCreator : SingleSuccessorOperator, IScheduleCreator {
     32
     33    public ILookupParameter<IScheduleEncoding> ScheduleEncodingParameter {
     34      get { return (ILookupParameter<IScheduleEncoding>)Parameters["ScheduleEncoding"]; }
    3435    }
    35 
    3636
    3737    [StorableConstructor]
    3838    protected ScheduleCreator(bool deserializing) : base(deserializing) { }
    39     protected ScheduleCreator(ScheduleCreator<T> original, Cloner cloner)
    40       : base(original, cloner) {
    41     }
     39    protected ScheduleCreator(ScheduleCreator original, Cloner cloner) : base(original, cloner) { }
    4240    public ScheduleCreator()
    4341      : base() {
    44       Parameters.Add(new LookupParameter<T>("ScheduleEncoding", "The new scheduling solutioncandidate."));
     42      Parameters.Add(new LookupParameter<IScheduleEncoding>("ScheduleEncoding", "The new scheduling solutioncandidate."));
    4543    }
    46 
    4744
    4845    public override IOperation Apply() {
     
    5047      return base.Apply();
    5148    }
    52     protected abstract T CreateSolution();
     49
     50    protected abstract IScheduleEncoding CreateSolution();
    5351  }
    5452}
Note: See TracChangeset for help on using the changeset viewer.