Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/23/15 16:14:57 (8 years ago)
Author:
mkommend
Message:

#2521: Rectored problems and encodings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemRefactoring/HeuristicLab.Problems.Binary/3.3/BinaryProblem.cs

    r13336 r13339  
    3434namespace HeuristicLab.Problems.Binary {
    3535  [StorableClass]
    36   public abstract class BinaryProblem : SingleObjectiveProblem<BinaryVector> {
     36  public abstract class BinaryProblem : SingleObjectiveProblem<BinaryVectorEncoding, BinaryVector> {
    3737    public virtual int Length {
    3838      get { return Encoding.Length; }
    3939      set { Encoding.Length = value; }
    40     }
    41 
    42     public new BinaryVectorEncoding Encoding {
    43       get { return (BinaryVectorEncoding)base.Encoding; }
    44       set { base.Encoding = value; }
    4540    }
    4641
     
    6560      var lengthParameter = new FixedValueParameter<IntValue>("Length", "The length of the BinaryVector.", new IntValue(10));
    6661      Parameters.Add(lengthParameter);
    67       Encoding = new BinaryVectorEncoding();
    6862      Encoding.LengthParameter = lengthParameter;
    6963      RegisterEventHandlers();
Note: See TracChangeset for help on using the changeset viewer.