Changeset 2834 for trunk/sources/HeuristicLab.SequentialEngine
- Timestamp:
- 02/19/10 06:19:16 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.SequentialEngine/3.3/SequentialEngine.cs
r2818 r2834 21 21 22 22 using System; 23 using System.Collections.Generic;24 using System.Text;25 23 using HeuristicLab.Core; 26 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 57 55 protected override void ProcessNextOperator() { 58 56 currentOperator = null; 59 I ExecutionSequencenext = ExecutionStack.Pop();60 ExecutionContextCollection coll = next as ExecutionContextCollection;57 IOperation next = ExecutionStack.Pop(); 58 OperationCollection coll = next as OperationCollection; 61 59 while (coll != null) { 62 60 for (int i = coll.Count - 1; i >= 0; i--) 63 61 ExecutionStack.Push(coll[i]); 64 62 next = ExecutionStack.Count > 0 ? ExecutionStack.Pop() : null; 65 coll = next as ExecutionContextCollection;63 coll = next as OperationCollection; 66 64 } 67 ExecutionContext context = next as ExecutionContext;68 if ( context!= null) {65 IAtomicOperation operation = next as IAtomicOperation; 66 if (operation != null) { 69 67 try { 70 currentOperator = context.Operator;71 ExecutionStack.Push( context.Operator.Execute(context));68 currentOperator = operation.Operator; 69 ExecutionStack.Push(operation.Operator.Execute((IExecutionContext)operation)); 72 70 currentOperator = null; 73 71 } 74 72 catch (Exception ex) { 75 ExecutionStack.Push( context);73 ExecutionStack.Push(operation); 76 74 Stop(); 77 75 OnExceptionOccurred(ex); 78 76 } 79 if ( context.Operator.Breakpoint)77 if (operation.Operator.Breakpoint) 80 78 Stop(); 81 79 }
Note: See TracChangeset
for help on using the changeset viewer.