MessageSizeCounter Class Reference
#include <MessageSizeCounter.h>
Collaboration diagram for MessageSizeCounter:

Public Member Functions | |
| MessageSizeCounter (Physics *physics) | |
| virtual | ~MessageSizeCounter () |
| void | setLogFileName (std::string fileName) |
| void | countBytes (NetMessage *msg) |
| void | stepFinished () |
| void | dumpResults () |
Protected Attributes | |
| Physics * | physics |
| std::string | logFileName |
| float | stepSize |
| float | stepCounter |
| std::vector< unsigned > | bytesPerStep |
| std::vector< unsigned > | bytesPerSecond |
Detailed Description
Counts the number of bytes per second for the physics simulation. This class is used by the SynchronisationModels to count the number of bytes which are transmitted per second for synchronisation purposes.Constructor & Destructor Documentation
| MessageSizeCounter::MessageSizeCounter | ( | Physics * | physics | ) |
Constructor
| MessageSizeCounter::~MessageSizeCounter | ( | ) | [virtual] |
Empty destructor
Member Function Documentation
| void MessageSizeCounter::countBytes | ( | NetMessage * | msg | ) |
Adds the size of the passed message to the counter
| void MessageSizeCounter::dumpResults | ( | ) |
Method dumps the counted number of bytes
| void MessageSizeCounter::setLogFileName | ( | std::string | fileName | ) |
Sets the filename where the data is logged into
| void MessageSizeCounter::stepFinished | ( | ) |
Indicates that the current simulation step is over
Member Data Documentation
std::vector<unsigned> MessageSizeCounter::bytesPerSecond [protected] |
std::vector<unsigned> MessageSizeCounter::bytesPerStep [protected] |
std::string MessageSizeCounter::logFileName [protected] |
Physics* MessageSizeCounter::physics [protected] |
float MessageSizeCounter::stepCounter [protected] |
float MessageSizeCounter::stepSize [protected] |
The documentation for this class was generated from the following files:
- src/inVRs/Modules/3DPhysics/MessageSizeCounter.h
- src/inVRs/Modules/3DPhysics/MessageSizeCounter.cpp
Generated on Wed Oct 20 16:11:58 2010 for inVRs by
1.5.8