Rev 1887 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1887 | Rev 1971 | ||
|---|---|---|---|
| Line 25... | Line 25... | ||
| 25 | #include <string> |
25 | #include <string> |
| 26 | 26 | ||
| 27 | #include <boost/shared_ptr.hpp> |
27 | #include <boost/shared_ptr.hpp> |
| 28 | #include <boost/signals2.hpp> |
28 | #include <boost/signals2.hpp> |
| 29 | 29 | ||
| 30 | #include "logging/Logger.h" |
- | |
| 31 | #include "broker/Subscriber.h" |
30 | #include "broker/Subscriber.h" |
| 32 | 31 | ||
| 33 | #include "timer/Subscriber.h" |
32 | #include "timer/Subscriber.h" |
| 34 | #include "common/common.h" |
33 | #include "common/common.h" |
| 35 | 34 | ||
| Line 72... | Line 71... | ||
| 72 | 71 | ||
| 73 | private: |
72 | private: |
| 74 | static Pointer instance_; |
73 | static Pointer instance_; |
| 75 | 74 | ||
| 76 | timer::TimerId timer_id_; |
75 | timer::TimerId timer_id_; |
| 77 | - | ||
| 78 | NodeList nodes_; |
76 | NodeList nodes_; |
| 79 | ModuleList modules_; |
77 | ModuleList modules_; |
| 80 | Node::Id active_programming_node_id_; |
78 | Node::Id active_programming_node_id_; |
| 81 | 79 | ||
| 82 | SignalOnNodeChange signal_on_node_change_; |
80 | SignalOnNodeChange signal_on_node_change_; |
| 83 | SignalOnModuleChange signal_on_module_change_; |
81 | SignalOnModuleChange signal_on_module_change_; |
| 84 | SignalOnModuleMessage signal_on_module_message_; |
82 | SignalOnModuleMessage signal_on_module_message_; |
| 85 | 83 | ||
| 86 | Manager(); |
84 | Manager(); |
| 87 | 85 | ||
| 88 | void SlotOnMessageHandler(broker::Message::Pointer message); |
86 | void SlotOnMessageHandler(broker::Message::Pointer message); |
| 89 | void SlotOnTimeoutHandler(timer::TimerId timer_id, bool repeat); |
87 | void SlotOnTimeoutHandler(timer::TimerId timer_id, bool repeat); |
| 90 | void SlotOnNewState(Node::Id node_id, Node::State current_state, Node::State target_state); |
88 | void SlotOnNewState(Node::Id node_id, Node::State current_state, Node::State target_state); |
| 91 | 89 | ||
| 92 | void SendMessageHandler(std::string full_id, std::string command, common::StringMap variables); |
90 | void SendMessageHandler(std::string full_id, std::string command, common::StringMap variables); |
| 93 | 91 | ||
| 94 | Node::Pointer GetNode(Node::Id node_id); |
92 | Node::Pointer GetNode(Node::Id node_id); |
| 95 | Module::Pointer GetModule(Module::Id module_id, std::string module_name, std::string class_name); |
93 | Module::Pointer GetModule(Module::Id module_id, std::string module_name, std::string class_name); |
| 96 | void RemoveModules(Node::Id node_id); |
94 | void RemoveModules(Node::Id node_id); |
| 97 | unsigned int GetNumberOfModules(Node::Id node_id); |
95 | unsigned int GetNumberOfModules(Node::Id node_id); |
| 98 | - | ||
| 99 | logging::Logger LOG; |
- | |
| 100 | }; |
96 | }; |
| 101 | 97 | ||
| 102 | }; // namespace control |
98 | }; // namespace control |
| 103 | }; // namespace atom |
99 | }; // namespace atom |
| 104 | 100 | ||