VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
makVrv::DtSimEntry Class Reference

A DtSimEntry is a container of DtSimState's and represents the total state of an simulation object. More...

Inheritance diagram for makVrv::DtSimEntry:
Inheritance graph
[legend]

List of all members.

Public Types

typedef std::vector< DtSimState * > SimStateVector
 A vector of DtSimState's.
typedef std::multimap
< DtSimEntryUpdater::UpdateRate,
DtBaseStateView * > 
UpdateRateMap
 A multimap of the update rates and DtEventView's to be updated at that rate.

Public Member Functions

 DtSimEntry (DtDe &de, DtUniqueID id)
 CTOR.
virtual ~DtSimEntry ()
 DTOR.
const SimStateVectorsimStates () const
 SimStateVector accessor.
bool addState (DtSimState *state)
 Return's true if state was added to the SimStateVector.
bool removeState (DtSimState *state)
 Return's true if state was removed from the SimStateVector.
void forceUpdate (DtBaseStateView *stateView)
 Force an update.
void setUpdateRate (DtSimEntryUpdater::UpdateRate rate, DtBaseStateView *stateView)
 Set the update rate for the state view.
DtSimEntryUpdater::UpdateRate rateForView (DtBaseStateView *stateView) const
 Returns the update rate for the state view.
void stateUpdated ()
 Called by the DtSimStateObject when a state has been updated.
DtUniqueID id () const
 Return the unique Id of this entry.

Protected Member Functions

void reset ()
void addStateViewToUpdateRateMap (DtSimEntryUpdater::UpdateRate rate, DtBaseStateView *stateView)
 Add stateView to myUpdateRateMap.
void removeStateViewFromUpdateRateMap (DtBaseStateView *stateView)
 Remove the DtEventView from myUpdateRateMap.
DtSimEntryUpdater::UpdateRate maxUpdateRate ()
 Return the max update rate of myUpdateRateMap.
DtSimEntryUpdater::UpdateRate minUpdateRate ()
 Return the min update rate of myUpdateRateMap.

Protected Attributes

DtDemyDe
DtUniqueID myId
SimStateVector mySimStateVector
UpdateRateMap myUpdateRateMap
unsigned long long myUpdateCounter
bool myForceUpdatePending

Friends

class DtSimData
 The sim data is the friend of the entry.

Detailed Description

A DtSimEntry is a container of DtSimState's and represents the total state of an simulation object.


Member Typedef Documentation

A vector of DtSimState's.

A multimap of the update rates and DtEventView's to be updated at that rate.


Constructor & Destructor Documentation

CTOR.

virtual makVrv::DtSimEntry::~DtSimEntry ( ) [virtual]

DTOR.


Member Function Documentation

SimStateVector accessor.

Referenced by makVrv::DtStateView< StateType >::findState(), and makVrf::findStateFor().

Return's true if state was added to the SimStateVector.

Return's true if state was removed from the SimStateVector.

Force an update.

Set the update rate for the state view.

Send DtOHz to stop updating.

Returns the update rate for the state view.

Called by the DtSimStateObject when a state has been updated.

This will alert DtEventView's that state has been updated.

void makVrv::DtSimEntry::reset ( ) [protected]

Add stateView to myUpdateRateMap.

Use setUpdateRate() to actually set the update rate.

Remove the DtEventView from myUpdateRateMap.

Use setUpdateRate(Dt0Hz) to stop the updates for a state view.

Return the max update rate of myUpdateRateMap.

Return the min update rate of myUpdateRateMap.


Friends And Related Function Documentation

friend class DtSimData [friend]

The sim data is the friend of the entry.


Member Data Documentation

unsigned long long makVrv::DtSimEntry::myUpdateCounter [protected]

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)