Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3042


Ignore:
Timestamp:
03/15/10 15:26:29 (14 years ago)
Author:
svonolfe
Message:

Updated naming for BinaryVectors (#914)

Location:
trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3
Files:
4 edited

Legend:

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

    r3040 r3042  
    3737      get { return (LookupParameter<IRandom>)Parameters["Random"]; }
    3838    }
    39     public ILookupParameter<BoolArrayData> BoolVectorParameter {
    40       get { return (ILookupParameter<BoolArrayData>)Parameters["BoolVector"]; }
     39    public ILookupParameter<BoolArrayData> BinaryVectorParameter {
     40      get { return (ILookupParameter<BoolArrayData>)Parameters["BinaryVector"]; }
    4141    }
    4242    public IValueLookupParameter<IntData> LengthParameter {
     
    4747      : base() {
    4848      Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic manipulation operators."));
    49       Parameters.Add(new LookupParameter<IntArrayData>("BoolVector", "The vector which should be manipulated."));
     49      Parameters.Add(new LookupParameter<IntArrayData>("BinaryVector", "The vector which should be manipulated."));
    5050      Parameters.Add(new ValueLookupParameter<IntData>("Length", "The length of the vector."));
    5151    }
    5252
    5353    public sealed override IOperation Apply() {
    54       BoolVectorParameter.ActualValue = Create(RandomParameter.ActualValue, LengthParameter.ActualValue);
     54      BinaryVectorParameter.ActualValue = Create(RandomParameter.ActualValue, LengthParameter.ActualValue);
    5555      return base.Apply();
    5656    }
  • trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/BinaryVectorManipulator.cs

    r3040 r3042  
    3737      get { return (LookupParameter<IRandom>)Parameters["Random"]; }
    3838    }
    39     public ILookupParameter<BoolArrayData> BoolVectorParameter {
    40       get { return (ILookupParameter<BoolArrayData>)Parameters["BoolVector"]; }
     39    public ILookupParameter<BoolArrayData> BinaryVectorParameter {
     40      get { return (ILookupParameter<BoolArrayData>)Parameters["BinaryVector"]; }
    4141    }
    4242
     
    4444      : base() {
    4545      Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic manipulation operators."));
    46       Parameters.Add(new LookupParameter<IntArrayData>("BoolVector", "The vector which should be manipulated."));
     46      Parameters.Add(new LookupParameter<IntArrayData>("BinaryVector", "The vector which should be manipulated."));
    4747    }
    4848
    4949    public sealed override IOperation Apply() {
    50       Manipulate(RandomParameter.ActualValue, BoolVectorParameter.ActualValue);
     50      Manipulate(RandomParameter.ActualValue, BinaryVectorParameter.ActualValue);
    5151      return base.Apply();
    5252    }
    5353
    54     protected abstract void Manipulate(IRandom random, BoolArrayData boolVector);
     54    protected abstract void Manipulate(IRandom random, BoolArrayData binaryVector);
    5555  }
    5656}
  • trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/Interfaces/IBinaryVectorCreator.cs

    r3040 r3042  
    3030  public interface IBinaryVectorCreator : IBinaryVectorOperator, ISolutionCreator {
    3131    IValueLookupParameter<IntData> LengthParameter { get; }
    32     ILookupParameter<BoolArrayData> BoolVectorParameter { get; }
     32    ILookupParameter<BoolArrayData> BinaryVectorParameter { get; }
    3333  }
    3434}
  • trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/Interfaces/IBinaryVectorManipulator.cs

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