- Timestamp:
- 12/04/11 15:53:02 (13 years ago)
- Location:
- branches/Scheduling
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Scheduling
- Property svn:ignore
-
old new 12 12 *.psess 13 13 *.vsp 14 _ReSharper.HeuristicLab.Scheduling 15 *.user
-
- Property svn:ignore
-
branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/Job.cs
r6475 r7116 52 52 Tasks = new ItemList<Task>(); 53 53 54 if (dueDate != null) 55 DueDate = dueDate; 54 DueDate = dueDate; 56 55 57 56 } … … 63 62 sb.Append(t.ToString() + " "); 64 63 } 65 if (DueDate != null) 66 sb.Append("{" + DueDate + "} "); 64 sb.Append("{" + DueDate + "} "); 67 65 sb.Append("]"); 68 66 return sb.ToString(); -
branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/Resource.cs
r6475 r7116 83 83 return false; 84 84 } 85 85 public override int GetHashCode() { 86 if (Tasks.Count == 1) 87 return Tasks[0].GetHashCode(); 88 if (Tasks.Count == 2) 89 return Tasks[0].GetHashCode() ^ Tasks[1].GetHashCode(); 90 return 0; 91 } 86 92 private static bool AreEqual(Resource res1, Resource res2) { 87 93 if (res1.Tasks.Count != res2.Tasks.Count) -
branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/Schedule.cs
r6482 r7116 171 171 return false; 172 172 } 173 public override int GetHashCode() { 174 if (Resources.Count == 1) 175 return Resources[0].GetHashCode(); 176 if (Resources.Count == 2) 177 return Resources[0].GetHashCode() ^ Resources[1].GetHashCode(); 178 return 0; 179 } 173 180 174 181 private static bool AreEqual(Schedule schedule1, Schedule schedule2) { -
branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/ScheduledTask.cs
r6482 r7116 83 83 } 84 84 85 public override int GetHashCode() { 86 return TaskNr ^ JobNr; 87 } 88 85 89 public static bool AreEqual(ScheduledTask task1, ScheduledTask task2) { 86 90 return ( -
branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/Task.cs
r6475 r7116 76 76 return false; 77 77 } 78 78 public override int GetHashCode() { 79 return TaskNr ^ JobNr; 80 } 79 81 public static bool AreEqual(Task task1, Task task2) { 80 82 return (task1.Duration == task2.Duration &&
Note: See TracChangeset
for help on using the changeset viewer.