Base class for all calculation nodes. More...
#include <ElementaryNode.hxx>
Public Member Functions | |
virtual | ~ElementaryNode () |
void | exUpdateState () |
Update the node state. More... | |
void | init (bool start=true) |
bool | isDeployable () const |
ComponentInstance * | getComponent () |
const ComponentInstance * | getComponent () const |
Container * | getContainer () |
YACS::StatesForNode | getState () const |
void | getReadyTasks (std::vector< Task * > &tasks) |
void | edRemovePort (Port *port) throw (Exception) |
std::list< ElementaryNode * > | getRecursiveConstituents () const |
std::list< ProgressWeight > | getProgressWeight () const |
Get the progress weight for all elementary nodes. More... | |
Node * | getChildByName (const std::string &name) const throw (Exception) |
virtual void | checkBasicConsistency () const throw (Exception) |
ComposedNode * | getDynClonerIfExists (const ComposedNode *levelToStop) const |
int | getNumberOfInputPorts () const |
int | getNumberOfOutputPorts () const |
std::string | getInPortName (const InPort *) const throw (Exception) |
std::string | getOutPortName (const OutPort *) const throw (Exception) |
InputPort * | getInputPort (const std::string &name) const throw (Exception) |
OutputPort * | getOutputPort (const std::string &name) const throw (Exception) |
std::list< InputPort * > | getSetOfInputPort () const |
std::list< OutputPort * > | getSetOfOutputPort () const |
std::list< InputPort * > | getLocalInputPorts () const |
std::list< OutputPort * > | getLocalOutputPorts () const |
std::set< OutPort * > | getAllOutPortsLeavingCurrentScope () const |
std::set< InPort * > | getAllInPortsComingFromOutsideOfCurrentScope () const |
virtual std::vector< std::pair < OutPort *, InPort * > > | getSetOfLinksLeavingCurrentScope () const |
virtual std::vector< std::pair < InPort *, OutPort * > > | getSetOfLinksComingInCurrentScope () const |
std::list< InputDataStreamPort * > | getSetOfInputDataStreamPort () const |
std::list< OutputDataStreamPort * > | getSetOfOutputDataStreamPort () const |
InputDataStreamPort * | getInputDataStreamPort (const std::string &name) const throw (Exception) |
OutputDataStreamPort * | getOutputDataStreamPort (const std::string &name) const throw (Exception) |
virtual InputPort * | createInputPort (const std::string &inputPortName, TypeCode *type) |
virtual OutputPort * | createOutputPort (const std::string &outputPortName, TypeCode *type) |
virtual InputDataStreamPort * | createInputDataStreamPort (const std::string &inputPortDSName, TypeCode *type) |
virtual OutputDataStreamPort * | createOutputDataStreamPort (const std::string &outputPortDSName, TypeCode *type) |
virtual InputPort * | edAddInputPort (const std::string &inputPortName, TypeCode *type) throw (Exception) |
virtual OutputPort * | edAddOutputPort (const std::string &outputPortName, TypeCode *type) throw (Exception) |
virtual InputDataStreamPort * | edAddInputDataStreamPort (const std::string &inputPortDSName, TypeCode *type) throw (Exception) |
virtual OutputDataStreamPort * | edAddOutputDataStreamPort (const std::string &outputPortDSName, TypeCode *type) throw (Exception) |
virtual void | edOrderInputPorts (const std::list< InputPort * > &ports) |
virtual void | edOrderOutputPorts (const std::list< OutputPort * > &ports) |
virtual std::string | typeName () |
virtual void | edUpdateState () |
update the status of the node More... | |
virtual void | ensureLoading () |
Put this node into TOLOAD state when possible. More... | |
int | getMaxLevelOfParallelism () const |
void | begin () |
bool | isReady () |
void | finished () |
void | aborted () |
void | loaded () |
Notify this node that it is loaded. More... | |
void | connected () |
Notify this node that it is connected. More... | |
virtual std::string | getErrorDetails () |
Give a description of error when node status is ERROR. More... | |
virtual void | initService () |
virtual void | connectService () |
virtual void | disconnectService () |
virtual void | load () |
virtual void | getCoupledTasks (std::set< Task * > &coupledSet) |
Calls getCoupledNodes for Task interface. More... | |
virtual void | getCoupledNodes (std::set< Task * > &coupledSet) |
Put all nodes that are coupled to this node in coupledSet. More... | |
void | accept (Visitor *visitor) |
virtual void | addDatastreamPortToInitMultiService (const std::string &port_name, int number) |
template<class PORT > | |
void | edRemovePortTypedFromSet (PORT *port, std::list< PORT * > &setOfPorts) throw (Exception) |
template<class PORT > | |
bool | isPortNameAlreadyExist (const std::string &portName, const std::list< PORT * > &setOfPorts) |
Public Member Functions inherited from YACS::ENGINE::Node | |
virtual | ~Node () |
virtual void | shutdown (int level) |
Stop all pending activities of the node. More... | |
virtual void | resetState (int level) |
Reset the node state depending on the parameter level. More... | |
Node * | clone (ComposedNode *father, bool editionOnly=true) const |
This method MUST NEVER BE VIRTUAL More... | |
Node * | cloneWithoutCompAndContDeepCpy (ComposedNode *father, bool editionOnly=true) const |
This method MUST NEVER BE VIRTUAL More... | |
void | setState (YACS::StatesForNode theState) |
Sets the given state for node. More... | |
virtual YACS::StatesForNode | getEffectiveState () const |
Return the node state in the context of its father. More... | |
virtual YACS::StatesForNode | getEffectiveState (const Node *) const |
Return the effective state of a node in the context of this one (its father) More... | |
std::string | getColorState (YACS::StatesForNode state) const |
Return the color associated to a state. More... | |
InGate * | getInGate () |
OutGate * | getOutGate () |
const std::string & | getName () const |
void | setName (const std::string &name) |
Change the name of the node. More... | |
ComposedNode * | getFather () const |
const std::string | getId () const |
bool | exIsControlReady () const |
std::list< Node * > | getOutNodes () const |
virtual void | writeDot (std::ostream &os) const |
Dump to the input stream a dot representation of the node. More... | |
virtual void | exFailedState () |
Notify this node that its execution has failed. More... | |
virtual void | exDisabledState () |
Notify this node that it has been disabled. More... | |
std::list< InPort * > | getSetOfInPort () const |
std::list< OutPort * > | getSetOfOutPort () const |
virtual std::set< InputPort * > | edGetSetOfUnitializedInputPort () const |
Becomes deprecated soon. Replaced by ComposedNode::CheckConsistency. More... | |
virtual bool | edAreAllInputPortInitialized () const |
Becomes deprecated soon. Replaced by ComposedNode::CheckConsistency. More... | |
InPort * | getInPort (const std::string &name) const throw (Exception) |
InPropertyPort * | getInPropertyPort () const throw (Exception) |
virtual OutPort * | getOutPort (const std::string &name) const throw (Exception) |
std::list< ComposedNode * > | getAllAscendanceOf (ComposedNode *levelToStop=0) const |
bool | operator> (const Node &other) const |
bool | operator< (const Node &other) const |
std::string | getImplementation () const |
virtual ComposedNode * | getRootNode () const throw (Exception) |
virtual void | setProperty (const std::string &name, const std::string &value) |
virtual std::string | getProperty (const std::string &name) |
std::map< std::string, std::string > | getProperties () |
std::map< std::string, std::string > | getPropertyMap () |
virtual void | setProperties (std::map< std::string, std::string > properties) |
virtual Proc * | getProc () |
virtual const Proc * | getProc () const |
std::string | getQualifiedName () const |
same as Node::getName() in most cases, but differs for children of switch More... | |
int | getNumId () |
return node instance identifiant, unique for each node instance More... | |
std::vector< std::pair < std::string, int > > | getDPLScopeInfo (ComposedNode *gfn) |
virtual void | applyDPLScope (ComposedNode *gfn) |
virtual void | sendEvent (const std::string &event) |
emit notification to all observers registered with the dispatcher More... | |
virtual void | sendEvent2 (const std::string &event, void *something) |
emit notification to all observers registered with the dispatcher More... | |
virtual std::string | getErrorDetails () const |
virtual void | setErrorDetails (const std::string &error) |
virtual void | modified () |
Sets Node in modified state and its father if it exists. More... | |
virtual int | isModified () |
virtual int | isValid () |
indicates if the node is valid (returns 1) or not (returns 0) More... | |
virtual std::string | getErrorReport () |
returns a string that contains an error report if the node is in error More... | |
virtual std::string | getContainerLog () |
returns a string that contains the name of the container log file if it exists More... | |
virtual void | cleanNodes () |
Clean the node in case of not clean exit. More... | |
Public Member Functions inherited from YACS::ENGINE::Task | |
virtual void | execute ()=0 |
virtual | ~Task () |
Protected Member Functions | |
ElementaryNode (const std::string &name) | |
ElementaryNode (const ElementaryNode &other, ComposedNode *father) | |
void | performDuplicationOfPlacement (const Node &other) |
performs a duplication of placement using clone method of containers and components. clone behaviour is driven by attachOnCloning attribute. More... | |
void | performShallowDuplicationOfPlacement (const Node &other) |
performs a also duplication of placement but here containers and components are not copied at all whatever the value of attachedOnCloning. More... | |
void | initCommonPartWithoutStateManagement (bool start) |
virtual void | createMultiDatastreamPorts () |
void | edDisconnectAllLinksWithMe () |
bool | areAllInputPortsValid () const |
template<class PORT > | |
PORT * | getPort (const std::string &name, const std::list< PORT * > &setOfPorts) const throw (Exception) |
template<class PORT , class ENUMTYPE > | |
PORT * | edAddPort (const std::string &portName, std::list< PORT * > &setOfPorts, ENUMTYPE type) throw (Exception) |
template<class PORT , class ENUMTYPE > | |
bool | edCheckAddPort (const std::string &portName, std::list< PORT * > &setOfPorts, ENUMTYPE type) throw (Exception) |
Protected Member Functions inherited from YACS::ENGINE::Node | |
Node (const std::string &name) | |
Node (const Node &other, ComposedNode *father) | |
virtual Node * | simpleClone (ComposedNode *father, bool editionOnly=true) const =0 |
virtual void | exForwardFailed () |
virtual void | exForwardFinished () |
Static Protected Member Functions | |
template<class PORT > | |
static void | edRemovePortTypedFromSet (PORT *port, std::list< PORT * > &setOfPorts) throw (Exception) |
template<class PORT > | |
static bool | isPortNameAlreadyExist (const std::string &portName, const std::list< PORT * > &setOfPorts) |
Static Protected Member Functions inherited from YACS::ENGINE::Node | |
static void | checkValidityOfPortName (const std::string &name) throw (Exception) |
static ComposedNode * | checkHavingCommonFather (Node *node1, Node *node2) throw (Exception) |
Protected Attributes | |
std::list< InputPort * > | _setOfInputPort |
std::list< OutputPort * > | _setOfOutputPort |
std::list< InputDataStreamPort * > | _setOfInputDataStreamPort |
std::list< OutputDataStreamPort * > | _setOfOutputDataStreamPort |
bool | _createDatastreamPorts |
bool | _multi_port_node |
Protected Attributes inherited from YACS::ENGINE::Node | |
InGate | _inGate |
OutGate | _outGate |
InPropertyPort * | _inPropertyPort |
std::string | _name |
ComposedNode * | _father |
YACS::StatesForNode | _state |
int | _modified |
std::string | _errorDetails |
int | _numId |
std::string | _implementation |
std::map< std::string, std::string > | _propertyMap |
Friends | |
class | ComposedNode |
Additional Inherited Members | |
Static Public Member Functions inherited from YACS::ENGINE::Node | |
static std::string | getStateName (YACS::StatesForNode state) |
Return the name of a state. More... | |
Public Attributes inherited from YACS::ENGINE::Node | |
YACS::Colour | _colour |
Static Public Attributes inherited from YACS::ENGINE::Node | |
static std::map< int, Node * > | idMap |
Static Protected Attributes inherited from YACS::ENGINE::Node | |
static const char | SEP_CHAR_IN_PORT [] ="." |
static int | _total = 0 |
Base class for all calculation nodes.
This is an abstract class that must be specialized.
Definition at line 43 of file ElementaryNode.hxx.
|
protected |
Definition at line 47 of file ElementaryNode.cxx.
|
protected |
Definition at line 54 of file ElementaryNode.cxx.
References _createDatastreamPorts, _multi_port_node, _setOfInputDataStreamPort, _setOfInputPort, _setOfOutputDataStreamPort, and _setOfOutputPort.
|
virtual |
Definition at line 76 of file ElementaryNode.cxx.
References _setOfInputDataStreamPort, _setOfInputPort, _setOfOutputDataStreamPort, and _setOfOutputPort.
|
virtual |
Implements YACS::ENGINE::Task.
Reimplemented in YACS::ENGINE::FakeNodeForLoop, YACS::ENGINE::FakeNodeForForEachLoop, YACS::ENGINE::FakeNodeForSwitch, and YACS::ENGINE::FakeNodeForOptimizerLoop.
Definition at line 761 of file ElementaryNode.cxx.
References YACS::ERROR, and YACS::ENGINE::Node::setState().
|
virtual |
Implements YACS::ENGINE::Node.
Reimplemented in YACS::ENGINE::InlineFuncNode, YACS::ENGINE::InlineNode, YACS::ENGINE::ServiceNode, YACS::ENGINE::StudyOutNode, YACS::ENGINE::ServerNode, YACS::ENGINE::ServiceInlineNode, YACS::ENGINE::PresetNode, YACS::ENGINE::StudyInNode, and YACS::ENGINE::OutNode.
Definition at line 793 of file ElementaryNode.cxx.
References YACS::ENGINE::Visitor::visitElementaryNode().
|
inlinevirtual |
Definition at line 129 of file ElementaryNode.hxx.
Referenced by createMultiDatastreamPorts().
|
protected |
checks if all input ports contains a valid data. Used at execution to change the state of the node for activation.
Definition at line 272 of file ElementaryNode.cxx.
References _setOfInputPort, and PMMLBasicsTestLauncher::ret.
Referenced by connected(), and exUpdateState().
|
virtual |
Implements YACS::ENGINE::Task.
Definition at line 747 of file ElementaryNode.cxx.
References YACS::ACTIVATED, and YACS::ENGINE::Node::setState().
Referenced by YACS::HMI::SubjectNode::registerUndoDestroy().
|
virtual |
Reimplemented in YACS::ENGINE::PyFuncNode, YACS::ENGINE::InlineFuncNode, YACS::ENGINE::PythonNode, YACS::ENGINE::StudyOutNode, YACS::ENGINE::PresetNode, YACS::ENGINE::StudyInNode, and YACS::ENGINE::OutNode.
Definition at line 575 of file ElementaryNode.cxx.
References _setOfInputPort, and DEBTRACE.
Referenced by YACS::ENGINE::PythonNode::checkBasicConsistency(), YACS::ENGINE::InlineFuncNode::checkBasicConsistency(), and edUpdateState().
|
virtual |
Notify this node that it is connected.
When an elementary node has been connected it goes to TOACTIVATE state It is then ready to be executed
Implements YACS::ENGINE::Task.
Definition at line 782 of file ElementaryNode.cxx.
References YACS::ENGINE::Node::_inGate, areAllInputPortsValid(), YACS::ENGINE::InGate::exIsReady(), YACS::LOADED, YACS::ENGINE::Node::setState(), and YACS::TOACTIVATE.
|
inlinevirtual |
|
virtual |
Definition at line 687 of file ElementaryNode.cxx.
References YACS::ENGINE::Runtime::createInputDataStreamPort(), and YACS::ENGINE::getRuntime().
|
virtual |
Reimplemented in YACS::ENGINE::StudyOutNode, and YACS::ENGINE::OutNode.
Definition at line 591 of file ElementaryNode.cxx.
References YACS::ENGINE::Node::_implementation, YACS::ENGINE::Runtime::createInputPort(), and YACS::ENGINE::getRuntime().
|
protectedvirtual |
Definition at line 288 of file ElementaryNode.cxx.
References _createDatastreamPorts, _multi_port_node, YACS::ENGINE::Node::_propertyMap, _setOfInputDataStreamPort, _setOfOutputDataStreamPort, addDatastreamPortToInitMultiService(), YACS::ENGINE::InputDataStreamPort::clone(), YACS::ENGINE::OutputDataStreamPort::clone(), YACS::ENGINE::DataPort::getName(), CORBAEngineTest::i, and YACS::ENGINE::DataPort::setName().
Referenced by getReadyTasks().
|
virtual |
Definition at line 704 of file ElementaryNode.cxx.
References YACS::ENGINE::Runtime::createOutputDataStreamPort(), and YACS::ENGINE::getRuntime().
|
virtual |
Reimplemented in YACS::ENGINE::PresetNode, and YACS::ENGINE::StudyInNode.
Definition at line 660 of file ElementaryNode.cxx.
References YACS::ENGINE::Node::_implementation, YACS::ENGINE::Runtime::createOutputPort(), and YACS::ENGINE::getRuntime().
|
inlinevirtual |
|
virtual |
Definition at line 692 of file ElementaryNode.cxx.
References PMMLBasicsTestLauncher::ret.
Referenced by YACS::ENGINE::SessionCataLoader::importComponent(), and YACS::HMI::CommandAddIDSPortFromCatalog::localExecute().
|
virtual |
the input port is also published recursively in ancestors because it may be visible from everywhere. WARNING: CHECK CASE OF BLOC: ONLY INPUT PORTS NOT INTERNALLY CONNECTED MUST BE VISIBLE.
Definition at line 601 of file ElementaryNode.cxx.
References PMMLBasicsTestLauncher::ret.
Referenced by YACS::ENGINE::SalomePythonNode::cloneNode(), YACS::ENGINE::CppNode::cloneNode(), YACS::ENGINE::PythonNode::cloneNode(), YACS::ENGINE::PyFuncNode::cloneNode(), YACS::ENGINE::SessionCataLoader::importComponent(), and YACS::HMI::CommandAddInputPortFromCatalog::localExecute().
|
virtual |
Definition at line 709 of file ElementaryNode.cxx.
References PMMLBasicsTestLauncher::ret.
Referenced by YACS::ENGINE::SessionCataLoader::importComponent(), and YACS::HMI::CommandAddODSPortFromCatalog::localExecute().
|
virtual |
TO SOLVE : The output port is not published in father. Father must create an output port. for now, publication is done the same way as input ports
Definition at line 670 of file ElementaryNode.cxx.
References PMMLBasicsTestLauncher::ret.
Referenced by YACS::ENGINE::SalomePythonNode::cloneNode(), YACS::ENGINE::CppNode::cloneNode(), YACS::ENGINE::PythonNode::cloneNode(), YACS::ENGINE::PyFuncNode::cloneNode(), YACS::ENGINE::SessionCataLoader::importComponent(), and YACS::HMI::CommandAddOutputPortFromCatalog::localExecute().
|
protected |
protected: add a port given it's name and type, in a given list of ports WHY TEMPLATE PARAMETER ENUMTYPE?
Definition at line 174 of file ElementaryNode.hxx.
References PMMLBasicsTestLauncher::ret.
|
protected |
Definition at line 188 of file ElementaryNode.hxx.
|
protectedvirtual |
Called typically by ComposedNode to correctly update DF/CF/DS links
Reimplemented from YACS::ENGINE::Node.
Definition at line 247 of file ElementaryNode.cxx.
References _setOfInputDataStreamPort, _setOfInputPort, _setOfOutputDataStreamPort, _setOfOutputPort, and YACS::ENGINE::Node::edDisconnectAllLinksWithMe().
Referenced by YACS::ENGINE::DFToDSForLoop::~DFToDSForLoop(), and YACS::ENGINE::DSToDFForLoop::~DSToDFForLoop().
|
virtual |
Definition at line 626 of file ElementaryNode.cxx.
References _setOfInputPort.
Referenced by YACS::HMI::CommandOrderInputPorts::localExecute(), and YACS::HMI::CommandOrderInputPorts::localReverse().
|
virtual |
Definition at line 643 of file ElementaryNode.cxx.
References _setOfOutputPort.
Referenced by YACS::HMI::CommandOrderOutputPorts::localExecute(), and YACS::HMI::CommandOrderOutputPorts::localReverse().
remove port from node at edition. Ports are typed.
Definition at line 521 of file ElementaryNode.cxx.
Referenced by YACS::HMI::SubjectDataPort::~SubjectDataPort().
|
staticprotected |
void YACS::ENGINE::ElementaryNode::edRemovePortTypedFromSet | ( | PORT * | port, |
std::list< PORT * > & | setOfPorts | ||
) | throw (Exception) |
|
virtual |
update the status of the node
Only useful when editing a schema Do nothing in base Node : to implement in derived classes
Reimplemented from YACS::ENGINE::Node.
Definition at line 807 of file ElementaryNode.cxx.
References YACS::ENGINE::Node::_errorDetails, YACS::ENGINE::Node::_modified, YACS::ENGINE::Node::_state, checkBasicConsistency(), DEBTRACE, YACS::ENGINE::Node::getName(), YACS::INVALID, YACS::READY, YACS::ENGINE::Node::setState(), CORBAEngineTest::state, and YACS::Exception::what().
|
virtual |
Put this node into TOLOAD state when possible.
Can be called by another ElementaryNode that is connected to this one by a datastream link These 2 nodes must be loaded at the same time as they are coupled It's the other node which requests this node loading
Reimplemented from YACS::ENGINE::Node.
Definition at line 833 of file ElementaryNode.cxx.
References _setOfInputDataStreamPort, _setOfOutputDataStreamPort, YACS::ENGINE::Node::_state, DEBTRACE, YACS::ENGINE::OutputDataStreamPort::edSetInPort(), YACS::ENGINE::InPort::edSetOutPort(), YACS::ENGINE::Node::ensureLoading(), YACS::ENGINE::Node::getName(), YACS::READY, YACS::ENGINE::Node::setState(), and YACS::TOLOAD.
Referenced by exUpdateState().
|
virtual |
Update the node state.
Called by InGate::exNotifyFromPrecursor
Reimplemented from YACS::ENGINE::Node.
Definition at line 134 of file ElementaryNode.cxx.
References YACS::ENGINE::Node::_errorDetails, YACS::ENGINE::Node::_inGate, YACS::ENGINE::Node::_name, YACS::ENGINE::Node::_state, areAllInputPortsValid(), DEBTRACE, YACS::DISABLED, ensureLoading(), YACS::ENGINE::InGate::exIsReady(), YACS::ENGINE::Node::getName(), YACS::INTERNALERR, YACS::LOADED, YACS::READY, YACS::ENGINE::Node::setState(), and YACS::TOACTIVATE.
Referenced by getReadyTasks().
|
virtual |
Implements YACS::ENGINE::Task.
Reimplemented in YACS::ENGINE::FakeNodeForLoop, YACS::ENGINE::FakeNodeForForEachLoop, YACS::ENGINE::FakeNodeForSwitch, and YACS::ENGINE::FakeNodeForOptimizerLoop.
Definition at line 757 of file ElementaryNode.cxx.
References YACS::DONE, and YACS::ENGINE::Node::setState().
|
virtual |
Implements YACS::ENGINE::Node.
Definition at line 193 of file ElementaryNode.cxx.
References YACS::ENGINE::Node::getSetOfInPort(), and PMMLBasicsTestLauncher::ret.
Referenced by getSetOfLinksComingInCurrentScope().
|
virtual |
Implements YACS::ENGINE::Node.
Definition at line 180 of file ElementaryNode.cxx.
References YACS::ENGINE::Node::getSetOfOutPort(), and PMMLBasicsTestLauncher::ret.
Referenced by getSetOfLinksLeavingCurrentScope().
Implements YACS::ENGINE::Node.
Definition at line 569 of file ElementaryNode.cxx.
|
virtual |
Implements YACS::ENGINE::Task.
Reimplemented in YACS::ENGINE::ServiceNode.
Definition at line 114 of file ElementaryNode.cxx.
|
virtual |
Implements YACS::ENGINE::Task.
Reimplemented in YACS::ENGINE::ServiceNode.
Definition at line 119 of file ElementaryNode.cxx.
|
virtual |
Implements YACS::ENGINE::Task.
Reimplemented in YACS::ENGINE::InlineNode, and YACS::ENGINE::ServiceNode.
Definition at line 124 of file ElementaryNode.cxx.
Referenced by getReadyTasks().
|
virtual |
Put all nodes that are coupled to this node in coupledSet.
Reimplemented from YACS::ENGINE::Node.
Definition at line 875 of file ElementaryNode.cxx.
References _setOfOutputDataStreamPort, YACS::ENGINE::OutputDataStreamPort::edSetInPort(), and YACS::ENGINE::Node::getCoupledNodes().
Referenced by getCoupledTasks().
|
virtual |
Calls getCoupledNodes for Task interface.
Implements YACS::ENGINE::Task.
Definition at line 869 of file ElementaryNode.cxx.
References getCoupledNodes().
ComposedNode * ElementaryNode::getDynClonerIfExists | ( | const ComposedNode * | levelToStop | ) | const |
|
virtual |
Give a description of error when node status is ERROR.
Definition at line 802 of file ElementaryNode.cxx.
References YACS::ENGINE::Node::_errorDetails.
Referenced by YACS::ENGINE::DistributedPythonNode::dealException(), and YACS::ENGINE::SalomeNode::execute().
get the input port name used by the current node (see composed nodes)
Implements YACS::ENGINE::Node.
Definition at line 725 of file ElementaryNode.cxx.
References YACS::ENGINE::Node::getName().
|
virtual |
Implements YACS::ENGINE::Node.
Reimplemented in YACS::ENGINE::DSToDFForLoop.
Definition at line 237 of file ElementaryNode.cxx.
Referenced by getReadyTasks(), and YACS::HMI::CommandAddIDSPortFromCatalog::localReverse().
|
virtual |
Reimplemented from YACS::ENGINE::Node.
Reimplemented in YACS::ENGINE::SplitterNode, and YACS::ENGINE::DFToDSForLoop.
Definition at line 166 of file ElementaryNode.cxx.
References YACS::ENGINE::Node::getInputPort().
Referenced by YACS::ENGINE::SplitterNode::getInputPort(), getReadyTasks(), YACS::HMI::CommandOrderInputPorts::localExecute(), YACS::HMI::CommandAddInputPortFromCatalog::localReverse(), YACS::HMI::CommandOrderInputPorts::localReverse(), and YACS::ENGINE::portParser::onEnd().
|
inlinevirtual |
Implements YACS::ENGINE::Node.
Definition at line 84 of file ElementaryNode.hxx.
Referenced by YACS::HMI::SubjectElementaryNode::loadChildren().
|
inlinevirtual |
Implements YACS::ENGINE::Node.
Definition at line 85 of file ElementaryNode.hxx.
Referenced by YACS::HMI::SubjectElementaryNode::loadChildren().
|
inlinevirtual |
Implements YACS::ENGINE::Node.
Reimplemented in YACS::ENGINE::InlineNode.
Definition at line 109 of file ElementaryNode.hxx.
|
virtual |
Implements YACS::ENGINE::Node.
Definition at line 156 of file ElementaryNode.cxx.
References _setOfInputPort.
Referenced by YACS::ENGINE::SalomePythonNode::execute(), YACS::ENGINE::DistributedPythonNode::execute(), YACS::ENGINE::PyFuncNode::executeLocal(), and YACS::ENGINE::PyFuncNode::executeRemote().
|
virtual |
Implements YACS::ENGINE::Node.
Definition at line 161 of file ElementaryNode.cxx.
References _setOfOutputPort.
Referenced by YACS::ENGINE::XmlNode::execute(), YACS::ENGINE::SalomePythonNode::execute(), YACS::ENGINE::DistributedPythonNode::execute(), YACS::ENGINE::PyFuncNode::executeLocal(), YACS::ENGINE::PythonNode::executeRemote(), and YACS::ENGINE::PyFuncNode::executeRemote().
Implements YACS::ENGINE::Node.
Definition at line 736 of file ElementaryNode.cxx.
References YACS::ENGINE::Node::getName().
|
virtual |
Implements YACS::ENGINE::Node.
Reimplemented in YACS::ENGINE::DFToDSForLoop.
Definition at line 242 of file ElementaryNode.cxx.
Referenced by getReadyTasks(), and YACS::HMI::CommandAddODSPortFromCatalog::localReverse().
|
virtual |
Implements YACS::ENGINE::Node.
Reimplemented in YACS::ENGINE::DSToDFForLoop.
Definition at line 175 of file ElementaryNode.cxx.
Referenced by YACS::HMI::CommandOrderOutputPorts::localExecute(), YACS::HMI::CommandAddOutputPortFromCatalog::localReverse(), and YACS::HMI::CommandOrderOutputPorts::localReverse().
|
protected |
protected: get a port in a list given it's name
Definition at line 155 of file ElementaryNode.hxx.
|
virtual |
Get the progress weight for all elementary nodes.
Only elementary nodes have weight. At this stage weight is 0 or 1 (it can be modified later following the kind of father)
Implements YACS::ENGINE::Node.
Definition at line 556 of file ElementaryNode.cxx.
References YACS::DONE, getState(), PMMLBasicsTestLauncher::ret, YACS::ENGINE::ProgressWeight::weightDone, and YACS::ENGINE::ProgressWeight::weightTotal.
|
virtual |
add this node task to a given set of ready tasks, if this task is ready to activate
Implements YACS::ENGINE::Node.
Reimplemented in YACS::ENGINE::DSToDFForLoop, and YACS::ENGINE::DFToDSForLoop.
Definition at line 360 of file ElementaryNode.cxx.
References YACS::ENGINE::InPort::_backLinks, YACS::ENGINE::Node::_father, YACS::ENGINE::Node::_propertyMap, YACS::ENGINE::OutputDataStreamPort::_setOfInputDataStreamPort, _setOfOutputPort, YACS::ENGINE::Node::_state, YACS::ENGINE::Node::clone(), createMultiDatastreamPorts(), DEBTRACE, YACS::ENGINE::ComposedNode::edAddDFLink(), YACS::ENGINE::ComposedNode::edAddLink(), YACS::ENGINE::InGate::exNotifyFromPrecursor(), exUpdateState(), YACS::ENGINE::InGate::getBackLinks(), YACS::ENGINE::InputDataStreamPort::getConnectedOutputDataStreamPort(), getContainer(), YACS::ENGINE::Node::getInGate(), getInputDataStreamPort(), getInputPort(), YACS::ENGINE::Node::getName(), getOutputDataStreamPort(), YACS::ENGINE::Node::getProc(), getSetOfInputDataStreamPort(), getSetOfInputPort(), getSetOfOutputDataStreamPort(), CORBAEngineTest::i, init(), YACS::ENGINE::Node::setName(), YACS::ENGINE::Container::setProperty(), YACS::TOACTIVATE, YACS::TOLOAD, and YACS::TORECONNECT.
Referenced by YACS::ENGINE::OptimizerLoop::getReadyTasks(), YACS::ENGINE::Switch::getReadyTasks(), YACS::ENGINE::Loop::getReadyTasks(), and YACS::ENGINE::ForEachLoop::getReadyTasks().
|
virtual |
Implements YACS::ENGINE::Node.
Definition at line 544 of file ElementaryNode.cxx.
References PMMLBasicsTestLauncher::ret.
|
inlinevirtual |
Implements YACS::ENGINE::Node.
Definition at line 90 of file ElementaryNode.hxx.
Referenced by getReadyTasks(), and YACS::HMI::SubjectElementaryNode::loadChildren().
|
inlinevirtual |
Implements YACS::ENGINE::Node.
Definition at line 82 of file ElementaryNode.hxx.
Referenced by getReadyTasks(), YACS::HMI::CommandOrderInputPorts::localExecute(), YACS::HMI::CommandOrderInputPorts::localReverse(), YACS::HMI::TablePortsEdition::on_pb_insert_clicked(), YACS::HMI::EditionPyFunc::onTemplate(), YACS::HMI::SubjectDataPort::registerUndoDestroy(), YACS::HMI::SchemaNodeItem::update(), YACS::ENGINE::VisitorSaveState::visitElementaryNode(), YACS::ENGINE::VisitorSaveSalomeSchema::writeOutNodeParameters(), and YACS::ENGINE::VisitorSaveSalomeSchema::writeStudyOutNodeParameters().
|
virtual |
Implements YACS::ENGINE::Node.
Definition at line 219 of file ElementaryNode.cxx.
References getAllInPortsComingFromOutsideOfCurrentScope(), and PMMLBasicsTestLauncher::ret.
|
virtual |
Implements YACS::ENGINE::Node.
Definition at line 206 of file ElementaryNode.cxx.
References getAllOutPortsLeavingCurrentScope(), and PMMLBasicsTestLauncher::ret.
|
inlinevirtual |
Implements YACS::ENGINE::Node.
Definition at line 91 of file ElementaryNode.hxx.
Referenced by getReadyTasks(), and YACS::HMI::SubjectElementaryNode::loadChildren().
|
inlinevirtual |
Implements YACS::ENGINE::Node.
Definition at line 83 of file ElementaryNode.hxx.
Referenced by YACS::HMI::CommandOrderOutputPorts::localExecute(), YACS::HMI::CommandOrderOutputPorts::localReverse(), YACS::HMI::TablePortsEdition::on_pb_insert_clicked(), YACS::HMI::EditionPyFunc::onTemplate(), YACS::HMI::SubjectDataPort::registerUndoDestroy(), YACS::HMI::SchemaNodeItem::update(), YACS::ENGINE::VisitorSaveState::visitElementaryNode(), YACS::ENGINE::VisitorSaveSalomeSchema::writeDataNodeParameters(), and YACS::ENGINE::VisitorSaveSalomeSchema::writeStudyInNodeParameters().
|
virtual |
Reimplemented from YACS::ENGINE::Node.
Definition at line 129 of file ElementaryNode.cxx.
References YACS::ENGINE::Node::getState().
Referenced by getProgressWeight(), YACS::ENGINE::VisitorSaveState::visitElementaryNode(), YACS::ENGINE::VisitorSaveSchema::visitInlineFuncNode(), YACS::ENGINE::VisitorSaveSchema::visitInlineNode(), YACS::ENGINE::VisitorSaveSalomeSchema::visitOutNode(), YACS::ENGINE::VisitorSaveSalomeSchema::visitPresetNode(), YACS::ENGINE::VisitorSaveSchema::visitServerNode(), YACS::ENGINE::VisitorSaveSchema::visitServiceInlineNode(), YACS::ENGINE::VisitorSaveSchema::visitServiceNode(), YACS::ENGINE::VisitorSaveSalomeSchema::visitStudyInNode(), and YACS::ENGINE::VisitorSaveSalomeSchema::visitStudyOutNode().
|
virtual |
initialisation of all input and output ports and gates, for execution
Reimplemented from YACS::ENGINE::Node.
Reimplemented in YACS::ENGINE::PyFuncNode, and YACS::ENGINE::SplitterNode.
Definition at line 97 of file ElementaryNode.cxx.
References YACS::ENGINE::Node::_state, DEBTRACE, YACS::DISABLED, YACS::ENGINE::Node::exDisabledState(), YACS::ENGINE::Node::getName(), initCommonPartWithoutStateManagement(), YACS::READY, and YACS::ENGINE::Node::setState().
Referenced by getReadyTasks(), and YACS::ENGINE::SplitterNode::init().
|
protected |
Definition at line 88 of file ElementaryNode.cxx.
References YACS::ENGINE::Node::_inGate, _setOfInputPort, _setOfOutputPort, and YACS::ENGINE::InGate::exReset().
Referenced by init(), and YACS::ENGINE::PyFuncNode::init().
|
inlinevirtual |
|
virtual |
Implements YACS::ENGINE::Task.
Reimplemented in YACS::ENGINE::InlineNode, YACS::ENGINE::ServerNode, and YACS::ENGINE::ServiceNode.
Definition at line 109 of file ElementaryNode.cxx.
|
staticprotected |
bool YACS::ENGINE::ElementaryNode::isPortNameAlreadyExist | ( | const std::string & | portName, |
const std::list< PORT * > & | setOfPorts | ||
) |
protected: checks existence of a port, given it's name, in a list
Definition at line 221 of file ElementaryNode.hxx.
|
virtual |
Implements YACS::ENGINE::Task.
Definition at line 752 of file ElementaryNode.cxx.
References YACS::ENGINE::Node::_state, and YACS::TOACTIVATE.
|
inlinevirtual |
Implements YACS::ENGINE::Task.
Reimplemented in YACS::ENGINE::PyFuncNode, YACS::ENGINE::DSToDFForLoop, YACS::ENGINE::PythonNode, YACS::ENGINE::DFToDSForLoop, YACS::ENGINE::CppNode, YACS::ENGINE::DistributedPythonNode, YACS::ENGINE::SalomePythonNode, YACS::ENGINE::ServiceNode, YACS::ENGINE::ServerNode, and YACS::ENGINE::XmlNode.
Definition at line 122 of file ElementaryNode.hxx.
|
virtual |
Notify this node that it is loaded.
When an elementary node has been loaded It is ready to be connected
Implements YACS::ENGINE::Task.
Definition at line 772 of file ElementaryNode.cxx.
|
protectedvirtual |
performs a duplication of placement using clone method of containers and components. clone behaviour is driven by attachOnCloning attribute.
Implements YACS::ENGINE::Node.
Reimplemented in YACS::ENGINE::InlineNode, and YACS::ENGINE::ServiceNode.
Definition at line 68 of file ElementaryNode.cxx.
|
protectedvirtual |
performs a also duplication of placement but here containers and components are not copied at all whatever the value of attachedOnCloning.
Implements YACS::ENGINE::Node.
Reimplemented in YACS::ENGINE::InlineNode, and YACS::ENGINE::ServiceNode.
Definition at line 72 of file ElementaryNode.cxx.
|
inlinevirtual |
Reimplemented from YACS::ENGINE::Node.
Reimplemented in YACS::ENGINE::PyFuncNode, YACS::ENGINE::InlineFuncNode, YACS::ENGINE::PythonNode, YACS::ENGINE::SalomeNode, YACS::ENGINE::InlineNode, YACS::ENGINE::DistributedPythonNode, YACS::ENGINE::StudyOutNode, YACS::ENGINE::ServiceNode, YACS::ENGINE::CORBANode, YACS::ENGINE::DataNode, YACS::ENGINE::ServerNode, YACS::ENGINE::ServiceInlineNode, YACS::ENGINE::PresetNode, and YACS::ENGINE::StudyInNode.
Definition at line 105 of file ElementaryNode.hxx.
|
friend |
Definition at line 45 of file ElementaryNode.hxx.
|
protected |
Definition at line 53 of file ElementaryNode.hxx.
Referenced by createMultiDatastreamPorts(), and ElementaryNode().
|
protected |
Definition at line 54 of file ElementaryNode.hxx.
Referenced by createMultiDatastreamPorts(), and ElementaryNode().
|
protected |
Definition at line 49 of file ElementaryNode.hxx.
Referenced by createMultiDatastreamPorts(), YACS::ENGINE::DSToDFForLoop::DSToDFForLoop(), edDisconnectAllLinksWithMe(), ElementaryNode(), ensureLoading(), and ~ElementaryNode().
|
protected |
Definition at line 47 of file ElementaryNode.hxx.
Referenced by areAllInputPortsValid(), YACS::ENGINE::OutNode::checkBasicConsistency(), YACS::ENGINE::PresetNode::checkBasicConsistency(), YACS::ENGINE::StudyInNode::checkBasicConsistency(), YACS::ENGINE::StudyOutNode::checkBasicConsistency(), checkBasicConsistency(), YACS::ENGINE::SalomePythonNode::cloneNode(), YACS::ENGINE::CppNode::cloneNode(), YACS::ENGINE::PythonNode::cloneNode(), YACS::ENGINE::PyFuncNode::cloneNode(), YACS::ENGINE::DFToDSForLoop::DFToDSForLoop(), YACS::ENGINE::OutNode::dump(), edDisconnectAllLinksWithMe(), edOrderInputPorts(), ElementaryNode(), YACS::ENGINE::XmlNode::execute(), YACS::ENGINE::SalomePythonNode::execute(), YACS::ENGINE::CORBANode::execute(), YACS::ENGINE::DistributedPythonNode::execute(), YACS::ENGINE::StudyOutNode::execute(), YACS::ENGINE::CppNode::execute(), YACS::ENGINE::SalomeNode::execute(), YACS::ENGINE::PythonNode::executeLocal(), YACS::ENGINE::PyFuncNode::executeLocal(), YACS::ENGINE::PythonNode::executeRemote(), YACS::ENGINE::PyFuncNode::executeRemote(), getNumberOfInputPorts(), initCommonPartWithoutStateManagement(), and ~ElementaryNode().
|
protected |
Definition at line 50 of file ElementaryNode.hxx.
Referenced by createMultiDatastreamPorts(), YACS::ENGINE::DFToDSForLoop::DFToDSForLoop(), edDisconnectAllLinksWithMe(), ElementaryNode(), ensureLoading(), getCoupledNodes(), and ~ElementaryNode().
|
protected |
Definition at line 48 of file ElementaryNode.hxx.
Referenced by YACS::ENGINE::OutNode::checkBasicConsistency(), YACS::ENGINE::PresetNode::checkBasicConsistency(), YACS::ENGINE::StudyInNode::checkBasicConsistency(), YACS::ENGINE::StudyOutNode::checkBasicConsistency(), YACS::ENGINE::SalomePythonNode::cloneNode(), YACS::ENGINE::CppNode::cloneNode(), YACS::ENGINE::PythonNode::cloneNode(), YACS::ENGINE::PyFuncNode::cloneNode(), YACS::ENGINE::DSToDFForLoop::DSToDFForLoop(), edDisconnectAllLinksWithMe(), edOrderOutputPorts(), ElementaryNode(), YACS::ENGINE::XmlNode::execute(), YACS::ENGINE::PresetNode::execute(), YACS::ENGINE::StudyInNode::execute(), YACS::ENGINE::SalomePythonNode::execute(), YACS::ENGINE::CORBANode::execute(), YACS::ENGINE::DistributedPythonNode::execute(), YACS::ENGINE::CppNode::execute(), YACS::ENGINE::SalomeNode::execute(), YACS::ENGINE::PythonNode::executeLocal(), YACS::ENGINE::PyFuncNode::executeLocal(), YACS::ENGINE::PythonNode::executeRemote(), YACS::ENGINE::PyFuncNode::executeRemote(), getNumberOfOutputPorts(), getReadyTasks(), initCommonPartWithoutStateManagement(), YACS::ENGINE::SalomePythonNode::load(), YACS::ENGINE::PyFuncNode::loadLocal(), and ~ElementaryNode().