![]() |
The Gaudi Framework
v28r2p1 (f1a77ff4)
|
#include <src/PrecedenceRulesGraph.h>
Public Member Functions | |
DecisionNode (PrecedenceRulesGraph &graph, unsigned int nodeIndex, const std::string &name, bool modeConcurrent, bool modePromptDecision, bool modeOR, bool allPass) | |
Constructor. More... | |
~DecisionNode () override | |
Destructor. More... | |
void | initialize (const std::unordered_map< std::string, unsigned int > &algname_index_map) override |
Initialize. More... | |
bool | accept (IGraphVisitor &visitor) override |
bool | promoteToControlReadyState (const int &slotNum, AlgsExecutionStates &states, std::vector< int > &node_decisions) const override |
XXX: CF tests. Method to set algos to CONTROLREADY, if possible. More... | |
void | updateDecision (const int &slotNum, AlgsExecutionStates &states, std::vector< int > &node_decisions, const AlgorithmNode *requestor=nullptr) const override |
XXX: CF tests. More... | |
int | updateState (AlgsExecutionStates &states, std::vector< int > &node_decisions) const override |
Method to set algos to CONTROLREADY, if possible. More... | |
void | addParentNode (DecisionNode *node) |
XXX: CF tests. Method to add a parent node. More... | |
void | addDaughterNode (ControlFlowNode *node) |
Add a daughter node. More... | |
const std::vector< ControlFlowNode * > & | getDaughters () const |
void | printState (std::stringstream &output, AlgsExecutionStates &states, const std::vector< int > &node_decisions, const unsigned int &recursionLevel) const override |
Print a string representing the control flow state. More... | |
![]() | |
ControlFlowNode (PrecedenceRulesGraph &graph, unsigned int nodeIndex, const std::string &name) | |
Constructor. More... | |
virtual | ~ControlFlowNode () |
Destructor. More... | |
const unsigned int & | getNodeIndex () const |
XXX: CF tests. More... | |
const std::string & | getNodeName () const |
Public Attributes | |
bool | m_modeConcurrent |
Whether all daughters will be evaluated concurrently or sequentially. More... | |
bool | m_modePromptDecision |
Whether to evaluate the hub decision ASA its child decisions allow to do that. More... | |
bool | m_modeOR |
Whether acting as "and" (false) or "or" node (true) More... | |
bool | m_allPass |
Whether always passing regardless of daughter results. More... | |
![]() | |
PrecedenceRulesGraph * | m_graph |
Private Attributes | |
std::vector< ControlFlowNode * > | m_children |
All direct daughter nodes in the tree. More... | |
std::vector< DecisionNode * > | m_parents |
XXX: CF tests. All direct parent nodes in the tree. More... | |
Additional Inherited Members | |
![]() | |
std::string | stateToString (const int &stateId) const |
Translation between state id and name. More... | |
![]() | |
unsigned int | m_nodeIndex |
std::string | m_nodeName |
Definition at line 86 of file PrecedenceRulesGraph.h.
|
inline |
Constructor.
Definition at line 89 of file PrecedenceRulesGraph.h.
|
override |
Destructor.
Definition at line 22 of file PrecedenceRulesGraph.cpp.
|
overridevirtual |
Implements concurrency::ControlFlowNode.
Definition at line 192 of file PrecedenceRulesGraph.cpp.
void concurrency::DecisionNode::addDaughterNode | ( | ControlFlowNode * | node | ) |
Add a daughter node.
Definition at line 43 of file PrecedenceRulesGraph.cpp.
void concurrency::DecisionNode::addParentNode | ( | DecisionNode * | node | ) |
XXX: CF tests. Method to add a parent node.
Definition at line 36 of file PrecedenceRulesGraph.cpp.
|
inline |
Definition at line 115 of file PrecedenceRulesGraph.h.
|
overridevirtual |
Initialize.
Implements concurrency::ControlFlowNode.
Definition at line 29 of file PrecedenceRulesGraph.cpp.
|
overridevirtual |
Print a string representing the control flow state.
Implements concurrency::ControlFlowNode.
Definition at line 50 of file PrecedenceRulesGraph.cpp.
|
overridevirtual |
XXX: CF tests. Method to set algos to CONTROLREADY, if possible.
Implements concurrency::ControlFlowNode.
Definition at line 170 of file PrecedenceRulesGraph.cpp.
|
overridevirtual |
XXX: CF tests.
Implements concurrency::ControlFlowNode.
Definition at line 103 of file PrecedenceRulesGraph.cpp.
|
overridevirtual |
Method to set algos to CONTROLREADY, if possible.
Implements concurrency::ControlFlowNode.
Definition at line 63 of file PrecedenceRulesGraph.cpp.
bool concurrency::DecisionNode::m_allPass |
Whether always passing regardless of daughter results.
Definition at line 130 of file PrecedenceRulesGraph.h.
|
private |
All direct daughter nodes in the tree.
Definition at line 133 of file PrecedenceRulesGraph.h.
bool concurrency::DecisionNode::m_modeConcurrent |
Whether all daughters will be evaluated concurrently or sequentially.
Definition at line 123 of file PrecedenceRulesGraph.h.
bool concurrency::DecisionNode::m_modeOR |
Whether acting as "and" (false) or "or" node (true)
Definition at line 128 of file PrecedenceRulesGraph.h.
bool concurrency::DecisionNode::m_modePromptDecision |
Whether to evaluate the hub decision ASA its child decisions allow to do that.
Applicable to both concurrent and sequential cases.
Definition at line 126 of file PrecedenceRulesGraph.h.
|
private |
XXX: CF tests. All direct parent nodes in the tree.
Definition at line 135 of file PrecedenceRulesGraph.h.