]> SALOME platform Git repositories - modules/yacs.git/blob - src/engine/Test/ToyNode.hxx
Salome HOME
PR: first version from Antony GEAY, with directory restructuration
[modules/yacs.git] / src / engine / Test / ToyNode.hxx
1 #ifndef __TOYNODE_HXX__
2 #define __TOYNODE_HXX__
3
4 #include "ElementaryNode.hxx"
5
6 namespace YACS
7 {
8   namespace ENGINE
9   {
10     class ToyNode : public ElementaryNode
11     {
12     private:
13       int _time;
14     public:
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);
23       void execute();
24     };
25   }
26 }
27
28 #endif