- Timestamp:
- 06/27/11 15:51:15 (13 years ago)
- Location:
- branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3
- Property svn:ignore
-
old new 1 1 HeuristicLab.Encodings.ScheduleEncoding-3.3.csproj.user 2 Plugin.cs 2 3 bin 3 4 obj
-
- Property svn:ignore
-
branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/Schedule.cs
r6475 r6482 123 123 i++; 124 124 125 if (!lastScheduledTaskOfJob.ContainsKey(jobNr)) { 126 lastScheduledTaskOfJob.Add(jobNr, task); 127 task.TaskNr = 0; 128 } else { 129 task.TaskNr = lastScheduledTaskOfJob[jobNr].TaskNr + 1; 130 lastScheduledTaskOfJob[jobNr] = task; 131 } 132 125 133 if (i >= affectedResource.Tasks.Count) 126 134 affectedResource.Tasks.Add(task); … … 128 136 affectedResource.Tasks.Insert(i, task); 129 137 130 if (!lastScheduledTaskOfJob.ContainsKey(jobNr))131 lastScheduledTaskOfJob.Add(jobNr, task);132 else133 lastScheduledTaskOfJob[jobNr] = task;134 138 } 135 139 -
branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/ScheduledTask.cs
r6475 r6482 31 31 #region Properties 32 32 [Storable] 33 public int TaskNr { get; set; } 34 [Storable] 33 35 public int ResourceNr { get; set; } 34 36 [Storable] … … 49 51 protected ScheduledTask(ScheduledTask original, Cloner cloner) 50 52 : base(original, cloner) { 53 this.TaskNr = original.TaskNr; 51 54 this.ResourceNr = original.ResourceNr; 52 55 this.Duration = original.Duration; … … 81 84 82 85 public static bool AreEqual(ScheduledTask task1, ScheduledTask task2) { 83 return (task1.Duration == task2.Duration && 86 return ( 87 task1.TaskNr == task2.TaskNr && 88 task1.Duration == task2.Duration && 84 89 task1.JobNr == task2.JobNr && 85 90 task1.ResourceNr == task2.ResourceNr &&
Note: See TracChangeset
for help on using the changeset viewer.