Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/04/11 15:53:02 (13 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/PermutationWithRepetition/PWREncoding.cs

    r6475 r7116  
    8181        return base.Equals(obj);
    8282    }
    83 
     83    public override int GetHashCode() {
     84      if (PermutationWithRepetition.Length == 1)
     85        return PermutationWithRepetition[0].GetHashCode();
     86      if (PermutationWithRepetition.Length == 2)
     87        return PermutationWithRepetition[0].GetHashCode() ^ PermutationWithRepetition[1].GetHashCode();
     88      return 0;
     89    }
    8490    private bool AreEqual(PWREncoding pWREncoding1, PWREncoding pWREncoding2) {
    8591      if (pWREncoding1.PermutationWithRepetition.Length != pWREncoding2.PermutationWithRepetition.Length)
Note: See TracChangeset for help on using the changeset viewer.