Changeset 7116 for branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/Resource.cs
- Timestamp:
- 12/04/11 15:53:02 (12 years ago)
- Location:
- branches/Scheduling
- Files:
-
- 2 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/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)
Note: See TracChangeset
for help on using the changeset viewer.