Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/29/10 04:15:45 (14 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • adapted parameters to be able to use generic content types of views
Location:
trunk/sources/HeuristicLab.Operators/3.3
Files:
2 edited

Legend:

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

    r2714 r2715  
    5050
    5151    public override ExecutionContextCollection Apply(ExecutionContext context) {
    52       IntData value = Value.GetValue(context);
    53       IntData increment = Increment.GetValue(context);
     52      IntData value = (IntData)Value.GetValue(context);
     53      IntData increment = (IntData)Increment.GetValue(context);
    5454      value.Value += increment.Value;
    5555      return base.Apply(context);
  • trunk/sources/HeuristicLab.Operators/3.3/StandardOperator.cs

    r2714 r2715  
    4646
    4747    public override ExecutionContextCollection Apply(ExecutionContext context) {
    48       IOperator successor = Successor.GetValue(context);
     48      IOperator successor = (IOperator)Successor.GetValue(context);
    4949      if (successor != null)
    5050        return new ExecutionContextCollection(new ExecutionContext(context.Parent, successor, context.Scope));
Note: See TracChangeset for help on using the changeset viewer.