#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 408 of file PRGraphVisitors.cpp.
412 bool allChildDecisionsResolved =
true;
413 for (
auto child : node.getDaughters() ) {
416 if ( childDecision == 1 && node.m_modeOR && node.m_modePromptDecision ) {
421 if ( childDecision == -1 ) {
422 allChildDecisionsResolved =
false;
428 return allChildDecisionsResolved;
std::vector< int > controlFlowState
State of the control flow.
Reimplemented from concurrency::IGraphVisitor.
Definition at line 440 of file PRGraphVisitors.cpp.
448 if ( State::INITIAL == states[node.getAlgoIndex()] ) {
449 states.updateState( node.getAlgoIndex(), State::CONTROLREADY );
450 if ( dataPromoter.visit( node ) ) {
451 states.updateState( node.getAlgoIndex(), State::SCHEDULED );
452 states.updateState( node.getAlgoIndex(), State::EVTACCEPTED );
458 }
else if ( State::CONTROLREADY == states[node.getAlgoIndex()] && dataPromoter.visit( node ) ) {
459 states.updateState( node.getAlgoIndex(), State::SCHEDULED );
460 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: