- Timestamp:
- 02/19/10 06:19:16 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators/3.3/StochasticBranch.cs
r2796 r2834 62 62 } 63 63 64 public override I ExecutionSequenceApply() {65 ExecutionContextCollection next = new ExecutionContextCollection(base.Apply());64 public override IOperation Apply() { 65 OperationCollection next = new OperationCollection(base.Apply()); 66 66 if (RandomParameter.ActualValue.NextDouble() < ProbabilityParameter.ActualValue.Value) { 67 if (FirstBranch != null) next.Insert(0, ExecutionContext.Create Context(FirstBranch));67 if (FirstBranch != null) next.Insert(0, ExecutionContext.CreateOperation(FirstBranch)); 68 68 } else { 69 if (SecondBranch != null) next.Insert(0, ExecutionContext.Create Context(SecondBranch));69 if (SecondBranch != null) next.Insert(0, ExecutionContext.CreateOperation(SecondBranch)); 70 70 } 71 71 return next;
Note: See TracChangeset
for help on using the changeset viewer.