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/Task.cs

    r10433 r10476  
    9595    protected Task(Task original, Cloner cloner)
    9696      : base(original, cloner) {
    97       this.ResourceNr = original.ResourceNr;
    98       this.JobNr = original.JobNr;
    99       this.Duration = original.Duration;
    100       this.TaskNr = original.TaskNr;
    101       this.IsScheduled = original.IsScheduled;
     97      this.resourceNr = original.ResourceNr;
     98      this.jobNr = original.JobNr;
     99      this.duration = original.Duration;
     100      this.taskNr = original.TaskNr;
     101      this.isScheduled = original.IsScheduled;
    102102    }
    103103    public Task() : this(-1, -1, -1, 0) { }
    104104    public Task(int taskNr, int resNr, int jobNr, double duration)
    105105      : base() {
    106       Duration = duration;
    107       ResourceNr = resNr;
    108       JobNr = jobNr;
    109       TaskNr = taskNr;
    110       IsScheduled = false;
     106      this.duration = duration;
     107      this.resourceNr = resNr;
     108      this.jobNr = jobNr;
     109      this.taskNr = taskNr;
     110      this.isScheduled = false;
    111111    }
    112112
Note: See TracChangeset for help on using the changeset viewer.