Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/10/11 16:18:44 (13 years ago)
Author:
jhelm
Message:

#1329: Applied suggestions from codereview. Added unit-tests. Renamed encoding-project.

Location:
branches/Scheduling/HeuristicLab.Problems.Scheduling/3.3
Files:
2 edited

Legend:

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

    • Property svn:ignore
      •  

        old new  
        22bin
        33obj
         4HeuristicLab.Problems.Scheduling-3.3.csproj.user
  • branches/Scheduling/HeuristicLab.Problems.Scheduling/3.3/Job.cs

    r6364 r6406  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    2522using System.Text;
     23using HeuristicLab.Common;
    2624using HeuristicLab.Core;
    27 using HeuristicLab.Common;
     25using HeuristicLab.Data;
    2826using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    29 using HeuristicLab.Data;
    30 using HeuristicLab.Parameters;
    3127
    3228namespace HeuristicLab.Problems.Scheduling {
     
    3430  [StorableClass]
    3531  public class Job : Item {
     32    [Storable]
     33    public DoubleValue DueDate { get; set; }
     34    [Storable]
     35    public IntValue Index { get; set; }
     36    [Storable]
     37    public ItemList<Task> Tasks { get; set; }
     38
    3639    [StorableConstructor]
    3740    protected Job(bool deserializing) : base(deserializing) { }
    3841    protected Job(Job original, Cloner cloner)
    3942      : base(original, cloner) {
    40         this.DueDate = cloner.Clone(original.DueDate);
    41         this.Index = cloner.Clone(original.Index);
    42         this.Tasks = cloner.Clone(original.Tasks);
     43      this.DueDate = cloner.Clone(original.DueDate);
     44      this.Index = cloner.Clone(original.Index);
     45      this.Tasks = cloner.Clone(original.Tasks);
    4346    }
    4447    public override IDeepCloneable Clone(Cloner cloner) {
    4548      return new Job(this, cloner);
    4649    }
    47 
    48     public DoubleValue DueDate { get; set; }
    49 
    50     public IntValue Index {
    51       get;
    52       set;
    53     }
    54     public ItemList<Task> Tasks {
    55       get;
    56       set;
    57     }
    58 
    59 
    60     public Job(IntValue index, DoubleValue dueDate) : base () {
     50    public Job(IntValue index, DoubleValue dueDate)
     51      : base() {
    6152      Index = index;
    6253      Tasks = new ItemList<Task>();
     
    7263      sb.Append("Job#" + Index + " [ ");
    7364      foreach (Task t in Tasks) {
    74         sb.Append(t.ToString () + " ");
     65        sb.Append(t.ToString() + " ");
    7566      }
    7667      if (DueDate != null)
Note: See TracChangeset for help on using the changeset viewer.