#include <src/PRGraphVisitors.h>
Definition at line 27 of file PRGraphVisitors.h.
| concurrency::DecisionUpdater::DecisionUpdater |
( |
EventSlot & |
slot | ) |
|
|
inline |
Reimplemented from concurrency::IGraphVisitor.
Definition at line 50 of file PRGraphVisitors.cpp.
53 const State&
state = states[node.getAlgoIndex()];
56 if (
true == node.isOptimist() )
58 else if ( State::EVTACCEPTED == state )
59 decision = !node.isLiar();
60 else if ( State::EVTREJECTED == state )
61 decision = node.isLiar();
63 if ( -1 != decision ) {
67 auto promoter = DataReadyPromoter(*
m_slot);
68 for (
auto output : node.getOutputDataNodes() )
69 for (
auto consumer :
output->getConsumers() )
70 if (State::CONTROLREADY == states[consumer->getAlgoIndex()])
71 consumer->accept(promoter);
74 for (
auto p : node.getParentDecisionHubs() )
AlgsExecutionStates algsStates
Vector of algorithms states.
std::vector< int > controlFlowState
State of the control flow.
State
Execution states of the algorithms.
The documentation for this class was generated from the following files: