- Timestamp:
- 01/27/09 09:31:06 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.BitVector/BitVectorManipulatorBase.cs
r2 r1176 27 27 28 28 namespace HeuristicLab.BitVector { 29 /// <summary> 30 /// Base class for all bit vector manipulators. 31 /// </summary> 29 32 public abstract class BitVectorManipulatorBase : OperatorBase { 33 /// <summary> 34 /// Initializes a new instance of <see cref="BitVectorManipulatorBase"/> with two variable infos 35 /// (<c>Random</c> and <c>BitVector</c>). 36 /// </summary> 30 37 public BitVectorManipulatorBase() { 31 38 AddVariableInfo(new VariableInfo("Random", "Pseudo random number generator", typeof(IRandom), VariableKind.In)); … … 33 40 } 34 41 42 /// <summary> 43 /// Manipulates the bit vector. 44 /// </summary> 45 /// <param name="scope">The current scope whose bit vector to manipulate.</param> 46 /// <returns><c>null</c>.</returns> 35 47 public override IOperation Apply(IScope scope) { 36 48 IRandom random = GetVariableValue<IRandom>("Random", scope, true); … … 40 52 } 41 53 54 /// <summary> 55 /// Manipulates the given bit <paramref name="vector"/> with the given random number generator. 56 /// </summary> 57 /// <param name="scope">The current scope.</param> 58 /// <param name="random">A random number generator.</param> 59 /// <param name="vector">The bit vector to manipulate.</param> 60 /// <returns>The manipulated bit vector.</returns> 42 61 protected abstract bool[] Manipulate(IScope scope, IRandom random, bool[] vector); 43 62 }
Note: See TracChangeset
for help on using the changeset viewer.