#include <src/PRGraphVisitors.h>
Definition at line 135 of file PRGraphVisitors.h.
| concurrency::RunSimulator::RunSimulator |
( |
EventSlot & |
slot, |
|
|
const Cause & |
cause |
|
) |
| |
|
inline |
| void concurrency::RunSimulator::reset |
( |
| ) |
|
|
inlineoverridevirtual |
| bool concurrency::RunSimulator::visit |
( |
DecisionNode & |
node | ) |
|
|
overridevirtual |
Reimplemented from concurrency::IGraphVisitor.
Definition at line 499 of file PRGraphVisitors.cpp.
503 bool allChildDecisionsResolved =
true;
504 for (
auto child : node.getDaughters() ) {
507 if ( childDecision == 1 && node.m_modeOR && node.m_modePromptDecision ) {
512 if ( childDecision == -1 ) {
513 allChildDecisionsResolved =
false;
519 return allChildDecisionsResolved;
std::vector< int > controlFlowState
State of the control flow.
Reimplemented from concurrency::IGraphVisitor.
Definition at line 531 of file PRGraphVisitors.cpp.
539 if ( State::INITIAL == states[node.getAlgoIndex()] ) {
540 states.updateState( node.getAlgoIndex(), State::CONTROLREADY );
541 if ( dataPromoter.visit( node ) ) {
542 states.updateState( node.getAlgoIndex(), State::SCHEDULED );
543 states.updateState( node.getAlgoIndex(), State::EVTACCEPTED );
549 }
else if ( State::CONTROLREADY == states[node.getAlgoIndex()] && dataPromoter.visit( node ) ) {
550 states.updateState( node.getAlgoIndex(), State::SCHEDULED );
551 states.updateState( node.getAlgoIndex(), State::EVTACCEPTED );
AlgsExecutionStates algsStates
Vector of algorithms states.
std::vector< int > controlFlowState
State of the control flow.
| bool concurrency::RunSimulator::visitEnter |
( |
DecisionNode & |
node | ) |
const |
|
overridevirtual |
| bool concurrency::RunSimulator::visitEnter |
( |
AlgorithmNode & |
node | ) |
const |
|
overridevirtual |
| Cause concurrency::RunSimulator::m_cause |
| int concurrency::RunSimulator::m_nodesSucceeded {0} |
The documentation for this class was generated from the following files: