- Timestamp:
- 06/10/11 16:18:44 (13 years ago)
- 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 2 2 bin 3 3 obj 4 HeuristicLab.Problems.Scheduling-3.3.csproj.user
-
- Property svn:ignore
-
branches/Scheduling/HeuristicLab.Problems.Scheduling/3.3/Job.cs
r6364 r6406 20 20 #endregion 21 21 22 using System;23 using System.Collections.Generic;24 using System.Linq;25 22 using System.Text; 23 using HeuristicLab.Common; 26 24 using HeuristicLab.Core; 27 using HeuristicLab. Common;25 using HeuristicLab.Data; 28 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 using HeuristicLab.Data;30 using HeuristicLab.Parameters;31 27 32 28 namespace HeuristicLab.Problems.Scheduling { … … 34 30 [StorableClass] 35 31 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 36 39 [StorableConstructor] 37 40 protected Job(bool deserializing) : base(deserializing) { } 38 41 protected Job(Job original, Cloner cloner) 39 42 : base(original, cloner) { 40 41 42 43 this.DueDate = cloner.Clone(original.DueDate); 44 this.Index = cloner.Clone(original.Index); 45 this.Tasks = cloner.Clone(original.Tasks); 43 46 } 44 47 public override IDeepCloneable Clone(Cloner cloner) { 45 48 return new Job(this, cloner); 46 49 } 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() { 61 52 Index = index; 62 53 Tasks = new ItemList<Task>(); … … 72 63 sb.Append("Job#" + Index + " [ "); 73 64 foreach (Task t in Tasks) { 74 sb.Append(t.ToString 65 sb.Append(t.ToString() + " "); 75 66 } 76 67 if (DueDate != null)
Note: See TracChangeset
for help on using the changeset viewer.