Ignore:
Timestamp:
02/20/14 13:46:04 (7 years ago)
Author:
gkronber
Message:

#2127: removed Equals() and GetHashCode() overrides as well as related static methods.
Changed ctors of Task and Job to prevent calling virtual members.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/Job.cs

    r10433 r10476  
    7676    protected Job(Job original, Cloner cloner)
    7777      : base(original, cloner) {
    78       this.DueDate = original.DueDate;
    79       this.Index = original.Index;
    80       this.Tasks = cloner.Clone(original.Tasks);
     78      this.dueDate = original.DueDate;
     79      this.index = original.Index;
     80      this.tasks = cloner.Clone(original.Tasks);
    8181      RegisterEventHandlers();
    8282    }
     
    8484    public Job(int index, double dueDate)
    8585      : base() {
    86       DueDate = dueDate;
    87       Index = index;
    88       Tasks = new ItemList<Task>();
     86      this.dueDate = dueDate;
     87      this.index = index;
     88      this.tasks = new ItemList<Task>();
    8989      RegisterEventHandlers();
    9090    }
     
    135135      sb.Append("Job#" + Index + " [ ");
    136136      foreach (Task t in Tasks) {
    137         sb.Append(t.ToString() + " ");
     137        sb.Append(t + " ");
    138138      }
    139139      sb.Append("{" + DueDate + "} ");
Note: See TracChangeset for help on using the changeset viewer.