Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3055


Ignore:
Timestamp:
03/16/10 10:13:51 (15 years ago)
Author:
svonolfe
Message:

Updated the BinaryVector project to use the new solution encodings (#909)

Location:
trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorCreator.cs

    r3053 r3055  
    3737      get { return (LookupParameter<IRandom>)Parameters["Random"]; }
    3838    }
    39     public ILookupParameter<BoolArray> BinaryVectorParameter {
    40       get { return (ILookupParameter<BoolArray>)Parameters["BinaryVector"]; }
     39    public ILookupParameter<BinaryVector> BinaryVectorParameter {
     40      get { return (ILookupParameter<BinaryVector>)Parameters["BinaryVector"]; }
    4141    }
    4242    public IValueLookupParameter<IntValue> LengthParameter {
     
    5656    }
    5757
    58     protected abstract BoolArray Create(IRandom random, IntValue length);
     58    protected abstract BinaryVector Create(IRandom random, IntValue length);
    5959  }
    6060}
  • trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorCrossover.cs

    r3053 r3055  
    3737      get { return (LookupParameter<IRandom>)Parameters["Random"]; }
    3838    }
    39     public ILookupParameter<ItemArray<BoolArray>> ParentsParameter {
    40       get { return (SubScopesLookupParameter<BoolArray>)Parameters["Parents"]; }
     39    public ILookupParameter<ItemArray<BinaryVector>> ParentsParameter {
     40      get { return (SubScopesLookupParameter<BinaryVector>)Parameters["Parents"]; }
    4141    }
    42     public ILookupParameter<BoolArray> ChildParameter {
    43       get { return (ILookupParameter<BoolArray>)Parameters["Child"]; }
     42    public ILookupParameter<BinaryVector> ChildParameter {
     43      get { return (ILookupParameter<BinaryVector>)Parameters["Child"]; }
    4444    }
    4545
     
    5656    }
    5757
    58     protected abstract BoolArray Cross(IRandom random, ItemArray<BoolArray> parents);
     58    protected abstract BinaryVector Cross(IRandom random, ItemArray<BinaryVector> parents);
    5959  }
    6060}
  • trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorManipulator.cs

    r3053 r3055  
    3737      get { return (LookupParameter<IRandom>)Parameters["Random"]; }
    3838    }
    39     public ILookupParameter<BoolArray> BinaryVectorParameter {
    40       get { return (ILookupParameter<BoolArray>)Parameters["BinaryVector"]; }
     39    public ILookupParameter<BinaryVector> BinaryVectorParameter {
     40      get { return (ILookupParameter<BinaryVector>)Parameters["BinaryVector"]; }
    4141    }
    4242
     
    5252    }
    5353
    54     protected abstract void Manipulate(IRandom random, BoolArray binaryVector);
     54    protected abstract void Manipulate(IRandom random, BinaryVector binaryVector);
    5555  }
    5656}
  • trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Interfaces/IBinaryVectorCreator.cs

    r3053 r3055  
    3030  public interface IBinaryVectorCreator : IBinaryVectorOperator, ISolutionCreator {
    3131    IValueLookupParameter<IntValue> LengthParameter { get; }
    32     ILookupParameter<BoolArray> BinaryVectorParameter { get; }
     32    ILookupParameter<BinaryVector> BinaryVectorParameter { get; }
    3333  }
    3434}
  • trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Interfaces/IBinaryVectorCrossover.cs

    r3053 r3055  
    2929  /// </summary>
    3030  public interface IBinaryVectorCrossover : IBinaryVectorOperator, ICrossover {
    31     ILookupParameter<ItemArray<BoolArray>> ParentsParameter { get; }
    32     ILookupParameter<BoolArray> ChildParameter { get; }
     31    ILookupParameter<ItemArray<BinaryVector>> ParentsParameter { get; }
     32    ILookupParameter<BinaryVector> ChildParameter { get; }
    3333  }
    3434}
  • trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Interfaces/IBinaryVectorManipulator.cs

    r3053 r3055  
    2929  /// </summary>
    3030  public interface IBinaryVectorManipulator : IBinaryVectorOperator, IManipulator {
    31     ILookupParameter<BoolArray> BinaryVectorParameter { get; }
     31    ILookupParameter<BinaryVector> BinaryVectorParameter { get; }
    3232  }
    3333}
Note: See TracChangeset for help on using the changeset viewer.