Changeset 11203 for branches/HiveStatistics/sources/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/ScheduledTask.cs
- Timestamp:
- 07/18/14 12:35:00 (11 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:ignore
-
old new 8 8 FxCopResults.txt 9 9 Google.ProtocolBuffers-0.9.1.dll 10 Google.ProtocolBuffers-2.4.1.473.dll11 10 HeuristicLab 3.3.5.1.ReSharper.user 12 11 HeuristicLab 3.3.6.0.ReSharper.user 13 12 HeuristicLab.4.5.resharper.user 14 13 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development16 14 HeuristicLab.resharper.user 17 15 ProtoGen.exe … … 19 17 _ReSharper.HeuristicLab 20 18 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests22 19 _ReSharper.HeuristicLab.ExtLibs 23 20 bin 24 21 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/HiveStatistics/sources/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/ScheduledTask.cs
r11202 r11203 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 75 75 return sb.ToString(); 76 76 } 77 78 public override bool Equals(object obj) { 79 if (obj.GetType() == typeof(ScheduledTask)) 80 return AreEqual(this, obj as ScheduledTask); 81 else 82 return false; 83 } 84 85 public override int GetHashCode() { 86 return TaskNr ^ JobNr; 87 } 88 89 public static bool AreEqual(ScheduledTask task1, ScheduledTask task2) { 90 return ( 91 task1.TaskNr == task2.TaskNr && 92 task1.Duration == task2.Duration && 93 task1.JobNr == task2.JobNr && 94 task1.ResourceNr == task2.ResourceNr && 95 task1.StartTime == task2.StartTime && 96 task1.EndTime == task2.EndTime); 97 } 77 98 } 78 99 }
Note: See TracChangeset
for help on using the changeset viewer.