- Timestamp:
- 03/15/10 15:26:29 (15 years ago)
- 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 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 public IValueLookupParameter<IntData> LengthParameter { … … 47 47 : base() { 48 48 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>("B oolVector", "The vector which should be manipulated."));49 Parameters.Add(new LookupParameter<IntArrayData>("BinaryVector", "The vector which should be manipulated.")); 50 50 Parameters.Add(new ValueLookupParameter<IntData>("Length", "The length of the vector.")); 51 51 } 52 52 53 53 public sealed override IOperation Apply() { 54 B oolVectorParameter.ActualValue = Create(RandomParameter.ActualValue, LengthParameter.ActualValue);54 BinaryVectorParameter.ActualValue = Create(RandomParameter.ActualValue, LengthParameter.ActualValue); 55 55 return base.Apply(); 56 56 } -
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 } -
trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/Interfaces/IBinaryVectorCreator.cs
r3040 r3042 30 30 public interface IBinaryVectorCreator : IBinaryVectorOperator, ISolutionCreator { 31 31 IValueLookupParameter<IntData> LengthParameter { get; } 32 ILookupParameter<BoolArrayData> B oolVectorParameter { get; }32 ILookupParameter<BoolArrayData> BinaryVectorParameter { get; } 33 33 } 34 34 } -
trunk/sources/HeuristicLab.Encodings.BinaryVectors/3.3/Interfaces/IBinaryVectorManipulator.cs
r3040 r3042 29 29 /// </summary> 30 30 public interface IBinaryVectorManipulator : IBinaryVectorOperator, IManipulator { 31 ILookupParameter<BoolArrayData> B oolVectorParameter { get; }31 ILookupParameter<BoolArrayData> BinaryVectorParameter { get; } 32 32 } 33 33 }
Note: See TracChangeset
for help on using the changeset viewer.