Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/04/11 15:53:02 (12 years ago)
Author:
gkronber
Message:

#1329: added a solution file, added missing overrides for GetHashCode(), removed tautological if-conditions, adapted prebuildevent script and added the build script

Location:
branches/Scheduling
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/Scheduling

    • Property svn:ignore
      •  

        old new  
        1212*.psess
        1313*.vsp
         14_ReSharper.HeuristicLab.Scheduling
         15*.user
  • branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/JobSequenceMatrix/JSMEncoding.cs

    r6406 r7116  
    6666      return false;
    6767    }
    68 
     68    public override int GetHashCode() {
     69      if (JobSequenceMatrix.Count == 1)
     70        return JobSequenceMatrix[0].GetHashCode();
     71      if (JobSequenceMatrix.Count == 2)
     72        return JobSequenceMatrix[0].GetHashCode() ^ JobSequenceMatrix[1].GetHashCode();
     73      return 0;
     74    }
    6975    private static bool AreEqual(JSMEncoding jSMEncoding1, JSMEncoding jSMEncoding2) {
    7076      if (jSMEncoding1.JobSequenceMatrix.Count != jSMEncoding2.JobSequenceMatrix.Count)
Note: See TracChangeset for help on using the changeset viewer.