Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/30/09 10:38:42 (15 years ago)
Author:
vdorfer
Message:

Created API documentation for HeuristicLab.TestFunctions namespace (#331)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.TestFunctions/TestFunctionInjector.cs

    r110 r1188  
    2727
    2828namespace HeuristicLab.TestFunctions {
     29  /// <summary>
     30  /// Injects the necessary variables for optimizing a test function
     31  /// </summary>
    2932  public class TestFunctionInjector : OperatorBase {
     33    /// <inheritdoc select="summary"/>
    3034    public override string Description {
    3135      get {
     
    3438    }
    3539
     40    /// <summary>
     41    /// Gets or sets the boolean flag whether it is an optimization problem or not.
     42    /// </summary>
    3643    public bool Maximization {
    3744      get { return GetVariable("Maximization").GetValue<BoolData>().Data; }
     
    3946    }
    4047
     48    /// <summary>
     49    /// Gets or sets the lower bound.
     50    /// </summary>
    4151    public double LowerBound {
    4252      get { return GetVariable("LowerBound").GetValue<DoubleData>().Data; }
     
    4454    }
    4555
     56    /// <summary>
     57    /// Gets or sets the upper bound.
     58    /// </summary>
    4659    public double UpperBound {
    4760      get { return GetVariable("UpperBound").GetValue<DoubleData>().Data; }
     
    4962    }
    5063
     64    /// <summary>
     65    /// Gets or sets the dimension.
     66    /// </summary>
    5167    public int Dimension {
    5268      get { return GetVariable("Dimension").GetValue<IntData>().Data; }
     
    5470    }
    5571
     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>
    5676    public TestFunctionInjector()
    5777      : base() {
     
    6282    }
    6383
     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>
    6489    public override IOperation Apply(IScope scope) {
    6590      scope.AddVariable((IVariable)GetVariable("Maximization").Clone());
     
    7095    }
    7196
     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>
    72102    public override IView CreateView() {
    73103      return new TestFunctionInjectorView(this);
Note: See TracChangeset for help on using the changeset viewer.