- Timestamp:
- 12/26/10 03:51:30 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ParallelEngine/HeuristicLab.Operators/3.3/ConditionalBranch.cs
r4722 r5177 67 67 } 68 68 69 public override IOperation Apply( ) {70 OperationCollection next = new OperationCollection(base.Apply( ));69 public override IOperation Apply(IExecutionContext context) { 70 OperationCollection next = new OperationCollection(base.Apply(context)); 71 71 if (ConditionParameter.ActualValue != null && ConditionParameter.ActualValue.Value) { 72 if (TrueBranch != null) next.Insert(0, ExecutionContext.CreateOperation(TrueBranch));72 if (TrueBranch != null) next.Insert(0, context.CreateOperation(TrueBranch)); 73 73 } else { 74 if (FalseBranch != null) next.Insert(0, ExecutionContext.CreateOperation(FalseBranch));74 if (FalseBranch != null) next.Insert(0, context.CreateOperation(FalseBranch)); 75 75 } 76 76 return next;
Note: See TracChangeset
for help on using the changeset viewer.