Changeset 10295 for trunk/sources/HeuristicLab.Optimization.Operators
- Timestamp:
- 01/07/14 13:13:41 (11 years ago)
- Location:
- trunk/sources/HeuristicLab.Optimization.Operators/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/sources/HeuristicLab.Optimization.Operators/3.3/ShakingOperator.cs ¶
r9456 r10295 56 56 } 57 57 58 public override IOperation Apply() {58 public override IOperation InstrumentedApply() { 59 59 if (NeighborhoodCountParameter.ActualValue == null) 60 60 NeighborhoodCountParameter.ActualValue = new IntValue(Operators.CheckedItems.Count()); … … 64 64 var shaker = base.Operators.CheckedItems.SingleOrDefault(x => x.Index == index); 65 65 66 OperationCollection next = new OperationCollection(base. Apply());66 OperationCollection next = new OperationCollection(base.InstrumentedApply()); 67 67 if (shaker.Value != null) 68 68 next.Insert(0, ExecutionContext.CreateChildOperation(shaker.Value)); -
TabularUnified trunk/sources/HeuristicLab.Optimization.Operators/3.3/UserDefinedOperator.cs ¶
r9456 r10295 35 35 public UserDefinedOperator() : base() { } 36 36 37 public override IOperation Apply() {37 public override IOperation InstrumentedApply() { 38 38 OperationCollection result = new OperationCollection(); 39 39 foreach (IOperator op in Operators.CheckedItems.OrderBy(x => x.Index).Select(x => x.Value)) { 40 40 result.Add(ExecutionContext.CreateOperation(op)); 41 41 } 42 result.Add(base. Apply());42 result.Add(base.InstrumentedApply()); 43 43 return result; 44 44 }
Note: See TracChangeset
for help on using the changeset viewer.