Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/10/11 17:25:35 (13 years ago)
Author:
jhelm
Message:

#1329: Implemented PriorityRulesVector based encoding and added new operators to the JSMEncoding. Added Gantt-Charts for visualization of schedules and problems.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Scheduling/HeuristicLab.Problems.Scheduling/3.3/JSSPTask.cs

    r6121 r6177  
    3232  [Item("Job Shop Scheduling Task Class", "Represents smallest unit for a job shop scheduling problem.")]
    3333  [StorableClass]
    34   public class JSSPTask : Task {
     34  public class JSSPTask : Item {
    3535    [StorableConstructor]
    3636    protected JSSPTask(bool deserializing) : base(deserializing) { }
    3737    protected JSSPTask(JSSPTask original, Cloner cloner)
    3838      : base(original, cloner) {
     39      this.ResourceNr = cloner.Clone(original.ResourceNr);
     40      this.Duration = cloner.Clone(original.Duration);
     41      this.StartTime = cloner.Clone(original.StartTime);
     42      this.TaskNr = cloner.Clone(original.TaskNr);
     43      this.IsScheduled = cloner.Clone(original.IsScheduled);
    3944      this.Job = cloner.Clone(original.Job);
    4045      this.PreviousTask = cloner.Clone(original.PreviousTask);
     46      this.NextTask = cloner.Clone(original.NextTask);
    4147    }
    4248    public override IDeepCloneable Clone(Cloner cloner) {
     
    4551
    4652
     53    public BoolValue IsScheduled { get; set; }
     54    public IntValue TaskNr { get; set; }
     55    public IntValue ResourceNr { get; set; }
     56    public DoubleValue Duration { get; set; }
     57    public DoubleValue StartTime { get; set; }
     58    public DoubleValue EndTime {
     59      get {
     60        return new DoubleValue(Duration.Value + StartTime.Value);
     61      }
     62    }
     63    public JSSPJob Job { get; set; }
     64    public JSSPTask PreviousTask { get; set; }
     65    public JSSPTask NextTask { get; set; }
    4766
    48     public JSSPJob Job { get; set; }
    49     public Task PreviousTask { get; set; }
    50 
    51     public JSSPTask (IntValue taskNr, IntValue resNr, DoubleValue duration, JSSPJob j) : base (taskNr, resNr, duration) {
     67    public JSSPTask (IntValue taskNr, IntValue resNr, DoubleValue duration, JSSPJob j) : base () {
     68      Duration = duration;
     69      ResourceNr = resNr;
     70      TaskNr = taskNr;
     71      StartTime = new DoubleValue(0);
     72      IsScheduled = new BoolValue(false);
    5273      Job = j;
    5374    }
Note: See TracChangeset for help on using the changeset viewer.