]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blob - Model/include/tank.h
d4173af74cbc10aa5ed8b8ea9b5a0e1123618c18
[z.facultad/75.42/plaqui.git] / Model / include / tank.h
1
2
3 #ifndef _TANK_H_
4 #define _TANK_H_
5
6 #include "source.h"
7 #include "drain.h"
8
9 namespace PlaQui {
10         
11 namespace Model {
12                                 
13 class Tank:public Source, public Drain {
14 public:
15         Tank(const std::string &_name);
16         virtual ~Tank();
17
18         virtual bool get_output();
19
20         virtual void recieve_msg(int msg, IConector *who, void *data);
21         virtual void update();
22         virtual void simulate();
23 protected:
24         float litros;   
25         float actual_in_flow;
26         float actual_out_flow;
27 private:
28         Tank():Drain("null"),Source("null"),Control("null") {}
29         Tank &operator = (const Tank &) { return *this; } 
30 };
31
32 }
33 }
34
35 #endif // _TANK_H_