Changeset 776 for trunk/sources/HeuristicLab.Core/Interfaces/IEngine.cs
- Timestamp:
- 11/19/08 12:12:39 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core/Interfaces/IEngine.cs
r2 r776 25 25 26 26 namespace HeuristicLab.Core { 27 /// <summary> 28 /// Interface to represent one run. (An engine is an interpreter, holding the code, 29 /// the data and the actual state, which is the runtime stack and a pointer onto the next operation.). 30 /// It is responsible for operator execution and able to deal with parallelism. 31 /// </summary> 27 32 public interface IEngine : IItem { 33 /// <summary> 34 /// Gets the operator graph of the current instance. 35 /// </summary> 28 36 IOperatorGraph OperatorGraph { get; } 37 /// <summary> 38 /// Gets the global scope of the current instance. 39 /// </summary> 29 40 IScope GlobalScope { get; } 30 41 42 /// <summary> 43 /// Gets the execution time of the current instance. 44 /// </summary> 31 45 TimeSpan ExecutionTime { get; } 32 46 47 /// <summary> 48 /// Gets information whether the engine is currently running. 49 /// </summary> 33 50 bool Running { get; } 51 /// <summary> 52 /// Gets information whether the engine is canceled. 53 /// </summary> 34 54 bool Canceled { get; } 55 /// <summary> 56 /// Gets information whether the engine has already terminated. 57 /// </summary> 35 58 bool Terminated { get; } 36 59 60 /// <summary> 61 /// Executes the whole run. 62 /// </summary> 37 63 void Execute(); 64 /// <summary> 65 /// Executes one step (one operation). 66 /// </summary> 38 67 void ExecuteStep(); 68 /// <summary> 69 /// Executes the given number of steps. 70 /// </summary> 71 /// <param name="steps">The number of steps to execute.</param> 39 72 void ExecuteSteps(int steps); 73 /// <summary> 74 /// Aborts the engine run. 75 /// </summary> 40 76 void Abort(); 77 /// <summary> 78 /// Resets the current instance. 79 /// </summary> 41 80 void Reset(); 42 81 82 /// <summary> 83 /// Occurs when the current instance is initialized. 84 /// </summary> 43 85 event EventHandler Initialized; 86 /// <summary> 87 /// Occurs when an operation is executed. 88 /// </summary> 44 89 event EventHandler<OperationEventArgs> OperationExecuted; 90 /// <summary> 91 /// Occurs when an exception was thrown. 92 /// </summary> 45 93 event EventHandler<ExceptionEventArgs> ExceptionOccurred; 94 /// <summary> 95 /// Occurs when the execution time was changed. 96 /// </summary> 46 97 event EventHandler ExecutionTimeChanged; 98 /// <summary> 99 /// Occurs when the engine is finished. 100 /// </summary> 47 101 event EventHandler Finished; 48 102 }
Note: See TracChangeset
for help on using the changeset viewer.