- Timestamp:
- 05/10/11 17:25:35 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Scheduling/HeuristicLab.Problems.Scheduling/3.3/JSSPTask.cs
r6121 r6177 32 32 [Item("Job Shop Scheduling Task Class", "Represents smallest unit for a job shop scheduling problem.")] 33 33 [StorableClass] 34 public class JSSPTask : Task{34 public class JSSPTask : Item { 35 35 [StorableConstructor] 36 36 protected JSSPTask(bool deserializing) : base(deserializing) { } 37 37 protected JSSPTask(JSSPTask original, Cloner cloner) 38 38 : base(original, cloner) { 39 this.ResourceNr = cloner.Clone(original.ResourceNr); 40 this.Duration = cloner.Clone(original.Duration); 41 this.StartTime = cloner.Clone(original.StartTime); 42 this.TaskNr = cloner.Clone(original.TaskNr); 43 this.IsScheduled = cloner.Clone(original.IsScheduled); 39 44 this.Job = cloner.Clone(original.Job); 40 45 this.PreviousTask = cloner.Clone(original.PreviousTask); 46 this.NextTask = cloner.Clone(original.NextTask); 41 47 } 42 48 public override IDeepCloneable Clone(Cloner cloner) { … … 45 51 46 52 53 public BoolValue IsScheduled { get; set; } 54 public IntValue TaskNr { get; set; } 55 public IntValue ResourceNr { get; set; } 56 public DoubleValue Duration { get; set; } 57 public DoubleValue StartTime { get; set; } 58 public DoubleValue EndTime { 59 get { 60 return new DoubleValue(Duration.Value + StartTime.Value); 61 } 62 } 63 public JSSPJob Job { get; set; } 64 public JSSPTask PreviousTask { get; set; } 65 public JSSPTask NextTask { get; set; } 47 66 48 public JSSPJob Job { get; set; } 49 public Task PreviousTask { get; set; } 50 51 public JSSPTask (IntValue taskNr, IntValue resNr, DoubleValue duration, JSSPJob j) : base (taskNr, resNr, duration) { 67 public JSSPTask (IntValue taskNr, IntValue resNr, DoubleValue duration, JSSPJob j) : base () { 68 Duration = duration; 69 ResourceNr = resNr; 70 TaskNr = taskNr; 71 StartTime = new DoubleValue(0); 72 IsScheduled = new BoolValue(false); 52 73 Job = j; 53 74 }
Note: See TracChangeset
for help on using the changeset viewer.