1 #ifndef __FORLOOP_HXX__
2 #define __FORLOOP_HXX__
4 #include "AnyInputPort.hxx"
11 /*! \brief Class for for loop node
15 * This kind of loop makes a fixed number of steps and stops
18 class ForLoop : public Loop
21 static const char NAME_OF_NSTEPS_NUMBER[];
22 AnyInputPort _nbOfTimesPort;
24 ForLoop(const ForLoop& other, ComposedNode *father, bool editionOnly);
25 ForLoop(const std::string& name);
27 void init(bool start=true);
28 InputPort *edGetNbOfTimesInputPort() { return &_nbOfTimesPort; }
29 int getNumberOfInputPorts() const;
30 Node *simpleClone(ComposedNode *father, bool editionOnly=true) const;
31 std::list<InputPort *> getSetOfInputPort() const;
32 InputPort* getInputPort(const std::string& name) const throw(Exception);
33 std::list<InputPort *> getLocalInputPorts() const;
34 virtual void accept(Visitor *visitor);
36 YACS::Event updateStateOnFinishedEventFrom(Node *node);