- Timestamp:
- 01/30/09 10:38:42 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.TestFunctions/TestFunctionInjector.cs
r110 r1188 27 27 28 28 namespace HeuristicLab.TestFunctions { 29 /// <summary> 30 /// Injects the necessary variables for optimizing a test function 31 /// </summary> 29 32 public class TestFunctionInjector : OperatorBase { 33 /// <inheritdoc select="summary"/> 30 34 public override string Description { 31 35 get { … … 34 38 } 35 39 40 /// <summary> 41 /// Gets or sets the boolean flag whether it is an optimization problem or not. 42 /// </summary> 36 43 public bool Maximization { 37 44 get { return GetVariable("Maximization").GetValue<BoolData>().Data; } … … 39 46 } 40 47 48 /// <summary> 49 /// Gets or sets the lower bound. 50 /// </summary> 41 51 public double LowerBound { 42 52 get { return GetVariable("LowerBound").GetValue<DoubleData>().Data; } … … 44 54 } 45 55 56 /// <summary> 57 /// Gets or sets the upper bound. 58 /// </summary> 46 59 public double UpperBound { 47 60 get { return GetVariable("UpperBound").GetValue<DoubleData>().Data; } … … 49 62 } 50 63 64 /// <summary> 65 /// Gets or sets the dimension. 66 /// </summary> 51 67 public int Dimension { 52 68 get { return GetVariable("Dimension").GetValue<IntData>().Data; } … … 54 70 } 55 71 72 /// <summary> 73 /// Initializes a new instance of <see cref="TestFunctionInjector"/> with four variable infos 74 /// (<c>Maximization</c>, <c>LowerBound</c>, <c>UpperBound</c> and <c>Dimension</c>). 75 /// </summary> 56 76 public TestFunctionInjector() 57 77 : base() { … … 62 82 } 63 83 84 /// <summary> 85 /// Injects the necessary variables for optimizing a test function. 86 /// </summary> 87 /// <param name="scope">The scope where to inject the variables.</param> 88 /// <returns><c>null</c>.</returns> 64 89 public override IOperation Apply(IScope scope) { 65 90 scope.AddVariable((IVariable)GetVariable("Maximization").Clone()); … … 70 95 } 71 96 97 /// <summary> 98 /// Creates a new instance of <see cref="TestFunctionInjectorView"/> to represent the current 99 /// instance visually. 100 /// </summary> 101 /// <returns>The newly created view as <see cref="TestFunctionInjectorView"/>.</returns> 72 102 public override IView CreateView() { 73 103 return new TestFunctionInjectorView(this);
Note: See TracChangeset
for help on using the changeset viewer.