Free cookie consent management tool by TermsFeed Policy Generator

Changeset 13983


Ignore:
Timestamp:
07/02/16 17:02:45 (8 years ago)
Author:
mkommend
Message:

#2614: Set default name for schedule and made class sealed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.ScheduleEncoding/3.3/ScheduleEncoding/Schedule.cs

    r12012 r13983  
    3131  [Item("Schedule", "Represents the general solution for scheduling problems.")]
    3232  [StorableClass]
    33   public class Schedule : NamedItem, IScheduleEncoding {
     33  public sealed class Schedule : NamedItem, IScheduleEncoding {
    3434
    3535    #region Properties
     
    6363
    6464    [StorableConstructor]
    65     protected Schedule(bool deserializing) : base(deserializing) { }
    66     protected Schedule(Schedule original, Cloner cloner)
     65    private Schedule(bool deserializing) : base(deserializing) { }
     66    private Schedule(Schedule original, Cloner cloner)
    6767      : base(original, cloner) {
    6868      this.Resources = cloner.Clone(original.Resources);
     
    7171    }
    7272    public Schedule(int nrOfResources) {
     73      Name = "Schedule";
     74
    7375      Resources = new ItemList<Resource>();
    7476      for (int i = 0; i < nrOfResources; i++) {
Note: See TracChangeset for help on using the changeset viewer.