Base class for all schema objects. More...
#include <Proc.hxx>
Public Types | |
typedef std::map< std::string, Logger * > | LoggerMap |
Public Member Functions | |
Proc (const std::string &name) | |
virtual | ~Proc () |
virtual TypeCode * | createType (const std::string &name, const std::string &kind) |
virtual TypeCode * | createInterfaceTc (const std::string &id, const std::string &name, std::list< TypeCodeObjref * > ltc) |
Create an object reference TypeCode. More... | |
virtual TypeCode * | createSequenceTc (const std::string &id, const std::string &name, TypeCode *content) |
Create a sequence TypeCode. More... | |
virtual TypeCode * | createStructTc (const std::string &id, const std::string &name) |
virtual TypeCode * | getTypeCode (const std::string &name) |
virtual void | setTypeCode (const std::string &name, TypeCode *t) |
virtual Container * | createContainer (const std::string &name, const std::string &kind="") |
Create a new Container and store it in containerMap. More... | |
virtual ComponentInstance * | createComponentInstance (const std::string &componame, const std::string &name="", const std::string &kind="") |
Create a new ComponentInstance and add it into componentInstanceMap. More... | |
virtual void | addComponentInstance (ComponentInstance *inst, const std::string &name="", bool resetCtr=false) |
Add a ComponentInstance into componentInstanceMap. More... | |
virtual void | removeComponentInstance (ComponentInstance *inst) |
Remove a componentInstance from the componentInstanceMap. More... | |
virtual void | removeContainer (Container *cont) |
Remove a container from the containerMap. More... | |
virtual void | accept (Visitor *visitor) |
virtual Proc * | getProc () |
Return the proc (this) More... | |
virtual const Proc * | getProc () const |
Return the proc (this) More... | |
virtual void | updateContainersAndComponents () |
YACS::StatesForNode | getNodeState (int numId) |
std::string | getNodeProgress (int numId) |
int | getGlobalProgressPercent () |
std::string | getInPortValue (int nodeNumId, std::string portName) |
std::string | setInPortValue (std::string nodeName, std::string portName, std::string value) |
std::string | getOutPortValue (int nodeNumId, std::string portName) |
std::string | getNodeErrorDetails (int nodeNumId) |
std::string | getNodeErrorReport (int nodeNumId) |
std::string | getNodeContainerLog (int nodeNumId) |
std::string | getXMLState (int numId) |
std::list< int > | getNumIds () |
std::list< std::string > | getIds () |
virtual Logger * | getLogger (const std::string &name) |
virtual void | writeDot (std::ostream &os) const |
Dump to the input stream a dot representation of the node. More... | |
void | setName (const std::string &name) |
virtual std::string | typeName () |
virtual bool | getEdition () |
virtual void | setEdition (bool edition) |
virtual void | modified () |
Sets Proc in modified state and update state if in edition mode. More... | |
virtual void | saveSchema (const std::string &xmlSchemaFile) |
Save Proc in XML schema file. More... | |
virtual void | saveState (const std::string &xmlStateFile) |
Save Proc state in XML state file. More... | |
Public Member Functions inherited from YACS::ENGINE::Bloc | |
Bloc (const Bloc &other, ComposedNode *father, bool editionOnly) | |
Bloc (const std::string &name) | |
Create a Bloc node with a given name. More... | |
virtual | ~Bloc () |
bool | isFinished () |
Indicate if the bloc execution is finished. More... | |
int | getNumberOfCFLinks () const |
void | init (bool start=true) |
Initialize the bloc. More... | |
void | getReadyTasks (std::vector< Task * > &tasks) |
Collect all nodes that are ready to execute. More... | |
void | exUpdateState () |
Update the bloc state. More... | |
bool | edAddChild (Node *DISOWNnode) throw (Exception) |
Add a child node to the bloc. More... | |
void | edRemoveChild (Node *node) throw (Exception) |
std::list< Node * > | getChildren () const |
std::list< Node * > | edGetDirectDescendants () const |
std::vector< std::list< Node * > > | splitIntoIndependantGraph () const |
Node * | getChildByShortName (const std::string &name) const throw (Exception) |
template<bool direction> | |
void | findAllPathsStartingFrom (Node *start, std::list< std::vector< Node * > > &vec, std::map< Node *, std::set< Node * > > &accelStr) const |
template<bool direction> | |
void | findAllNodesStartingFrom (Node *start, std::set< Node * > &result, std::map< Node *, std::set< Node * > > &accelStr, LinkInfo &info) const |
int | getMaxLevelOfParallelism () const |
void | removeRecursivelyRedundantCL () |
template<bool direction> | |
unsigned | appendIfAlreadyFound (std::list< std::vector< Node * > > &res, const std::vector< Node * > &startRes, Node *node, std::map< Node *, std::set< Node * > > &fastFinder) |
Public Member Functions inherited from YACS::ENGINE::StaticDefinedComposedNode | |
bool | isPlacementPredictableB4Run () const |
bool | isMultiplicitySpecified (unsigned &value) const |
void | forceMultiplicity (unsigned value) |
void | selectRunnableTasks (std::vector< Task * > &tasks) |
Public Member Functions inherited from YACS::ENGINE::ComposedNode | |
virtual | ~ComposedNode () |
bool | isFinished () |
void | init (bool start=true) |
virtual void | shutdown (int level) |
Stop all pending activities of the composed node. More... | |
virtual void | resetState (int level) |
Reset the state of the node and its children depending on the parameter level. More... | |
std::string | getName () const |
std::string | getTaskName (Task *task) const |
DeploymentTree | getDeploymentTree () const |
Essentially for test. Use checkDeploymentTree instead to be sure that returned DeploymentTree is consistent. More... | |
DeploymentTree | checkDeploymentTree (bool deep) const throw (Exception) |
Perform check of deployment consistency of the current graph. More... | |
std::vector< Task * > | getNextTasks (bool &isMore) |
void | notifyFrom (const Task *sender, YACS::Event event, const Executor *execInst) |
Notify the node a task has emitted an event. More... | |
bool | edAddLink (OutPort *start, InPort *end) throw (Exception) |
Add a dataflow link between two data ports. More... | |
virtual bool | edAddDFLink (OutPort *start, InPort *end) throw (Exception) |
Connect an OutPort to an InPort and add the necessary control link. More... | |
bool | edAddLink (OutGate *start, InGate *end) throw (Exception) |
Add a controlflow link between two control ports. More... | |
bool | edAddCFLink (Node *nodeS, Node *nodeE) throw (Exception) |
Add a controlflow link between two nodes. More... | |
void | edRemoveCFLink (Node *nodeS, Node *nodeE) throw (Exception) |
Remove a controlflow link. More... | |
void | edRemoveLink (OutPort *start, InPort *end) throw (Exception) |
Remove a dataflow link. More... | |
void | edRemoveLink (OutGate *start, InGate *end) throw (Exception) |
Remove a controlflow link. More... | |
virtual bool | isRepeatedUnpredictablySeveralTimes () const |
std::list< ElementaryNode * > | getRecursiveConstituents () const |
std::list< Node * > | getAllRecursiveNodes () |
Get all children nodes elementary and composed including this node. More... | |
virtual std::list< Node * > | getAllRecursiveConstituents () |
Idem getAllRecursiveNodes, but this node is NOT included. More... | |
std::list< ProgressWeight > | getProgressWeight () const |
Get the progress weight for all elementary nodes. More... | |
std::string | getInPortName (const InPort *) const throw (Exception) |
Get the input port name. More... | |
std::string | getOutPortName (const OutPort *) const throw (Exception) |
int | getNumberOfInputPorts () const |
int | getNumberOfOutputPorts () const |
std::list< InputPort * > | getSetOfInputPort () const |
std::list< OutputPort * > | getSetOfOutputPort () const |
std::list< InputPort * > | getLocalInputPorts () const |
redefined on derived class of ComposedNode. by default a ComposedNode has no port by itself More... | |
std::list< OutputPort * > | getLocalOutputPorts () const |
redefined on derived class of ComposedNode. by default a ComposedNode has no port by itself More... | |
std::set< OutPort * > | getAllOutPortsLeavingCurrentScope () const |
List all output ports of children nodes that are linked to out of scope input ports. More... | |
std::set< InPort * > | getAllInPortsComingFromOutsideOfCurrentScope () const |
List all input ports that are linked to out of scope ports. More... | |
std::list< InputDataStreamPort * > | getSetOfInputDataStreamPort () const |
std::list< OutputDataStreamPort * > | getSetOfOutputDataStreamPort () const |
OutPort * | getOutPort (const std::string &name) const throw (Exception) |
InputPort * | getInputPort (const std::string &name) const throw (Exception) |
Get an input port given its name. More... | |
OutputPort * | getOutputPort (const std::string &name) const throw (Exception) |
Get an output port given its name. More... | |
InputDataStreamPort * | getInputDataStreamPort (const std::string &name) const throw (Exception) |
OutputDataStreamPort * | getOutputDataStreamPort (const std::string &name) const throw (Exception) |
std::vector< std::pair < OutPort *, InPort * > > | getSetOfInternalLinks () const |
virtual std::vector< std::pair < OutPort *, InPort * > > | getSetOfLinksLeavingCurrentScope () const |
void | checkConsistency (LinkInfo &info) const throw (Exception) |
virtual std::vector< std::pair < InPort *, OutPort * > > | getSetOfLinksComingInCurrentScope () const |
virtual void | edUpdateState () |
update the status of the node More... | |
virtual void | checkBasicConsistency () const throw (Exception) |
virtual std::string | getErrorReport () |
returns a string that contains an error report if the node is in error More... | |
ComposedNode * | getRootNode () const throw (Exception) |
bool | isNodeAlreadyAggregated (const Node *node) const |
Check that Node 'node' is already a direct son of this. More... | |
Node * | isInMyDescendance (Node *nodeToTest) const |
Returns the parent of a node that is the direct child of this node. More... | |
std::string | getChildName (const Node *node) const throw (Exception) |
virtual std::string | getMyQualifiedName (const Node *directSon) const |
Node * | getChildByName (const std::string &name) const throw (Exception) |
void | loaded () |
void | connected () |
virtual void | cleanNodes () |
Clean the composed node in case of not clean exit. More... | |
virtual std::string | getProgress () const |
Public Member Functions inherited from YACS::ENGINE::Node | |
virtual | ~Node () |
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 | getState () const |
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 | 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) |
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 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) |
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 int | isModified () |
virtual int | isValid () |
indicates if the node is valid (returns 1) or not (returns 0) More... | |
virtual std::string | getContainerLog () |
returns a string that contains the name of the container log file if it exists More... | |
virtual void | ensureLoading () |
Put this node into TOLOAD state when possible. More... | |
virtual void | getCoupledNodes (std::set< Task * > &coupledNodes) |
Public Member Functions inherited from YACS::ENGINE::Scheduler | |
virtual | ~Scheduler () |
Public Attributes | |
std::map< std::string, Node * > | nodeMap |
std::map< std::string, ServiceNode * > | serviceMap |
std::map< std::string, InlineNode * > | inlineMap |
std::map< std::string, TypeCode * > | typeMap |
std::map< std::string, Container * > | containerMap |
std::map< std::string, ComponentInstance * > | componentInstanceMap |
std::vector< std::string > | names |
LoggerMap | _loggers |
Protected Member Functions | |
void | removeContainers () |
Protected Member Functions inherited from YACS::ENGINE::Bloc | |
Node * | simpleClone (ComposedNode *father, bool editionOnly=true) const |
bool | areAllSubNodesFinished () const |
bool | areAllSubNodesDone () const |
bool | isNameAlreadyUsed (const std::string &name) const |
void | checkNoCyclePassingThrough (Node *node) throw (Exception) |
std::vector< std::pair < OutGate *, InGate * > > | getSetOfInternalCFLinks () const |
YACS::Event | updateStateOnFinishedEventFrom (Node *node) |
YACS::Event | updateStateOnFailedEventFrom (Node *node, const Executor *execInst) |
Notify this bloc that a node has failed. More... | |
void | initComputation () const |
void | performCFComputationsOnlyOneLevel (LinkInfo &info) const |
void | performCFComputations (LinkInfo &info) const |
void | destructCFComputations (LinkInfo &info) const |
destroy recursively all results of initial computations. More... | |
void | checkControlDependancy (OutPort *start, InPort *end, bool cross, std::map< ComposedNode *, std::list< OutPort * >, SortHierarc > &fw, std::vector< OutPort * > &fwCross, std::map< ComposedNode *, std::list< OutPort * >, SortHierarc > &bw, LinkInfo &info) const |
bool | areLinked (Node *start, Node *end, bool fw) const |
Check if two nodes are linked. More... | |
bool | arePossiblyRunnableAtSameTime (Node *start, Node *end) const |
Check if two nodes can run in parallel. More... | |
void | checkCFLinks (const std::list< OutPort * > &starts, InputPort *end, unsigned char &alreadyFed, bool direction, LinkInfo &info) const |
Check control flow links. More... | |
void | seekOkAndUseless1 (std::vector< Node * > &okAndUseless1, std::set< Node * > &allNodes) const |
void | seekUseless2 (std::vector< Node * > &useless2, std::set< Node * > &allNodes) const |
Protected Member Functions inherited from YACS::ENGINE::StaticDefinedComposedNode | |
StaticDefinedComposedNode (const std::string &name) | |
StaticDefinedComposedNode (const StaticDefinedComposedNode &other, ComposedNode *father) | |
void | checkControlDependancy (OutPort *start, InPort *end, bool cross, std::map< ComposedNode *, std::list< OutPort * >, SortHierarc > &fw, std::vector< OutPort * > &fwCross, std::map< ComposedNode *, std::list< OutPort * >, SortHierarc > &bw, LinkInfo &info) const |
Protected Member Functions inherited from YACS::ENGINE::ComposedNode | |
ComposedNode (const std::string &name) | |
ComposedNode (const ComposedNode &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 | edDisconnectAllLinksWithMe () |
YACS::Event | updateStateFrom (Node *node, YACS::Event event, const Executor *execInst) |
Update node state on receiving event from a node. More... | |
virtual YACS::Event | updateStateOnStartEventFrom (Node *node) |
Method used to notify the node that a child node has started. More... | |
virtual void | checkLinkPossibility (OutPort *start, const std::list< ComposedNode * > &pointsOfViewStart, InPort *end, const std::list< ComposedNode * > &pointsOfViewEnd) throw (Exception) |
virtual void | buildDelegateOf (InPort *&port, OutPort *initialStart, const std::list< ComposedNode * > &pointsOfView) |
virtual void | buildDelegateOf (std::pair< OutPort *, OutPort * > &port, InPort *finalTarget, const std::list< ComposedNode * > &pointsOfView) |
virtual void | getDelegateOf (InPort *&port, OutPort *initialStart, const std::list< ComposedNode * > &pointsOfView) throw (Exception) |
virtual void | getDelegateOf (std::pair< OutPort *, OutPort * > &port, InPort *finalTarget, const std::list< ComposedNode * > &pointsOfView) throw (Exception) |
virtual void | releaseDelegateOf (InPort *&port, OutPort *initialStart, const std::list< ComposedNode * > &pointsOfView) throw (Exception) |
virtual void | releaseDelegateOf (OutPort *portDwn, OutPort *portUp, InPort *finalTarget, const std::list< ComposedNode * > &pointsOfView) throw (Exception) |
void | checkInMyDescendance (Node *nodeToTest) const throw (Exception) |
Check if a node is in the descendance of this node. More... | |
template<class PORT > | |
std::string | getPortName (const PORT *port) const throw (Exception) |
void | checkNoCrossHierachyWith (Node *node) const throw (Exception) |
Node * | getLowestNodeDealingAll (const std::list< OutPort * > &ports) const |
void | checkLinksCoherenceRegardingControl (const std::vector< OutPort * > &starts, InputPort *end, LinkInfo &info) const throw (Exception) |
void | solveObviousOrDelegateCFLinks (const std::list< OutPort * > &starts, InputPort *end, unsigned char &alreadyFed, bool direction, LinkInfo &info) const |
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 Attributes | |
bool | _edition |
int | _compoinstctr |
Protected Attributes inherited from YACS::ENGINE::Bloc | |
std::list< Node * > | _setOfNode |
std::map< Node *, std::set < Node * > > * | _fwLinks |
For internal calculations. More... | |
std::map< Node *, std::set < Node * > > * | _bwLinks |
For internal calculations. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Proc &p) |
Additional Inherited Members | |
Static Public Member Functions inherited from YACS::ENGINE::ComposedNode | |
static ComposedNode * | getLowestCommonAncestor (Node *node1, Node *node2) throw (Exception) |
Retrieves the lowest common ancestor of 2 nodes. More... | |
static std::string | getLowestCommonAncestorStr (const std::string &node1, const std::string &node2) |
Static Public Attributes inherited from YACS::ENGINE::Node | |
static std::map< int, Node * > | idMap |
Static Protected Member Functions inherited from YACS::ENGINE::Bloc | |
static void | verdictForOkAndUseless1 (const std::map< Node *, std::list< OutPort * > > &pool, InputPort *end, const std::vector< Node * > &candidates, unsigned char &alreadyFed, bool direction, LinkInfo &info) |
static void | verdictForCollapses (const std::map< Node *, std::list< OutPort * > > &pool, InputPort *end, const std::set< Node * > &candidates, unsigned char &alreadyFed, bool direction, LinkInfo &info) |
Static Protected Attributes inherited from YACS::ENGINE::ComposedNode | |
static const char | SEP_CHAR_BTW_LEVEL [] ="." |
static const unsigned char | FED_ST = 2 |
static const unsigned char | FREE_ST = 0 |
static const unsigned char | FED_DS_ST = 1 |
Base class for all schema objects.
This is an abstract class that must be specialized in runtime.
typedef std::map<std::string, Logger*> YACS::ENGINE::Proc::LoggerMap |
Proc::Proc | ( | const std::string & | name | ) |
Definition at line 48 of file Proc.cxx.
References YACS::ENGINE::Runtime::_tc_bool, YACS::ENGINE::Runtime::_tc_double, YACS::ENGINE::Runtime::_tc_file, YACS::ENGINE::Runtime::_tc_int, YACS::ENGINE::Runtime::_tc_string, DEBTRACE, YACS::ENGINE::RefCounter::getRefCnt(), YACS::ENGINE::getRuntime(), YACS::ENGINE::RefCounter::incrRef(), theRuntime, and typeMap.
|
virtual |
|
virtual |
Reimplemented from YACS::ENGINE::Bloc.
Definition at line 199 of file Proc.cxx.
References YACS::ENGINE::Visitor::visitProc().
Referenced by dumpState(), Handler(), main(), YACS::ENGINE::SchemaSave::save(), YACS::ENGINE::SalomeProc::saveSchema(), saveSchema(), saveState(), and YACS::ENGINE::schemaSaveState().
|
virtual |
Add a ComponentInstance into componentInstanceMap.
If the name == "", the component instance is automatically named with a unique (in the Proc) name
inst,: | the component instance |
name,: | the component instance name |
resetCtr,: | try to reuse instance number previously released, false by default |
Definition at line 525 of file Proc.cxx.
References _compoinstctr, componentInstanceMap, YACS::ENGINE::ComponentInstance::getCompoName(), YACS::ENGINE::RefCounter::incrRef(), YACS::ENGINE::ComponentInstance::setAnonymous(), and YACS::ENGINE::ComponentInstance::setName().
Referenced by createComponentInstance(), YACS::HMI::CommandAddComponentInstance::localExecute(), YACS::HMI::CommandAddComponentFromCatalog::localExecute(), and YACS::HMI::CommandAssociateServiceToComponent::localReverse().
|
virtual |
Create a new ComponentInstance and add it into componentInstanceMap.
If the name == "", the component instance is automatically named with a unique (in the Proc) name
componame,: | the component name |
name,: | the component instance name |
kind,: | the component instance kind (depends on runtime) |
Definition at line 598 of file Proc.cxx.
References addComponentInstance(), YACS::ENGINE::Runtime::createComponentInstance(), and YACS::ENGINE::getRuntime().
Referenced by YACS::servicetypeParser< T >::component(), and YACS::proctypeParser< T >::componentinstance().
|
virtual |
Create a new Container and store it in containerMap.
name,: | the container name and key in containerMap |
kind,: | the container kind (depends on runtime) |
Definition at line 505 of file Proc.cxx.
References containerMap, YACS::ENGINE::getRuntime(), YACS::ENGINE::RefCounter::incrRef(), YACS::ENGINE::Container::setName(), and YACS::ENGINE::Container::setProc().
Referenced by YACS::proctypeParser< T >::container(), YACS::servertypeParser< T >::loadcontainer(), and YACS::ENGINE::SalomeProc::SalomeProc().
|
virtual |
Create an object reference TypeCode.
id,: | the TypeCode repository id |
name,: | the TypeCode name |
ltc,: | a liste of object reference TypeCode to use as base types for this type |
Reimplemented in YACS::ENGINE::SalomeProc.
Definition at line 132 of file Proc.cxx.
References YACS::ENGINE::RefCounter::incrRef(), YACS::ENGINE::TypeCode::interfaceTc(), gui.Appli::t, and typeMap.
Referenced by YACS::ENGINE::SalomeProc::createInterfaceTc(), and YACS::objtypeParser::post().
|
virtual |
Create a sequence TypeCode.
id,: | the TypeCode repository id ("" for normal use) |
name,: | the TypeCode name |
content,: | the element TypeCode |
Definition at line 150 of file Proc.cxx.
References YACS::ENGINE::RefCounter::incrRef(), YACS::ENGINE::TypeCode::sequenceTc(), gui.Appli::t, and typeMap.
Referenced by YACS::seqtypeParser::post().
|
virtual |
Reimplemented in YACS::ENGINE::SalomeProc.
Definition at line 161 of file Proc.cxx.
References YACS::ENGINE::RefCounter::incrRef(), YACS::ENGINE::TypeCode::structTc(), gui.Appli::t, and typeMap.
Referenced by YACS::ENGINE::SalomeProc::createStructTc(), and YACS::structtypeParser::post().
|
virtual |
Definition at line 103 of file Proc.cxx.
References YACS::ENGINE::Runtime::_tc_bool, YACS::ENGINE::Runtime::_tc_double, YACS::ENGINE::Runtime::_tc_int, YACS::ENGINE::Runtime::_tc_string, YACS::ENGINE::getRuntime(), YACS::ENGINE::RefCounter::incrRef(), gui.Appli::t, and typeMap.
Referenced by YACS::proctypeParser< T >::type().
|
inlinevirtual |
int Proc::getGlobalProgressPercent | ( | ) |
Definition at line 233 of file Proc.cxx.
References YACS::ENGINE::ComposedNode::getProgressWeight().
std::list< std::string > Proc::getIds | ( | ) |
Definition at line 416 of file Proc.cxx.
References YACS::ENGINE::ComposedNode::getAllRecursiveConstituents(), and YACS::ENGINE::ComposedNode::getChildName().
std::string Proc::getInPortValue | ( | int | nodeNumId, |
std::string | portName | ||
) |
Definition at line 264 of file Proc.cxx.
References DEBTRACE, YACS::ENGINE::DataPort::getAsString(), YACS::ENGINE::Node::getInputPort(), YACS::ENGINE::Node::idMap, and YACS::Exception::what().
|
virtual |
Definition at line 430 of file Proc.cxx.
References _loggers.
Referenced by YACS::YACSLoader::load(), YACS::ENGINE::ProcCataLoader::loadCata(), YACS::HMI::GenericGui::loadSchema(), YACS::parser::logError(), main(), YACS::HMI::EditionProc::synchronize(), and YACS::HMI::BatchJobsListDialog::userOK().
std::string Proc::getNodeContainerLog | ( | int | nodeNumId | ) |
Definition at line 389 of file Proc.cxx.
References DEBTRACE, YACS::ENGINE::Node::getContainerLog(), and YACS::ENGINE::Node::idMap.
std::string Proc::getNodeErrorDetails | ( | int | nodeNumId | ) |
Definition at line 363 of file Proc.cxx.
References DEBTRACE, YACS::ENGINE::Node::getErrorDetails(), and YACS::ENGINE::Node::idMap.
std::string Proc::getNodeErrorReport | ( | int | nodeNumId | ) |
Definition at line 376 of file Proc.cxx.
References DEBTRACE, YACS::ENGINE::Node::getErrorReport(), and YACS::ENGINE::Node::idMap.
std::string Proc::getNodeProgress | ( | int | numId | ) |
Definition at line 221 of file Proc.cxx.
References YACS::ENGINE::Node::idMap.
YACS::StatesForNode Proc::getNodeState | ( | int | numId | ) |
Definition at line 209 of file Proc.cxx.
References YACS::ENGINE::Node::getEffectiveState(), YACS::ENGINE::Node::idMap, CORBAEngineTest::state, and YACS::UNDEFINED.
std::list< int > Proc::getNumIds | ( | ) |
Definition at line 402 of file Proc.cxx.
References YACS::ENGINE::ComposedNode::getAllRecursiveConstituents(), and YACS::ENGINE::Node::getNumId().
std::string Proc::getOutPortValue | ( | int | nodeNumId, |
std::string | portName | ||
) |
Definition at line 340 of file Proc.cxx.
References DEBTRACE, YACS::ENGINE::DataPort::getAsString(), YACS::ENGINE::Node::getOutputPort(), YACS::ENGINE::Node::idMap, and YACS::Exception::what().
|
virtual |
Return the proc (this)
Reimplemented from YACS::ENGINE::Node.
Definition at line 606 of file Proc.cxx.
Referenced by YACS::HMI::MenusBase::buildForEachMenu(), YACS::HMI::GuiEditor::CreateForEachLoop(), YACS::HMI::GenericGui::onExportSchema(), YACS::HMI::GenericGui::onExportSchemaAs(), YACS::HMI::GenericGui::onRunLoadedSchema(), YACS::HMI::GuiEditor::PutGraphInBloc(), and YACS::HMI::GuiEditor::PutGraphInNode().
|
virtual |
Return the proc (this)
Reimplemented from YACS::ENGINE::Node.
|
virtual |
Definition at line 171 of file Proc.cxx.
References YACS::ENGINE::getRuntime(), YACS::ENGINE::Runtime::getTypeCode(), and typeMap.
std::string Proc::getXMLState | ( | int | numId | ) |
Definition at line 249 of file Proc.cxx.
References YACS::ENGINE::Node::getEffectiveState(), YACS::ENGINE::Node::getQualifiedName(), and YACS::ENGINE::Node::idMap.
|
virtual |
Sets Proc in modified state and update state if in edition mode.
Reimplemented from YACS::ENGINE::Node.
Definition at line 458 of file Proc.cxx.
References _edition, YACS::ENGINE::Node::_modified, DEBTRACE, and YACS::ENGINE::ComposedNode::edUpdateState().
|
virtual |
Remove a componentInstance from the componentInstanceMap.
To be used for a componentInstance with no service nodes referenced.
inst,: | the component instance |
Definition at line 565 of file Proc.cxx.
References componentInstanceMap, YACS::ENGINE::RefCounter::decrRef(), and YACS::ENGINE::ComponentInstance::getInstanceName().
Referenced by YACS::HMI::CommandAddComponentInstance::localReverse(), and YACS::HMI::CommandAddComponentFromCatalog::localReverse().
|
virtual |
Remove a container from the containerMap.
To be used for a container with no componentInstance referenced.
cont,: | the container |
Definition at line 580 of file Proc.cxx.
References containerMap, YACS::ENGINE::RefCounter::decrRef(), and YACS::ENGINE::Container::getName().
Referenced by YACS::HMI::SubjectContainerBase::~SubjectContainerBase().
|
protected |
Definition at line 490 of file Proc.cxx.
References containerMap.
Referenced by updateContainersAndComponents(), and ~Proc().
|
virtual |
Save Proc in XML schema file.
xmlSchemaFile,: | the file name |
Definition at line 470 of file Proc.cxx.
References accept(), YACS::ENGINE::VisitorSaveSchema::closeFileSchema(), and YACS::ENGINE::VisitorSaveSchema::openFileSchema().
|
virtual |
Save Proc state in XML state file.
deprecated. See VisitorSalomeSaveState and schemaSaveState in order to deal with the execution state of ForEachLoop.
xmlStateFile,: | the file name |
Definition at line 482 of file Proc.cxx.
References accept(), YACS::ENGINE::VisitorSaveState::closeFileDump(), and YACS::ENGINE::VisitorSaveState::openFileDump().
|
virtual |
Definition at line 447 of file Proc.cxx.
References _edition, DEBTRACE, and YACS::ENGINE::ComposedNode::edUpdateState().
Referenced by YACS::HMI::GenericGui::createContext(), and YACS::HMI::QtGuiContext::~QtGuiContext().
std::string Proc::setInPortValue | ( | std::string | nodeName, |
std::string | portName, | ||
std::string | value | ||
) |
Definition at line 287 of file Proc.cxx.
References YACS::ENGINE::Bool, DEBTRACE, YACS::ENGINE::Double, YACS::ENGINE::DataPort::edGetType(), YACS::ENGINE::InputPort::edInit(), YACS::ENGINE::Node::getInputPort(), YACS::ENGINE::Int, YACS::ENGINE::TypeCode::kind(), nodeMap, YACS::ENGINE::String, and YACS::Exception::what().
Referenced by main().
void Proc::setName | ( | const std::string & | name | ) |
Definition at line 204 of file Proc.cxx.
References YACS::ENGINE::Node::_name.
Referenced by YACS::proctypeParser< T >::name().
|
virtual |
Definition at line 190 of file Proc.cxx.
References YACS::ENGINE::RefCounter::incrRef(), gui.Appli::t, and typeMap.
|
inlinevirtual |
Reimplemented from YACS::ENGINE::Bloc.
Reimplemented in YACS::ENGINE::SalomeProc.
|
virtual |
This method is useful if this has been modified recursively and an update is needed between all the containers and components refered by children and little children and maps.
Definition at line 621 of file Proc.cxx.
References componentInstanceMap, containerMap, YACS::ENGINE::DeploymentTree::getAllContainers(), YACS::ENGINE::ComponentInstance::getCompoName(), YACS::ENGINE::DeploymentTree::getComponentsLinkedToContainer(), YACS::ENGINE::ComposedNode::getDeploymentTree(), YACS::ENGINE::Container::getName(), YACS::ENGINE::RefCounter::incrRef(), and removeContainers().
|
virtual |
Dump to the input stream a dot representation of the node.
os | : the input stream |
Reimplemented from YACS::ENGINE::Bloc.
Definition at line 86 of file Proc.cxx.
References YACS::ENGINE::Node::getQualifiedName(), and YACS::ENGINE::Bloc::writeDot().
Referenced by driverTest(), and main().
|
friend |
|
protected |
Definition at line 108 of file Proc.hxx.
Referenced by addComponentInstance().
|
protected |
Definition at line 107 of file Proc.hxx.
Referenced by modified(), and setEdition().
LoggerMap YACS::ENGINE::Proc::_loggers |
Definition at line 96 of file Proc.hxx.
Referenced by getLogger(), and ~Proc().
std::map<std::string, ComponentInstance*> YACS::ENGINE::Proc::componentInstanceMap |
Definition at line 92 of file Proc.hxx.
Referenced by addComponentInstance(), YACS::HMI::EditionSalomeNode::changeInstance(), YACS::servicetypeParser< T >::componentinstance(), YACS::HMI::EditionSalomeNode::fillComponentPanel(), YACS::HMI::SubjectProc::loadComponents(), YACS::HMI::CommandSetComponentInstanceProperties::localExecute(), YACS::HMI::CommandAssociateComponentToContainer::localExecute(), YACS::HMI::CommandAssociateServiceToComponent::localExecute(), YACS::HMI::CommandSetComponentInstanceProperties::localReverse(), YACS::HMI::CommandAddComponentInstance::localReverse(), YACS::HMI::CommandAssociateComponentToContainer::localReverse(), YACS::HMI::CommandAssociateServiceToComponent::localReverse(), YACS::HMI::CommandAddComponentFromCatalog::localReverse(), YACS::ENGINE::InputStudyPort::putDataInStudy(), removeComponentInstance(), YACS::HMI::SubjectServiceNode::setComponent(), updateContainersAndComponents(), YACS::ENGINE::VisitorSaveSchema::writeComponentInstances(), and YACS::HMI::SubjectComponent::~SubjectComponent().
std::map<std::string, Container*> YACS::ENGINE::Proc::containerMap |
Definition at line 91 of file Proc.hxx.
Referenced by YACS::HMI::EditionComponent::changeContainer(), YACS::HMI::EditionScript::changeContainer(), YACS::HMI::EditionSalomeNode::changeContainer(), YACS::proctypeParser< T >::componentinstance(), YACS::proctypeParser< T >::container(), createContainer(), YACS::HMI::EditionComponent::fillContainerPanel(), YACS::HMI::EditionScript::fillContainerPanel(), YACS::HMI::EditionSalomeNode::fillContainerPanel(), YACS::ENGINE::Visitor::getContainerMap(), YACS::servertypeParser< T >::loadcontainer(), YACS::HMI::SubjectProc::loadContainers(), YACS::HMI::CommandRenameContainer::localExecute(), YACS::HMI::CommandAddContainerBase::localExecute(), YACS::HMI::CommandSetContainerProperties::localExecute(), YACS::HMI::CommandAddComponentInstance::localExecute(), YACS::HMI::CommandSetContainer::localExecute(), YACS::HMI::CommandAssociateComponentToContainer::localExecute(), YACS::HMI::CommandDestroy::localExecute(), YACS::HMI::CommandRenameContainer::localReverse(), YACS::HMI::CommandAddContainerBase::localReverse(), YACS::HMI::CommandSetContainerProperties::localReverse(), YACS::HMI::CommandSetContainer::localReverse(), YACS::HMI::CommandAssociateComponentToContainer::localReverse(), YACS::HMI::CommandAssociateServiceToComponent::localReverse(), YACS::sinlinetypeParser< T >::post(), YACS::remotetypeParser< T >::post(), YACS::servertypeParser< T >::post(), YACS::servicetypeParser< T >::post(), removeContainer(), removeContainers(), YACS::HMI::SubjectServiceNode::setComponent(), and updateContainersAndComponents().
std::map<std::string, InlineNode*> YACS::ENGINE::Proc::inlineMap |
Definition at line 89 of file Proc.hxx.
Referenced by YACS::looptypeParser< T >::inline_(), YACS::casetypeParser::inline_(), YACS::bloctypeParser< T >::inline_(), YACS::looptypeParser< T >::node(), YACS::casetypeParser::node(), YACS::servertypeParser< T >::node(), YACS::bloctypeParser< T >::node(), YACS::nodetypeParser< T >::post(), YACS::looptypeParser< T >::remote(), YACS::casetypeParser::remote(), YACS::bloctypeParser< T >::remote(), YACS::looptypeParser< T >::server(), YACS::casetypeParser::server(), and YACS::bloctypeParser< T >::server().
std::vector<std::string> YACS::ENGINE::Proc::names |
Definition at line 93 of file Proc.hxx.
Referenced by YACS::looptypeParser< T >::bloc(), YACS::casetypeParser::bloc(), YACS::bloctypeParser< T >::bloc(), YACS::bloctypeParser< T >::control(), YACS::looptypeParser< T >::datalink(), YACS::bloctypeParser< T >::datalink(), YACS::looptypeParser< T >::foreach(), YACS::casetypeParser::foreach(), YACS::bloctypeParser< T >::foreach(), YACS::looptypeParser< T >::forloop(), YACS::casetypeParser::forloop(), YACS::bloctypeParser< T >::forloop(), YACS::casetypeParser::id(), YACS::looptypeParser< T >::inline_(), YACS::casetypeParser::inline_(), YACS::bloctypeParser< T >::inline_(), YACS::switchtypeParser::name(), YACS::whilelooptypeParser< T >::name(), YACS::forlooptypeParser< T >::name(), YACS::bloctypeParser< T >::name(), YACS::foreachlooptypeParser< T >::name(), YACS::optimizerlooptypeParser< T >::name(), YACS::looptypeParser< T >::node(), YACS::casetypeParser::node(), YACS::servertypeParser< T >::node(), YACS::servicetypeParser< T >::node(), YACS::bloctypeParser< T >::node(), YACS::looptypeParser< T >::optimizer(), YACS::casetypeParser::optimizer(), YACS::bloctypeParser< T >::optimizer(), YACS::bloctypeParser< T >::outnode(), YACS::bloctypeParser< T >::parameter(), YACS::casetypeParser::post(), YACS::switchtypeParser::post(), YACS::nodetypeParser< T >::post(), YACS::whilelooptypeParser< T >::post(), YACS::forlooptypeParser< T >::post(), YACS::bloctypeParser< T >::post(), YACS::foreachlooptypeParser< T >::post(), YACS::optimizerlooptypeParser< T >::post(), YACS::foreachlooptypeParser< T >::postAttr(), YACS::optimizerlooptypeParser< T >::postAttr(), YACS::proctypeParser< T >::pre(), YACS::defaultcasetypeParser::pre(), YACS::bloctypeParser< T >::preset(), YACS::looptypeParser< T >::remote(), YACS::casetypeParser::remote(), YACS::bloctypeParser< T >::remote(), YACS::looptypeParser< T >::server(), YACS::casetypeParser::server(), YACS::bloctypeParser< T >::server(), YACS::looptypeParser< T >::service(), YACS::casetypeParser::service(), YACS::bloctypeParser< T >::service(), YACS::looptypeParser< T >::sinline(), YACS::casetypeParser::sinline(), YACS::bloctypeParser< T >::sinline(), YACS::bloctypeParser< T >::stream(), YACS::looptypeParser< T >::switch_(), YACS::casetypeParser::switch_(), YACS::bloctypeParser< T >::switch_(), YACS::looptypeParser< T >::while_(), YACS::casetypeParser::while_(), and YACS::bloctypeParser< T >::while_().
std::map<std::string, Node*> YACS::ENGINE::Proc::nodeMap |
Definition at line 87 of file Proc.hxx.
Referenced by YACS::looptypeParser< T >::bloc(), YACS::casetypeParser::bloc(), YACS::bloctypeParser< T >::bloc(), YACS::bloctypeParser< T >::control(), YACS::looptypeParser< T >::datalink(), YACS::bloctypeParser< T >::datalink(), YACS::looptypeParser< T >::foreach(), YACS::casetypeParser::foreach(), YACS::bloctypeParser< T >::foreach(), YACS::looptypeParser< T >::forloop(), YACS::casetypeParser::forloop(), YACS::bloctypeParser< T >::forloop(), YACS::looptypeParser< T >::inline_(), YACS::casetypeParser::inline_(), YACS::bloctypeParser< T >::inline_(), YACS::whilelooptypeParser< T >::name(), YACS::forlooptypeParser< T >::name(), YACS::looptypeParser< T >::node(), YACS::casetypeParser::node(), YACS::bloctypeParser< T >::node(), YACS::looptypeParser< T >::optimizer(), YACS::casetypeParser::optimizer(), YACS::bloctypeParser< T >::optimizer(), YACS::bloctypeParser< T >::outnode(), YACS::bloctypeParser< T >::parameter(), YACS::bloctypeParser< T >::preset(), YACS::looptypeParser< T >::remote(), YACS::casetypeParser::remote(), YACS::bloctypeParser< T >::remote(), YACS::looptypeParser< T >::server(), YACS::casetypeParser::server(), YACS::bloctypeParser< T >::server(), YACS::looptypeParser< T >::service(), YACS::casetypeParser::service(), YACS::bloctypeParser< T >::service(), setInPortValue(), YACS::looptypeParser< T >::sinline(), YACS::casetypeParser::sinline(), YACS::bloctypeParser< T >::sinline(), YACS::bloctypeParser< T >::stream(), YACS::looptypeParser< T >::switch_(), YACS::casetypeParser::switch_(), YACS::bloctypeParser< T >::switch_(), YACSPMMLBasicsTest1::testYACSdriver_LRANN(), YACSPMMLBasicsTest1::testYACSdriver_PmmlDoesNotExist(), YACSPMMLBasicsTest1::testYACSdriverLinearRegression(), YACSPMMLBasicsTest1::testYACSdriverNeuralNetwork(), YACS::looptypeParser< T >::while_(), YACS::casetypeParser::while_(), and YACS::bloctypeParser< T >::while_().
std::map<std::string, ServiceNode*> YACS::ENGINE::Proc::serviceMap |
Definition at line 88 of file Proc.hxx.
Referenced by YACS::servicetypeParser< T >::node(), YACS::looptypeParser< T >::service(), YACS::casetypeParser::service(), YACS::bloctypeParser< T >::service(), YACS::looptypeParser< T >::sinline(), YACS::casetypeParser::sinline(), and YACS::bloctypeParser< T >::sinline().
std::map<std::string, TypeCode*> YACS::ENGINE::Proc::typeMap |
Definition at line 90 of file Proc.hxx.
Referenced by YACS::HMI::SubjectProc::addSubjectDataType(), YACS::objtypeParser::base(), YACS::HMI::MenusBase::buildForEachMenu(), YACS::seqtypeParser::content(), YACS::HMI::GuiEditor::CreateForEachLoop(), createInterfaceTc(), createSequenceTc(), createStructTc(), createType(), getTypeCode(), YACS::HMI::CommandAddDataTypeFromCatalog::getTypeCode(), YACS::ENGINE::Visitor::getTypeCodeMap(), YACS::inlinetypeParser< T >::inport(), YACS::servertypeParser< T >::instream(), YACS::servicetypeParser< T >::instream(), YACS::ENGINE::ProcCataLoader::loadCata(), YACS::HMI::SubjectProc::loadTypes(), YACS::HMI::CommandAddDataTypeFromCatalog::localExecute(), YACS::HMI::CommandAddInputPortFromCatalog::localExecute(), YACS::HMI::CommandAddOutputPortFromCatalog::localExecute(), YACS::structtypeParser::member(), YACS::inlinetypeParser< T >::outport(), YACS::servertypeParser< T >::outstream(), YACS::servicetypeParser< T >::outstream(), YACS::outnodetypeParser< T >::parameter(), YACS::presettypeParser< T >::parameter(), YACS::structtypeParser::post(), YACS::foreachlooptypeParser< T >::postAttr(), Proc(), YACS::HMI::SubjectProc::removeSubjectDataType(), setTypeCode(), and ~Proc().