Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/08/10 03:43:36 (14 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • worked on parameters and operators
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Parameters/3.3/Parameter.cs

    r2756 r2757  
    4545      get { return dataType; }
    4646    }
     47    public IItem ActualValue {
     48      get { return GetActualValue(); }
     49      set { SetActualValue(value); }
     50    }
    4751    [Storable]
    4852    private ExecutionContext executionContext;
    4953    public ExecutionContext ExecutionContext {
    5054      get { return executionContext; }
    51       set { executionContext = value; }
     55      set {
     56        if (value != executionContext) {
     57          executionContext = value;
     58          OnExecutionContextChanged();
     59        }
     60      }
    5261    }
    5362
     
    7786      return string.Format("{0} ({1})", Name, DataType.Name);
    7887    }
     88
     89    protected abstract IItem GetActualValue();
     90    protected abstract void SetActualValue(IItem value);
     91
     92    protected virtual void OnExecutionContextChanged() { }
    7993  }
    8094}
Note: See TracChangeset for help on using the changeset viewer.