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/ScheduleEncoding/Resource.cs

    r6475 r7116  
    8383        return false;
    8484    }
    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    }
    8692    private static bool AreEqual(Resource res1, Resource res2) {
    8793      if (res1.Tasks.Count != res2.Tasks.Count)
Note: See TracChangeset for help on using the changeset viewer.