![]() |
VR-Link API Documentation for DIS
|
Instances of DtAggregatePublisher are used to take care of the details associated with publishing the state of an aggregate. More...
Inheritance diagram for DtAggregatePublisher:
Collaboration diagram for DtAggregatePublisher:Public Member Functions | |
| DtAggregatePublisher (DtAggregateStateRepository *stateRepToUse, DtExerciseConn *conn, const DtObjectId &id=DtObjectId::nullId()) | |
| constructor | |
| DtAggregatePublisher (DtExerciseConn *conn, const DtObjectId &id=DtObjectId::nullId()) | |
| constructor | |
| DtAggregatePublisher (const DtEntityType &type, DtExerciseConn *conn, const DtObjectId &id=DtObjectId::defaultId()) | |
| constructor The default is = (-1,-1,-1) | |
| DtAggregatePublisher (const DtEntityType &type, DtExerciseConn *conn, DtDeadReckonTypes algorithm, DtForceType forceId, const DtObjectId &id=DtObjectId::defaultId()) | |
| constructor The default is = (-1,-1,-1) | |
| virtual | ~DtAggregatePublisher () |
| destructor | |
| virtual void | tick () |
| Tick the publisher. | |
| virtual void | forceUpdate () |
| Cause the next tick call to send out the PDU even if its not needed. | |
| virtual DtAggregateStateRepository * | aggregateStateRep () |
| Get the aggregate state repository for this aggregate publisher. | |
| virtual DtAggregateStateRepository * | asr () |
| Get the aggregate state repository for this aggregate publisher. | |
| virtual const DtObjectId & | id () const |
| Get the entity's identifier. | |
| virtual const DtObjectId & | localId () const |
| Get the entity's localId - same as id for DIS. | |
| virtual const DtGlobalObjectDesignator & | globalId () const |
| Get the global object designator - same as id for DIS. | |
Static Public Member Functions | |
| static void | setStateRepCreator (DtStateRepCreator creator) |
| Give us a function to be used for creating SRs. | |
| static DtStateRepCreator | setStateRepCreator (void) |
| static void | setClassDfltTimeThreshold (DtTime threshold) |
Protected Member Functions | |
| void | init (const DtEntityIdentifier &vehId) |
| Not virtual since called from constructor. | |
| DtAggregatePublisher (const DtAggregatePublisher &orig) | |
| copy constructor -- Not Implemented | |
| DtAggregatePublisher & | operator= (const DtAggregatePublisher &orig) |
| assignment operator -- Not Implemented | |
Protected Attributes | |
| DtObjectId | myId |
| DtAggregateStateDecoder * | myAggregateDecoder |
| DtAggregateStateEncoder * | myAggregateEncoder |
Static Protected Attributes | |
| static DtStateRepCreator | theStateRepCreator |
| static DtTime | theClassDfltTimeThreshold |
| static bool | theClassDfltIsSetFlag |
Private Types | |
| typedef DtAggregateStateRepository *(* | DtStateRepCreator )() |
| Function prototype for functions that create DtAggregateStateRepositories. | |
Instances of DtAggregatePublisher are used to take care of the details associated with publishing the state of an aggregate.
typedef DtAggregateStateRepository*(* DtAggregatePublisher::DtStateRepCreator)() [private] |
Function prototype for functions that create DtAggregateStateRepositories.
| DtAggregatePublisher::DtAggregatePublisher | ( | DtAggregateStateRepository * | stateRepToUse, |
| DtExerciseConn * | conn, | ||
| const DtObjectId & | id = DtObjectId::nullId() |
||
| ) |
constructor
| DtAggregatePublisher::DtAggregatePublisher | ( | DtExerciseConn * | conn, |
| const DtObjectId & | id = DtObjectId::nullId() |
||
| ) |
constructor
| DtAggregatePublisher::DtAggregatePublisher | ( | const DtEntityType & | type, |
| DtExerciseConn * | conn, | ||
| const DtObjectId & | id = DtObjectId::defaultId() |
||
| ) |
constructor The default is = (-1,-1,-1)
| DtAggregatePublisher::DtAggregatePublisher | ( | const DtEntityType & | type, |
| DtExerciseConn * | conn, | ||
| DtDeadReckonTypes | algorithm, | ||
| DtForceType | forceId, | ||
| const DtObjectId & | id = DtObjectId::defaultId() |
||
| ) |
constructor The default is = (-1,-1,-1)
| virtual DtAggregatePublisher::~DtAggregatePublisher | ( | ) | [virtual] |
destructor
| DtAggregatePublisher::DtAggregatePublisher | ( | const DtAggregatePublisher & | orig | ) | [protected] |
copy constructor -- Not Implemented
| virtual DtAggregateStateRepository* DtAggregatePublisher::aggregateStateRep | ( | ) | [virtual] |
Get the aggregate state repository for this aggregate publisher.
| DtAggregateStateRepository * DtAggregatePublisher::asr | ( | ) | [inline, virtual] |
Get the aggregate state repository for this aggregate publisher.
References DtObjectPublisher::myStateRep.
| virtual void DtAggregatePublisher::forceUpdate | ( | ) | [virtual] |
Cause the next tick call to send out the PDU even if its not needed.
Implements DtObjectPublisher.
| virtual const DtGlobalObjectDesignator& DtAggregatePublisher::globalId | ( | ) | const [virtual] |
Get the global object designator - same as id for DIS.
Implements DtObjectPublisher.
| virtual const DtObjectId& DtAggregatePublisher::id | ( | ) | const [virtual] |
| void DtAggregatePublisher::init | ( | const DtEntityIdentifier & | vehId | ) | [protected] |
Not virtual since called from constructor.
| const DtObjectId & DtAggregatePublisher::localId | ( | ) | const [inline, virtual] |
| DtAggregatePublisher& DtAggregatePublisher::operator= | ( | const DtAggregatePublisher & | orig | ) | [protected] |
assignment operator -- Not Implemented
| static void DtAggregatePublisher::setClassDfltTimeThreshold | ( | DtTime | threshold | ) | [static] |
| static void DtAggregatePublisher::setStateRepCreator | ( | DtStateRepCreator | creator | ) | [static] |
Give us a function to be used for creating SRs.
| static DtStateRepCreator DtAggregatePublisher::setStateRepCreator | ( | void | ) | [static] |
| virtual void DtAggregatePublisher::tick | ( | ) | [virtual] |
Tick the publisher.
Implements DtObjectPublisher.
DtObjectId DtAggregatePublisher::myId [protected] |
bool DtAggregatePublisher::theClassDfltIsSetFlag [static, protected] |
DtTime DtAggregatePublisher::theClassDfltTimeThreshold [static, protected] |
DtStateRepCreator DtAggregatePublisher::theStateRepCreator [static, protected] |