Changeset 3042 for trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/BinaryVectorManipulator.cs
- Timestamp:
- 03/15/10 15:26:29 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/BinaryVectorManipulator.cs
r3040 r3042 37 37 get { return (LookupParameter<IRandom>)Parameters["Random"]; } 38 38 } 39 public ILookupParameter<BoolArrayData> B oolVectorParameter {40 get { return (ILookupParameter<BoolArrayData>)Parameters["B oolVector"]; }39 public ILookupParameter<BoolArrayData> BinaryVectorParameter { 40 get { return (ILookupParameter<BoolArrayData>)Parameters["BinaryVector"]; } 41 41 } 42 42 … … 44 44 : base() { 45 45 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>("B oolVector", "The vector which should be manipulated."));46 Parameters.Add(new LookupParameter<IntArrayData>("BinaryVector", "The vector which should be manipulated.")); 47 47 } 48 48 49 49 public sealed override IOperation Apply() { 50 Manipulate(RandomParameter.ActualValue, B oolVectorParameter.ActualValue);50 Manipulate(RandomParameter.ActualValue, BinaryVectorParameter.ActualValue); 51 51 return base.Apply(); 52 52 } 53 53 54 protected abstract void Manipulate(IRandom random, BoolArrayData b oolVector);54 protected abstract void Manipulate(IRandom random, BoolArrayData binaryVector); 55 55 } 56 56 }
Note: See TracChangeset
for help on using the changeset viewer.