Execution Sequence
The execution of SNiPER mainly consists of 3 steps, initialize, events loop and finalize. Each step consists some sub-steps as following,
- initialize
- all services are initialized in the order of their creation;
- then all algorithms are initialized in the order of their creation;
- events loop: loop all events. To each event, the following procedures are applied,
- broadcast an incident named BeginEvt (begin event);
- invoke the execute() method of all algorithms, in the order of their creation;
- broadcast an incident named EndEvt (end event);
- finalize
- all algorithms are finalized in the inverted order of their creation;
- then all services are finalized in the inverted order of their creation;
The following shows the execution sequence diagram.