Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/19/10 06:19:16 (14 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • worked on operators, engines, and optimization
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators/3.3/StochasticBranch.cs

    r2796 r2834  
    6262    }
    6363
    64     public override IExecutionSequence Apply() {
    65       ExecutionContextCollection next = new ExecutionContextCollection(base.Apply());
     64    public override IOperation Apply() {
     65      OperationCollection next = new OperationCollection(base.Apply());
    6666      if (RandomParameter.ActualValue.NextDouble() < ProbabilityParameter.ActualValue.Value) {
    67         if (FirstBranch != null) next.Insert(0, ExecutionContext.CreateContext(FirstBranch));
     67        if (FirstBranch != null) next.Insert(0, ExecutionContext.CreateOperation(FirstBranch));
    6868      } else {
    69         if (SecondBranch != null) next.Insert(0, ExecutionContext.CreateContext(SecondBranch));
     69        if (SecondBranch != null) next.Insert(0, ExecutionContext.CreateOperation(SecondBranch));
    7070      }
    7171      return next;
Note: See TracChangeset for help on using the changeset viewer.