Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/14/11 14:53:14 (13 years ago)
Author:
jhelm
Message:

#1329: Did some minor changes affecting datatypes.

Location:
branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3

    • Property svn:ignore set to
      HeuristicLab.Encodings.ScheduleEncoding-3.3.csproj.user
      bin
      obj
  • branches/Scheduling/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/Schedule.cs

    r6406 r6412  
    117117    public void ScheduleTask(int resNr, double startTime, double duration, int jobNr) {
    118118      ScheduledTask task = new ScheduledTask(resNr, startTime, duration, jobNr);
    119       Resource affectedResource = resources[task.ResourceNr.Value];
     119      Resource affectedResource = resources[task.ResourceNr];
    120120      int i = 0;
    121       while (i < affectedResource.Tasks.Count && affectedResource.Tasks[i].StartTime.Value < task.StartTime.Value)
     121      while (i < affectedResource.Tasks.Count && affectedResource.Tasks[i].StartTime < task.StartTime)
    122122        i++;
    123123
     
    153153      double quality = 0;
    154154      foreach (Resource r in Resources) {
    155         if (r.TotalDuration.Value > quality) {
    156           quality = r.TotalDuration.Value;
     155        if (r.TotalDuration > quality) {
     156          quality = r.TotalDuration;
    157157        }
    158158      }
Note: See TracChangeset for help on using the changeset viewer.