![]() |
VR-Forces 4.10 Class Documentation
|
Instances of DtNavAidPublisher are used for publishing simulation data of NavAids such as TACAN. More...

Public Types | |
| typedef DtNavAidStateRepository *(* | DtStateRepCreator )() |
| Function prototype for a function that creates a DtNavAidStateRepository. More... | |
| typedef DtNavAidEncoder *(* | DtEncoderCreator )() |
| Function prototype for a function that creates a DtNavAidEncoder. More... | |
| typedef DtNavAidDecoder *(* | DtDecoderCreator )(DtExerciseConn *conn) |
| Function prototype for a function that creates a DtNavAidDecoder. More... | |
| typedef DtNavAidStateRepository *(* | DtStateRepCreator )() |
| Function prototype for functions that create DtNavAidStateRepositorys. More... | |
| typedef DtNavAidDecoder *(* | DtDecoderCreator )(DtExerciseConn *exConn, DtObjClassDesc *classDesc) |
| Function prototype for functions that create DtNavAidDecoders. More... | |
| typedef DtNavAidEncoder *(* | DtEncoderCreator )(DtExerciseConn *exConn, DtObjClassDesc *classDesc) |
| Function prototype for functions that create DtNavAidEncoders. More... | |
Public Member Functions | |
| DtNavAidPublisher (DtNavAidStateRepository *stateRepToUse, DtExerciseConn *conn, const DtObjectId &entityId=DtObjectId::defaultId()) | |
| Constructor – State Rep must contain a radioId. More... | |
| DtNavAidPublisher (DtExerciseConn *conn, const DtObjectId &entityId=DtObjectId::defaultId(), int radioId=1) | |
| Constructor. More... | |
| virtual | ~DtNavAidPublisher () |
| Destructor. More... | |
| virtual void | tick () |
| This function should be called once per frame for each NavAid object. More... | |
| virtual DtNavAidStateRepository * | navAidStateRep () |
| Returns a pointer to the NavAid state repository - through which you can set or inspect current state information. More... | |
| virtual DtNavAidStateRepository * | nasr () |
| Synonym for environmentProcessStateRep() More... | |
| virtual DtNavAidDecoder * | decoder () |
| Returns a pointer to the Decoder being used to decode PDUs that we send back into the asSeenByRemote ESR. More... | |
| virtual DtNavAidEncoder * | encoder () |
| Returns a pointer to the Encoder being used to encode current state into an entity state PDU. More... | |
| virtual const DtObjectId & | id () const |
| Get the environment process's identifier. More... | |
| virtual const DtObjectId & | localId () const |
| Get the environment process's localId - same as id for DIS. More... | |
| virtual const DtGlobalObjectDesignator & | globalId () const |
| Get the global object designator - same as id for DIS. More... | |
| virtual int | radioId () const |
| Get the radio ID. More... | |
| virtual void | sendFinalPduOnDestruction (bool onOff) |
| Set flag indicating whether to send a final PDU with the "FinalPdu" appearance bit set, from within the DtNavAidPublisher destructor. More... | |
| virtual void | forceUpdate () |
| Force a state update to be sent during the next call to tick, even if nothing would normally cause a send. More... | |
| virtual void | setHeartbeatMoveTimer (DtTime time) |
| Sets the time threshold used for moving transmitters. More... | |
| virtual DtTime | heartbeatMoveTimer () const |
| Returns the time threshold used for moving transmitters. More... | |
| virtual DtTime | transmitterTimeThreshold () const |
| Returns the time threshold being used. More... | |
| virtual void | setAntennaLocationThreshold (double threshold) |
| Sets the antenna location threshold. More... | |
| virtual double | antennaLocationThreshold () const |
| Returns the antenna location threshold. More... | |
| virtual void | setAntennaOrientationThreshold (double threshold) |
| Sets the antenna orientation threshold. More... | |
| virtual double | antennaOrientationThreshold () const |
| Returns the antenna orientation threshold. More... | |
| DtNavAidPublisher (DtNavAidStateRepository *stateRepToUse, DtExerciseConn *conn, const char *name=0, const DtDDMRegionSet *regionSetToUse=0) | |
| Constructor. More... | |
| DtNavAidPublisher (RTI::ObjectClassHandle h, DtExerciseConn *conn, const char *name=0, const DtDDMRegionSet *regionSetToUse=0) | |
| Constructor. More... | |
| DtNavAidPublisher (DtExerciseConn *conn, const char *name=0, const DtDDMRegionSet *regionSetToUse=0) | |
| Constructor. More... | |
| DtNavAidPublisher (DtHlaObjectWithStateRep *obj, DtExerciseConn *conn) | |
| Constructor that creates a publisher for an existing DtHlaObject. More... | |
| virtual | ~DtNavAidPublisher () |
| destructor More... | |
| virtual DtNavAidStateRepository * | navAidStateRep () |
| Returns a pointer to the DtNavAidStateRepository - through which you can set or inspect current state information. More... | |
| virtual DtNavAidStateRepository * | nasr () |
| Synonym for navAidStateRep(). More... | |
| virtual const char * | classToUse () const |
| Returns the name of the FOM object class to use. More... | |
Static Public Member Functions | |
| static void | setStateRepCreator (DtStateRepCreator creator) |
| Give us a function to be used for creating SRs. More... | |
| static DtStateRepCreator | stateRepCreator (void) |
| static void | setEncoderCreator (DtEncoderCreator creator) |
| Give us a function to be used for creating an encoder. More... | |
| static void | setDecoderCreator (DtDecoderCreator creator) |
| Give us a function to be used for creating a decoder. More... | |
| static void | setUseMovingThresholdFlag (bool flag) |
| Sets the flag to determine whether to use a separate threshold value if the entity that the NavAid is attached to is moving. More... | |
| static bool | useMovingThresholdFlag () |
| Returns the flag described above. More... | |
| static void | setClassDfltTimeThreshold (DtTime threshold) |
| static DtStateRepCreator | setStateRepCreator (DtStateRepCreator creator) |
| Give us a function to be used for creating SRs. More... | |
| static DtEncoderCreator | setEncoderCreator (DtEncoderCreator creator) |
| Give us a function to be used for creating encoders. More... | |
| static DtDecoderCreator | setDecoderCreator (DtDecoderCreator creator) |
| Give us a function to be used for creating decoders. More... | |
Protected Member Functions | |
| void | sendFinalPdu () |
| not virtual since called from destructor. More... | |
| void | init (const DtEntityIdentifier &vehId) |
| not virtual since called from constructor More... | |
| DtNavAidPublisher (const DtNavAidPublisher &orig) | |
| copy constructor – not implemented More... | |
| DtNavAidPublisher & | operator= (const DtNavAidPublisher &orig) |
| copy constructor – not implemented More... | |
| DtNavAidPublisher (const char *name=0, const DtDDMRegionSet *regionSetToUse=0) | |
| Constructor which does not include the DtExerciseConn and does not register the HLA object. More... | |
| DtNavAidPublisher (const DtNavAidPublisher &orig) | |
| copy constructor – not implemented More... | |
| DtNavAidPublisher & | operator= (const DtNavAidPublisher &orig) |
| copy constructor – not implemented More... | |
Protected Attributes | |
| DtObjectId | myId |
| DtNavAidDecoder * | myDecoder |
| DtNavAidEncoder * | myEncoder |
| bool | mySendFinalInDtor |
| DtTime | myHeartbeatMoveTimer |
Static Protected Attributes | |
| static DtStateRepCreator | theStateRepCreator |
| static DtEncoderCreator | theEncoderCreator |
| static DtDecoderCreator | theDecoderCreator |
| static bool | theUseMovingThresholdFlag |
| static DtTime | theClassDfltTimeThreshold |
| static bool | theClassDfltIsSetFlag |
Instances of DtNavAidPublisher are used for publishing simulation data of NavAids such as TACAN.
class DtNavAidPublisher:
Instances of DtNavAidPublisher are used for local or source simulations of radio transmitters, (i.e. these entities are not dependent on data being produced elsewhere on the network for their existence). These radio transmitters send data to the network.
| typedef DtNavAidStateRepository*(* DtNavAidPublisher::DtStateRepCreator)() |
Function prototype for a function that creates a DtNavAidStateRepository.
| typedef DtNavAidEncoder*(* DtNavAidPublisher::DtEncoderCreator)() |
Function prototype for a function that creates a DtNavAidEncoder.
| typedef DtNavAidDecoder*(* DtNavAidPublisher::DtDecoderCreator)(DtExerciseConn *conn) |
Function prototype for a function that creates a DtNavAidDecoder.
| typedef DtNavAidStateRepository*(* DtNavAidPublisher::DtStateRepCreator)() |
Function prototype for functions that create DtNavAidStateRepositorys.
| typedef DtNavAidDecoder*(* DtNavAidPublisher::DtDecoderCreator)(DtExerciseConn *exConn, DtObjClassDesc *classDesc) |
Function prototype for functions that create DtNavAidDecoders.
| typedef DtNavAidEncoder*(* DtNavAidPublisher::DtEncoderCreator)(DtExerciseConn *exConn, DtObjClassDesc *classDesc) |
Function prototype for functions that create DtNavAidEncoders.
| DtNavAidPublisher::DtNavAidPublisher | ( | DtNavAidStateRepository * | stateRepToUse, |
| DtExerciseConn * | conn, | ||
| const DtObjectId & | entityId = DtObjectId::defaultId() |
||
| ) |
Constructor – State Rep must contain a radioId.
| DtNavAidPublisher::DtNavAidPublisher | ( | DtExerciseConn * | conn, |
| const DtObjectId & | entityId = DtObjectId::defaultId(), |
||
| int | radioId = 1 |
||
| ) |
Constructor.
|
virtual |
Destructor.
|
protected |
copy constructor – not implemented
| DtNavAidPublisher::DtNavAidPublisher | ( | DtNavAidStateRepository * | stateRepToUse, |
| DtExerciseConn * | conn, | ||
| const char * | name = 0, |
||
| const DtDDMRegionSet * | regionSetToUse = 0 |
||
| ) |
Constructor.
| DtNavAidPublisher::DtNavAidPublisher | ( | RTI::ObjectClassHandle | h, |
| DtExerciseConn * | conn, | ||
| const char * | name = 0, |
||
| const DtDDMRegionSet * | regionSetToUse = 0 |
||
| ) |
Constructor.
| DtNavAidPublisher::DtNavAidPublisher | ( | DtExerciseConn * | conn, |
| const char * | name = 0, |
||
| const DtDDMRegionSet * | regionSetToUse = 0 |
||
| ) |
Constructor.
| DtNavAidPublisher::DtNavAidPublisher | ( | DtHlaObjectWithStateRep * | obj, |
| DtExerciseConn * | conn | ||
| ) |
Constructor that creates a publisher for an existing DtHlaObject.
(DtHlaObjectWithStateRep is derived from DtHlaObject.) Typically used in conjunction with ownership management, when you want to take ownership and begin updating some attributes of an object that you have already discovered.
|
virtual |
destructor
|
protected |
Constructor which does not include the DtExerciseConn and does not register the HLA object.
This is typically not desired, but may be useful in certain cases when a derived publisher wants to better control how the object is published.
|
protected |
copy constructor – not implemented
|
virtual |
This function should be called once per frame for each NavAid object.
It determines if any data needs to be sent to the other exercise participants and sends that data.
|
inlinevirtual |
Returns a pointer to the NavAid state repository - through which you can set or inspect current state information.
|
inlinevirtual |
Synonym for environmentProcessStateRep()
|
virtual |
Returns a pointer to the Decoder being used to decode PDUs that we send back into the asSeenByRemote ESR.
|
virtual |
Returns a pointer to the Encoder being used to encode current state into an entity state PDU.
|
virtual |
Get the environment process's identifier.
|
virtual |
Get the environment process's localId - same as id for DIS.
|
virtual |
Get the global object designator - same as id for DIS.
|
virtual |
Get the radio ID.
|
virtual |
Set flag indicating whether to send a final PDU with the "FinalPdu" appearance bit set, from within the DtNavAidPublisher destructor.
|
virtual |
Force a state update to be sent during the next call to tick, even if nothing would normally cause a send.
|
virtual |
Sets the time threshold used for moving transmitters.
|
virtual |
Returns the time threshold used for moving transmitters.
|
virtual |
Returns the time threshold being used.
|
virtual |
Sets the antenna location threshold.
Sets the distance that the antenna must have moved for another PDU to be sent.
| threshold | Threshold in meters defaulted to 500 m. |
|
virtual |
Returns the antenna location threshold.
| DtException | if state rep is null. |
|
virtual |
Sets the antenna orientation threshold.
| threshold | Threshold in radians defaulted to 180 degrees. |
|
virtual |
Returns the antenna orientation threshold.
| DtException | if state rep is null. |
|
static |
Give us a function to be used for creating SRs.
|
static |
|
static |
Give us a function to be used for creating an encoder.
|
static |
Give us a function to be used for creating a decoder.
|
static |
Sets the flag to determine whether to use a separate threshold value if the entity that the NavAid is attached to is moving.
|
static |
Returns the flag described above.
|
static |
|
protected |
not virtual since called from destructor.
|
protected |
not virtual since called from constructor
|
protected |
copy constructor – not implemented
|
virtual |
Returns a pointer to the DtNavAidStateRepository - through which you can set or inspect current state information.
|
virtual |
Synonym for navAidStateRep().
|
virtual |
Returns the name of the FOM object class to use.
Default implementation is to ask the FOM Mapper.
|
static |
Give us a function to be used for creating SRs.
|
static |
Give us a function to be used for creating encoders.
|
static |
Give us a function to be used for creating decoders.
|
protected |
copy constructor – not implemented
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |