Changeset 10295 for trunk/sources/HeuristicLab.Operators
- Timestamp:
- 01/07/14 13:13:41 (11 years ago)
- Location:
- trunk/sources/HeuristicLab.Operators/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators/3.3/MultiOperator.cs
r9838 r10295 34 34 [Item("MultiOperator", "A base class for operators which apply arbitrary many other operators of a specific type.")] 35 35 [StorableClass] 36 public abstract class MultiOperator<T> : SingleSuccessorOperator, IMultiOperator<T> where T : class, IOperator {36 public abstract class MultiOperator<T> : InstrumentedOperator, IMultiOperator<T> where T : class, IOperator { 37 37 private List<IValueParameter<T>> operatorParameters; 38 38 protected IEnumerable<IValueParameter<T>> OperatorParameters { get { return operatorParameters; } } -
trunk/sources/HeuristicLab.Operators/3.3/StochasticMultiBranch.cs
r9456 r10295 132 132 /// or all selected operators have zero probabitlity.</exception> 133 133 /// <returns>A new operation with the operator that was selected followed by the current operator's successor.</returns> 134 public override IOperation Apply() {134 public override IOperation InstrumentedApply() { 135 135 IRandom random = RandomParameter.ActualValue; 136 136 DoubleArray probabilities = ProbabilitiesParameter.ActualValue; … … 156 156 } 157 157 } 158 OperationCollection next = new OperationCollection(base. Apply());158 OperationCollection next = new OperationCollection(base.InstrumentedApply()); 159 159 if (successor != null) { 160 160 if (TraceSelectedOperatorParameter.Value.Value) -
trunk/sources/HeuristicLab.Operators/3.3/SubScopesProcessor.cs
r9456 r10295 67 67 } 68 68 69 public override IOperation Apply() {69 public override IOperation InstrumentedApply() { 70 70 List<IScope> scopes = GetScopesOnLevel(ExecutionContext.Scope, Depth.Value).ToList(); 71 OperationCollection next = new OperationCollection(base. Apply());71 OperationCollection next = new OperationCollection(base.InstrumentedApply()); 72 72 if (scopes.Count != Operators.Count) 73 73 throw new ArgumentException("The number of operators doesn't match the number of sub-scopes at depth " + Depth.Value);
Note: See TracChangeset
for help on using the changeset viewer.