Changeset 13437 for branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/Manipulators
- Timestamp:
- 12/06/15 15:33:25 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemRefactoring/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/Manipulators/DirectScheduleManipulator.cs
r13435 r13437 23 23 using HeuristicLab.Common; 24 24 using HeuristicLab.Core; 25 using HeuristicLab.Parameters; 25 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 27 … … 29 30 [StorableClass] 30 31 public abstract class DirectScheduleManipulator : ScheduleManipulator, IDirectScheduleOperator { 32 public ILookupParameter<ItemList<Job>> JobDataParameter { 33 get { return (LookupParameter<ItemList<Job>>)Parameters["JobData"]; } 34 } 31 35 32 36 [StorableConstructor] 33 37 protected DirectScheduleManipulator(bool deserializing) : base(deserializing) { } 34 38 protected DirectScheduleManipulator(DirectScheduleManipulator original, Cloner cloner) : base(original, cloner) { } 39 35 40 public DirectScheduleManipulator() 36 41 : base() { 37 ScheduleParameter.ActualName = "Schedule";42 Parameters.Add(new LookupParameter<ItemList<Job>>("JobData", "Job data taken from the JSSP - Instance.")); 38 43 } 39 44 … … 42 47 public override IOperation InstrumentedApply() { 43 48 var schedule = ScheduleParameter.ActualValue as Schedule; 44 if (schedule == null) throw new InvalidOperationException("Schedule Encodingwas not found or is not of type Schedule.");49 if (schedule == null) throw new InvalidOperationException("Schedule was not found or is not of type Schedule."); 45 50 Manipulate(RandomParameter.ActualValue, schedule); 46 51 return base.InstrumentedApply();
Note: See TracChangeset
for help on using the changeset viewer.