Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/11/12 22:57:09 (11 years ago)
Author:
abeham
Message:

#1329:

  • Moved decoders and evaluators from encoding to problem
  • Removed unnecessary state variables in operators
  • Introduced parameters in interfaces and added wiring code
  • Removed ConcreteScheduleManipulator as it does not perform any manipulation
  • Made ErrorPolicy and ForcingStrategy configurable and added views for them
  • Renamed the SchedulingEvaluationAlgorithm and also converted the AlgorithmOperator to a SingleSuccessorOperator
  • Fixed Plugin- and AssemblyFileVersion
  • Added missing license headers
File:
1 edited

Legend:

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

    r8603 r8887  
    3030  [StorableClass]
    3131  public class PWREncoding : Item, IScheduleEncoding {
     32
    3233    [Storable]
    3334    public IntegerVector PermutationWithRepetition { get; set; }
    34 
    3535
    3636    [StorableConstructor]
     
    4040      this.PermutationWithRepetition = cloner.Clone(original.PermutationWithRepetition);
    4141    }
    42     public override IDeepCloneable Clone(Cloner cloner) {
    43       return new PWREncoding(this, cloner);
    44     }
    4542    public PWREncoding()
    4643      : base() {
    4744      PermutationWithRepetition = new IntegerVector();
     45    }
     46
     47    public override IDeepCloneable Clone(Cloner cloner) {
     48      return new PWREncoding(this, cloner);
    4849    }
    4950
     
    8182        return base.Equals(obj);
    8283    }
     84
    8385    public override int GetHashCode() {
    8486      if (PermutationWithRepetition.Length == 1)
     
    8890      return 0;
    8991    }
     92
    9093    private bool AreEqual(PWREncoding pWREncoding1, PWREncoding pWREncoding2) {
    9194      if (pWREncoding1.PermutationWithRepetition.Length != pWREncoding2.PermutationWithRepetition.Length)
     
    97100      return true;
    98101    }
    99 
    100 
    101102  }
    102103}
Note: See TracChangeset for help on using the changeset viewer.