Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/16/08 12:42:00 (16 years ago)
Author:
mkofler
Message:

Adjusted ScheduleTree and TimeSlot to allow preemptive scheduling

Location:
trunk/sources/HeuristicLab.Scheduling.JSSP
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Scheduling.JSSP/ScheduleTree.cs

    r371 r385  
    125125    }
    126126
    127     private int Insert(ScheduleTreeNode slot, Operation op) {
     127    public int Insert(ScheduleTreeNode slot, Operation op) {
    128128      if (op == null) {
    129129        return -1;
     
    177177    }
    178178
    179     public ScheduleTreeNode GetFirstSlot() { // left-most slot
     179    public ScheduleTreeNode GetFirstNode() { // left-most slot
    180180      ScheduleTreeNode node = root;
    181181      while (node.Left != null) {
     
    185185    }
    186186
    187     public ScheduleTreeNode GetLastSlot() { // right-most slot
     187    public ScheduleTreeNode GetLastNode() { // right-most slot
    188188      ScheduleTreeNode node = root;
    189189      while (node.Right != null) {
  • trunk/sources/HeuristicLab.Scheduling.JSSP/TimeSlot.cs

    r2 r385  
    4141    }
    4242    public Operation operation;
     43    public List<TimeSlot> dependentSlots;
     44    public TimeSlot parent;
    4345
    4446    public TimeSlot(int start, int end) {
     
    4749      free = end - start;
    4850      maxFreeSlot = end - start;
     51      dependentSlots = new List<TimeSlot>();
    4952    }
    5053
     
    5558      free = 0;
    5659      maxFreeSlot = 0;
     60      dependentSlots = new List<TimeSlot>();
    5761    }
    5862
     
    7276        operation = new Operation(job, start, end - start, opIndex, machines, null);
    7377      }
     78      dependentSlots = new List<TimeSlot>();
    7479    }
    7580
Note: See TracChangeset for help on using the changeset viewer.