1 #ifndef __TOYNODE_HXX__
2 #define __TOYNODE_HXX__
4 #include "ElementaryNode.hxx"
10 class ToyNode : public ElementaryNode
15 ToyNode(const std::string& name, int time=0);
16 void setTime(int time) { _time=time; }
17 InputPort *edAddInputPort(const std::string& inputPortName);
18 OutputPort *edAddOutputPort(const std::string& outputPortName);
19 InputPort *edAddInputPort(const std::string& inputPortName, YACS::DynType type) throw(Exception);
20 OutputPort *edAddOutputPort(const std::string& outputPortName, YACS::DynType type) throw(Exception);
21 InputDataStreamPort *edAddInputDataStreamPort(const std::string& inputPortDSName, YACS::StreamType type) throw(Exception);
22 OutputDataStreamPort *edAddOutputDataStreamPort(const std::string& outputPortDSName, YACS::StreamType type) throw(Exception);