FullSynchronisationModel Class Reference
#include <FullSynchronisationModel.h>
Inherits SynchronisationModel, and oops::SimulationObjectInputListener.
Collaboration diagram for FullSynchronisationModel:

Public Member Functions | |
| FullSynchronisationModel () | |
| virtual | ~FullSynchronisationModel () |
| virtual void | synchroniseBeforeStep () |
| virtual void | synchroniseAfterStep () |
Protected Member Functions | |
| virtual void | handleSyncMessage (NetMessage *msg) |
| virtual void | handleClientInputMessage (NetMessage *msg) |
| virtual void | handleRigidBodyInput (oops::RigidBody *rigidBody, oops::RIGIDBODY_METHODTYPE method, oops::MethodParameter *parameter) |
Protected Attributes | |
| MessageSizeCounter * | counter |
| Counter for logging the amount of bytes transmitted for synchronisation. | |
Static Protected Attributes | |
| static const unsigned | FULLSYNCHRONISATION_MESSAGEID = 1 |
Detailed Description
SynchronisationModel which synchronises every step everything. This kind of SynchronisationModel is the easiest and most unefficient way to synchronise physics data. After each simulation step the whole physical state is distributed to all servers and clients.Constructor & Destructor Documentation
| FullSynchronisationModel::FullSynchronisationModel | ( | ) |
Constructor initializes MessageCounter
| FullSynchronisationModel::~FullSynchronisationModel | ( | ) | [virtual] |
Empty destructor.
Member Function Documentation
| void FullSynchronisationModel::handleClientInputMessage | ( | NetMessage * | msg | ) | [protected, virtual] |
Handles the client input messages
Implements SynchronisationModel.
| void FullSynchronisationModel::handleRigidBodyInput | ( | oops::RigidBody * | rigidBody, | |
| oops::RIGIDBODY_METHODTYPE | method, | |||
| oops::MethodParameter * | parameter | |||
| ) | [protected, virtual] |
Reimplemented from oops::SimulationObjectInputListener.
| void FullSynchronisationModel::handleSyncMessage | ( | NetMessage * | msg | ) | [protected, virtual] |
Handles the synchronisation message
Implements SynchronisationModel.
| void FullSynchronisationModel::synchroniseAfterStep | ( | ) | [virtual] |
Synchronises data after a simulation step. The method is called from the Physics Module after a simulation step takes place.
Implements SynchronisationModel.
| void FullSynchronisationModel::synchroniseBeforeStep | ( | ) | [virtual] |
Synchronises data before a simulation step. The method is called from the Physics Module before a simulation step takes place.
Implements SynchronisationModel.
Member Data Documentation
MessageSizeCounter* FullSynchronisationModel::counter [protected] |
Counter for logging the amount of bytes transmitted for synchronisation.
const unsigned FullSynchronisationModel::FULLSYNCHRONISATION_MESSAGEID = 1 [static, protected] |
The documentation for this class was generated from the following files:
- src/inVRs/Modules/3DPhysics/FullSynchronisationModel.h
- src/inVRs/Modules/3DPhysics/FullSynchronisationModel.cpp
Generated on Wed Oct 20 16:11:56 2010 for inVRs by
1.5.8