#include <PythonNode.hxx>


Public Member Functions | |
| PythonNode (const PythonNode &other, ComposedNode *father) | |
| PythonNode (const std::string &name) | |
| virtual | ~PythonNode () |
| virtual void | checkBasicConsistency () const throw (Exception) |
| virtual void | execute () |
| virtual void | load () |
| virtual void | loadRemote () |
| virtual void | loadLocal () |
| virtual void | executeRemote () |
| virtual void | executeLocal () |
| virtual void | shutdown (int level) |
| Stop all pending activities of the node. More... | |
| std::string | getContainerLog () |
| returns a string that contains the name of the container log file if it exists More... | |
| PythonNode * | cloneNode (const std::string &name) |
| Create a new node of same type with a given name. More... | |
| virtual std::string | typeName () |
| void | applyDPLScope (ComposedNode *gfn) |
Public Member Functions inherited from YACS::ENGINE::InlineNode | |
| virtual void | setScript (const std::string &script) |
| Set the script (as a string) to execute. More... | |
| virtual std::string | getScript () |
| virtual void | accept (Visitor *visitor) |
| virtual | ~InlineNode () |
| virtual void | setExecutionMode (const std::string &mode) |
| virtual std::string | getExecutionMode () |
| virtual void | setContainer (Container *container) |
| virtual Container * | getContainer () |
| 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... | |
| bool | isDeployable () const |
| int | getMaxLevelOfParallelism () const |
Public Member Functions inherited from YACS::ENGINE::ElementaryNode | |
| virtual | ~ElementaryNode () |
| void | exUpdateState () |
| Update the node state. More... | |
| void | init (bool start=true) |
| ComponentInstance * | getComponent () |
| const ComponentInstance * | getComponent () const |
| 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) |
| 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 void | edUpdateState () |
| update the status of the node More... | |
| virtual void | ensureLoading () |
| Put this node into TOLOAD state when possible. More... | |
| 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 | 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... | |
| 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 | 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 | 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 void | cleanNodes () |
| Clean the node in case of not clean exit. More... | |
Public Member Functions inherited from YACS::ENGINE::Task | |
| virtual | ~Task () |
Static Public Attributes | |
| static const char | KIND [] ="Python" |
| static const char | IMPL_NAME [] ="Python" |
| static const char | SCRIPT_FOR_SERIALIZATION [] |
| static const char | REMOTE_NAME [] ="remote" |
| static const char | DPL_INFO_NAME [] ="my_dpl_localization" |
Static Public Attributes inherited from YACS::ENGINE::InlineNode | |
| static const char | LOCAL_STR [] ="local" |
| static const char | REMOTE_STR [] ="remote" |
Static Public Attributes inherited from YACS::ENGINE::PythonEntry | |
| static const char | SCRIPT_FOR_SIMPLE_SERIALIZATION [] |
Protected Member Functions | |
| Node * | simpleClone (ComposedNode *father, bool editionOnly) const |
| void | createRemoteAdaptedPyInterpretor (Engines::Container_ptr objContainer) |
| returns an object, you have to deal with (UnRegister) More... | |
| Engines::PyNodeBase_var | retrieveDftRemotePyInterpretorIfAny (Engines::Container_ptr objContainer) const |
| returns (if any) an object, you have to deal with (UnRegister) More... | |
| void | assignRemotePyInterpretor (Engines::PyNodeBase_var remoteInterp) |
| Engines::PyNodeBase_var | getRemoteInterpreterHandle () |
| const char * | getSerializationScript () const |
Protected Member Functions inherited from YACS::ENGINE::InlineNode | |
| InlineNode (const InlineNode &other, ComposedNode *father) | |
| InlineNode (const std::string &name) | |
Protected Member Functions inherited from YACS::ENGINE::ElementaryNode | |
| ElementaryNode (const std::string &name) | |
| ElementaryNode (const ElementaryNode &other, ComposedNode *father) | |
| 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 void | exForwardFailed () |
| virtual void | exForwardFinished () |
Protected Member Functions inherited from YACS::ENGINE::PythonEntry | |
| PythonEntry () | |
| ~PythonEntry () | |
| void | commonRemoteLoad (InlineNode *reqNode) |
| void | commonRemoteLoadPart1 (InlineNode *reqNode) |
| Engines::Container_var | commonRemoteLoadPart2 (InlineNode *reqNode, bool &isInitializeRequested) |
| void | commonRemoteLoadPart3 (InlineNode *reqNode, Engines::Container_ptr objContainer, bool isInitializeRequested) |
Protected Attributes | |
| Engines::PyScriptNode_var | _pynode |
Protected Attributes inherited from YACS::ENGINE::InlineNode | |
| std::string | _script |
| std::string | _mode |
| Container * | _container |
Protected Attributes inherited from YACS::ENGINE::ElementaryNode | |
| 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 |
Protected Attributes inherited from YACS::ENGINE::PythonEntry | |
| PyObject * | _context |
| PyObject * | _pyfuncSer |
| PyObject * | _pyfuncUnser |
| PyObject * | _pyfuncSimpleSer |
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 Protected Member Functions inherited from YACS::ENGINE::ElementaryNode | |
| 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::PythonEntry | |
| static std::string | GetContainerLog (const std::string &mode, Container *container, const Task *askingTask) |
Static Protected Attributes inherited from YACS::ENGINE::Node | |
| static const char | SEP_CHAR_IN_PORT [] ="." |
| static int | _total = 0 |
Definition at line 62 of file PythonNode.hxx.
| PythonNode::PythonNode | ( | const PythonNode & | other, |
| ComposedNode * | father | ||
| ) |
Definition at line 297 of file PythonNode.cxx.
References YACS::ENGINE::PythonEntry::_context, YACS::ENGINE::Node::_errorDetails, YACS::ENGINE::Node::_implementation, YACS::ENGINE::getSALOMERuntime(), and IMPL_NAME.
Referenced by cloneNode(), and simpleClone().
| PythonNode::PythonNode | ( | const std::string & | name | ) |
Definition at line 313 of file PythonNode.cxx.
References YACS::ENGINE::PythonEntry::_context, YACS::ENGINE::Node::_errorDetails, YACS::ENGINE::Node::_implementation, YACS::ENGINE::getSALOMERuntime(), and IMPL_NAME.
|
virtual |
Definition at line 329 of file PythonNode.cxx.
References _pynode.
|
virtual |
Method called by the Executor only if the executor is sensitive of scope of DynParaLoop. This method is virtual and empty because by default nothing is done.
Reimplemented from YACS::ENGINE::Node.
Definition at line 725 of file PythonNode.cxx.
References YACS::ENGINE::PythonEntry::_context, YACS::ENGINE::InlineNode::_mode, YACS::ENGINE::PythonEntry::_pyfuncSimpleSer, _pynode, DPL_INFO_NAME, YACS::ENGINE::Node::getDPLScopeInfo(), CORBAEngineTest::i, p, REMOTE_NAME, and PMMLBasicsTestLauncher::ret.
|
protectedvirtual |
Implements YACS::ENGINE::PythonEntry.
Definition at line 683 of file PythonNode.cxx.
References _pynode.
|
virtual |
Reimplemented from YACS::ENGINE::ElementaryNode.
Definition at line 337 of file PythonNode.cxx.
References YACS::ENGINE::InlineNode::_script, YACS::ENGINE::ElementaryNode::checkBasicConsistency(), DEBTRACE, YACS::ENGINE::Node::getName(), and YACS::ENGINE::newPyStdOut().
|
virtual |
Create a new node of same type with a given name.
Reimplemented from YACS::ENGINE::InlineNode.
Definition at line 702 of file PythonNode.cxx.
References YACS::ENGINE::InlineNode::_script, YACS::ENGINE::ElementaryNode::_setOfInputPort, YACS::ENGINE::ElementaryNode::_setOfOutputPort, DEBTRACE, YACS::ENGINE::ElementaryNode::edAddInputPort(), YACS::ENGINE::ElementaryNode::edAddOutputPort(), YACS::ENGINE::DataPort::edGetType(), YACS::ENGINE::DataPort::getName(), YACS::ENGINE::TypeCode::kind(), gui.Appli::n, p, PythonNode(), and YACS::ENGINE::InlineNode::setScript().
|
protectedvirtual |
returns an object, you have to deal with (UnRegister)
Implements YACS::ENGINE::PythonEntry.
Definition at line 666 of file PythonNode.cxx.
References _pynode, YACS::ENGINE::Node::getName(), and YACS::ENGINE::InlineNode::getScript().
|
virtual |
Implements YACS::ENGINE::Task.
Definition at line 380 of file PythonNode.cxx.
References YACS::ENGINE::InlineNode::_mode, executeLocal(), executeRemote(), and REMOTE_NAME.
|
virtual |
Definition at line 539 of file PythonNode.cxx.
References YACS::ENGINE::PythonEntry::_context, YACS::ENGINE::Node::_errorDetails, YACS::ENGINE::InlineNode::_script, YACS::ENGINE::ElementaryNode::_setOfInputPort, YACS::ENGINE::ElementaryNode::_setOfOutputPort, DEBTRACE, YACS::ENGINE::DataPort::edGetType(), YACS::ENGINE::DataPort::getName(), YACS::ENGINE::Node::getName(), YACS::ENGINE::InputPyPort::getPyObj(), YACS::ENGINE::TypeCode::kind(), YACS::ENGINE::newPyStdOut(), p, YACS::ENGINE::OutputPyPort::put(), and YACS::Exception::what().
Referenced by execute().
|
virtual |
Definition at line 388 of file PythonNode.cxx.
References YACS::ENGINE::Node::_errorDetails, YACS::ENGINE::PythonEntry::_pyfuncSer, YACS::ENGINE::PythonEntry::_pyfuncUnser, _pynode, YACS::ENGINE::ElementaryNode::_setOfInputPort, YACS::ENGINE::ElementaryNode::_setOfOutputPort, YACS::ENGINE::PythonEntry::commonRemoteLoadPart2(), DEBTRACE, YACS::ENGINE::DataPort::edGetType(), YACS::ENGINE::InlineNode::getContainer(), YACS::ENGINE::DataPort::getName(), YACS::ENGINE::Node::getName(), YACS::ENGINE::ElementaryNode::getNumberOfOutputPorts(), YACS::ENGINE::InputPyPort::getPyObj(), YACS::ENGINE::InlineNode::getScript(), CORBAEngineTest::i, YACS::ENGINE::TypeCode::kind(), p, YACS::ENGINE::OutputPyPort::put(), and YACS::Exception::what().
Referenced by execute().
|
virtual |
returns a string that contains the name of the container log file if it exists
Do nothing here. To subclass
Reimplemented from YACS::ENGINE::Node.
Definition at line 644 of file PythonNode.cxx.
References YACS::ENGINE::InlineNode::_container, YACS::ENGINE::InlineNode::_mode, and YACS::ENGINE::PythonEntry::GetContainerLog().
|
protectedvirtual |
Implements YACS::ENGINE::PythonEntry.
Definition at line 696 of file PythonNode.cxx.
References _pynode.
|
inlineprotectedvirtual |
|
virtual |
Reimplemented from YACS::ENGINE::ElementaryNode.
Definition at line 360 of file PythonNode.cxx.
References YACS::ENGINE::InlineNode::_mode, DEBTRACE, loadLocal(), loadRemote(), and REMOTE_NAME.
|
virtual |
|
virtual |
Definition at line 375 of file PythonNode.cxx.
References YACS::ENGINE::PythonEntry::commonRemoteLoad().
Referenced by load().
|
protectedvirtual |
returns (if any) an object, you have to deal with (UnRegister)
Implements YACS::ENGINE::PythonEntry.
Definition at line 673 of file PythonNode.cxx.
References YACS::ENGINE::Node::getName(), and PMMLBasicsTestLauncher::ret.
|
virtual |
Stop all pending activities of the node.
This method should be called when a Proc is finished and must be deleted from the YACS server
Reimplemented from YACS::ENGINE::Node.
Definition at line 649 of file PythonNode.cxx.
References YACS::ENGINE::InlineNode::_container, YACS::ENGINE::InlineNode::_mode, _pynode, DEBTRACE, and YACS::ENGINE::Container::shutdown().
|
protectedvirtual |
Implements YACS::ENGINE::Node.
Definition at line 661 of file PythonNode.cxx.
References PythonNode().
|
inlinevirtual |
Reimplemented from YACS::ENGINE::InlineNode.
Definition at line 86 of file PythonNode.hxx.
|
protected |
Definition at line 95 of file PythonNode.hxx.
Referenced by applyDPLScope(), assignRemotePyInterpretor(), createRemoteAdaptedPyInterpretor(), executeRemote(), getRemoteInterpreterHandle(), shutdown(), and ~PythonNode().
|
static |
Definition at line 93 of file PythonNode.hxx.
Referenced by applyDPLScope().
|
static |
Definition at line 90 of file PythonNode.hxx.
Referenced by YACS::ENGINE::PyFuncNode::PyFuncNode(), PythonNode(), and YACS::ENGINE::SalomePythonNode::SalomePythonNode().
|
static |
Definition at line 89 of file PythonNode.hxx.
Referenced by YACS::ENGINE::DistributedPythonNode::getKind().
|
static |
Definition at line 92 of file PythonNode.hxx.
Referenced by applyDPLScope(), execute(), YACS::ENGINE::PyFuncNode::execute(), load(), and YACS::ENGINE::PyFuncNode::load().
|
static |
Definition at line 91 of file PythonNode.hxx.