39 _conditionPort(other._conditionPort,this)
43 std::vector< std::pair<OutPort *, InPort *> >::iterator iter=linksToReproduce.begin();
44 for(;iter!=linksToReproduce.end();++iter)
47 InPort* pin = iter->second;
89 return new WhileLoop(*
this,father,editionOnly);
123 const std::list<ComposedNode *>& pointsOfViewStart,
125 const std::list<ComposedNode *>& pointsOfViewEnd)
127 DEBTRACE(
"WhileLoop::checkLinkPossibility");
137 list<InputPort *> ret;
Base class for all composed nodes.
OutPort * getOutPort(const std::string &name) const
std::vector< std::pair< OutPort *, InPort * > > getSetOfInternalLinks() const
InputPort * getInputPort(const std::string &name) const
Get an input port given its name.
std::set< OutPort * > getAllOutPortsLeavingCurrentScope() const
List all output ports of children nodes that are linked to out of scope input ports.
std::string getPortName(const PORT *port) const
bool edAddLink(OutPort *start, InPort *end)
Add a dataflow link between two data ports.
Base class for loop node.
void init(bool start=true)
friend class FakeNodeForLoop
FakeNodeForLoop * _nodeForNullTurnOfLoops
Base class for all nodes.
virtual void exUpdateState()
Update the node state.
virtual void init(bool start=true)
void setState(YACS::StatesForNode theState)
Sets the given state for node.
InPort * getInPort(const std::string &name) const
YACS::StatesForNode _state
virtual void visitWhileLoop(WhileLoop *node)=0
static const char NAME_OF_INPUT_CONDITION[]
ConditionInputPort _conditionPort
Node * simpleClone(ComposedNode *father, bool editionOnly=true) const
void checkLinkPossibility(OutPort *start, const std::list< ComposedNode * > &pointsOfViewStart, InPort *end, const std::list< ComposedNode * > &pointsOfViewEnd)
void exUpdateState()
Update the node state.
void init(bool start=true)
virtual void accept(Visitor *visitor)
YACS::Event updateStateOnFinishedEventFrom(Node *node)
Method used to notify the node that a child node has ended.
InputPort * getInputPort(const std::string &name) const
Get an input port given its name.
std::list< InputPort * > getLocalInputPorts() const
redefined on derived class of ComposedNode. by default a ComposedNode has no port by itself
WhileLoop(const WhileLoop &other, ComposedNode *father, bool editionOnly)