#include <monitorcontrol.h>
Inheritance diagram for oxygen::MonitorControl:
Public Member Functions | |
MonitorControl () | |
virtual | ~MonitorControl () |
virtual void | StartCycle () |
forwards all pending messages from all connected monitors to the MonitorServer | |
virtual void | EndCycle () |
updates all connected monitors at the end of each simulation cycle | |
virtual void | ClientConnect (boost::shared_ptr< Client > client) |
called when a new client connects | |
int | GetMonitorInterval () |
returns the monitor update interval in cycles | |
void | SetMonitorInterval (int i) |
sets the monitor update interval in cycles | |
Protected Member Functions | |
virtual void | OnLink () |
This method is called, when the hierarchy object has been linked to a parent. | |
virtual void | OnUnlink () |
This rountine is called, before the hierarchy object is removed from the parent. | |
Protected Attributes | |
boost::shared_ptr< MonitorServer > | mMonitorServer |
cached reference to the MonitorServer | |
int | mMonitorInterval |
the update interval for the connected monitors in cycles |
Definition at line 33 of file monitorcontrol.h.
|
Definition at line 33 of file monitorcontrol.cpp. References oxygen::NetControl::mLocalAddr, and mMonitorInterval. |
|
Definition at line 39 of file monitorcontrol.cpp. |
|
called when a new client connects
|
|
updates all connected monitors at the end of each simulation cycle
Reimplemented from oxygen::NetControl. Definition at line 78 of file monitorcontrol.cpp. References oxygen::NetControl::EndCycle(), oxygen::SimControlNode::GetSimulationServer(), oxygen::NetControl::mClients, mMonitorInterval, mMonitorServer, oxygen::NetControl::mNetMessage, and oxygen::NetControl::SendMessage(). Here is the call graph for this function: ![]() |
|
returns the monitor update interval in cycles
Definition at line 160 of file monitorcontrol.cpp. References mMonitorInterval. |
|
This method is called, when the hierarchy object has been linked to a parent. At that point, traversal can commence. It can be overridden to support custom 'link' behavior. Reimplemented from zeitgeist::Leaf. Definition at line 43 of file monitorcontrol.cpp. References zeitgeist::Object::GetLog(), oxygen::SimControlNode::GetSimulationServer(), mMonitorServer, and zeitgeist::Leaf::OnLink(). Here is the call graph for this function: ![]() |
|
This rountine is called, before the hierarchy object is removed from the parent. It can be overridden to support custom 'unlink' behavior. Reimplemented from zeitgeist::Leaf. Definition at line 57 of file monitorcontrol.cpp. References mMonitorServer, and zeitgeist::Leaf::OnUnlink(). Here is the call graph for this function: ![]() |
|
sets the monitor update interval in cycles
Definition at line 165 of file monitorcontrol.cpp. References mMonitorInterval. |
|
forwards all pending messages from all connected monitors to the MonitorServer
Reimplemented from oxygen::NetControl. Definition at line 124 of file monitorcontrol.cpp. References oxygen::NetControl::mBuffers, mMonitorServer, oxygen::NetControl::mNetMessage, and oxygen::NetControl::StartCycle(). Here is the call graph for this function: ![]() |
|
the update interval for the connected monitors in cycles
Definition at line 65 of file monitorcontrol.h. Referenced by EndCycle(), GetMonitorInterval(), MonitorControl(), and SetMonitorInterval(). |
|
cached reference to the MonitorServer
Definition at line 62 of file monitorcontrol.h. Referenced by EndCycle(), OnLink(), OnUnlink(), and StartCycle(). |