Changeset 801 for trunk/sources/HeuristicLab.Operators/ConditionalBranch.cs
- Timestamp:
- 11/21/08 09:48:11 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators/ConditionalBranch.cs
r49 r801 27 27 28 28 namespace HeuristicLab.Operators { 29 /// <summary> 30 /// Branch of (one or)two operators whose executions depend on a specific condition. 31 /// </summary> 29 32 public class ConditionalBranch : OperatorBase { 33 /// <inheritdoc select="summary"/> 30 34 public override string Description { 31 35 get { return @"ConditionalBranch expects to have 1 or 2 sub-operators. … … 35 39 } 36 40 41 /// <summary> 42 /// Initializes a new instance of <see cref="ConditionalBranch"/> with one variable info 43 /// (<c>Condition</c>). 44 /// </summary> 37 45 public ConditionalBranch() 38 46 : base() { … … 40 48 } 41 49 50 /// <summary> 51 /// Applies the operator of branch one under a specific condition on the given 52 /// <paramref name="scope"/>, or - if existent - operator of branch two if the condition could not 53 /// be fulfilled. 54 /// </summary> 55 /// <param name="scope">The scope to apply the operators on.</param> 56 /// <returns>A new <see cref="AtomicOperation"/> with either operator 1 or operator 2 applied 57 /// to the given <paramref name="scope"/> or <c>null</c>.</returns> 42 58 public override IOperation Apply(IScope scope) { 43 59 BoolData resultData = GetVariableValue<BoolData>("Condition", scope, true);
Note: See TracChangeset
for help on using the changeset viewer.