- Timestamp:
- 01/22/09 12:06:29 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators.Metaprogramming/IntRangeVariableInjector.cs
r489 r1167 28 28 29 29 namespace HeuristicLab.Operators.Metaprogramming { 30 /// <summary> 31 /// Injects a new integer variable into the current scope being in a specified range. 32 /// </summary> 30 33 public class IntRangeVariableInjector: OperatorBase { 34 /// <inheritdoc select="summary"/> 31 35 public override string Description { 32 36 get { return "TASK."; } 33 37 } 34 38 39 /// <summary> 40 /// Initializes a new instance of <see cref="IntRangeVariableInjector"/> with four variable infos 41 /// (<c>VariableInjector</c>, <c>VariableName</c>, <c>Min</c> and <c>Max</c>). 42 /// </summary> 35 43 public IntRangeVariableInjector() 36 44 : base() { … … 41 49 } 42 50 51 /// <summary> 52 /// Injects a new integer variable in the given <paramref name="scope"/>. 53 /// </summary> 54 /// <param name="scope">The current scope where to inject the variable.</param> 55 /// <returns><c>null</c>.</returns> 43 56 public override IOperation Apply(IScope scope) { 44 57 int min = GetVariableValue<IntData>("Min", scope, true).Data;
Note: See TracChangeset
for help on using the changeset viewer.