![]() |
VR-Forces Developer's Guide
|
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.

Public Types | |
| typedef DtNavAidStateRepository *(* | DtStateRepCreator )() |
| typedef DtNavAidEncoder *(* | DtEncoderCreator )() |
| typedef DtNavAidDecoder *(* | DtDecoderCreator )(DtExerciseConn *conn) |
| typedef DtNavAidStateRepository *(* | DtStateRepCreator )() |
| typedef DtNavAidDecoder *(* | DtDecoderCreator )(DtExerciseConn *exConn, DtObjClassDesc *classDesc) |
| typedef DtNavAidEncoder *(* | DtEncoderCreator )(DtExerciseConn *exConn, DtObjClassDesc *classDesc) |
Public Member Functions | |
| DtNavAidPublisher (DtNavAidStateRepository *stateRepToUse, DtExerciseConn *conn, const DtObjectId &entityId=DtObjectId::defaultId()) | |
| DtNavAidPublisher (DtExerciseConn *conn, const DtObjectId &entityId=DtObjectId::defaultId(), int radioId=1) | |
| virtual | ~DtNavAidPublisher () override |
| virtual bool | tick () override |
| virtual DtNavAidStateRepository * | navAidStateRep () |
| virtual DtNavAidStateRepository * | nasr () |
| virtual DtNavAidDecoder * | decoder () |
| virtual DtNavAidEncoder * | encoder () |
| virtual const DtObjectId & | id () const override |
| virtual const DtObjectId & | localId () const override |
| virtual const DtGlobalObjectDesignator & | globalId () const override |
| virtual int | radioId () const |
| virtual void | sendFinalPduOnDestruction (bool onOff) |
| virtual void | forceUpdate () override |
| virtual void | setHeartbeatMoveTimer (DtTime time) |
| virtual DtTime | heartbeatMoveTimer () const |
| virtual DtTime | transmitterTimeThreshold () const |
| virtual void | setAntennaLocationThreshold (double threshold) |
| virtual double | antennaLocationThreshold () const |
| virtual void | setAntennaOrientationThreshold (double threshold) |
| virtual double | antennaOrientationThreshold () const |
| DtNavAidPublisher (DtNavAidStateRepository *stateRepToUse, DtExerciseConn *conn, const char *name=0, const DtDDMRegionSet *regionSetToUse=0) | |
| DtNavAidPublisher (RTI::ObjectClassHandle h, DtExerciseConn *conn, const char *name=0, const DtDDMRegionSet *regionSetToUse=0) | |
| DtNavAidPublisher (DtExerciseConn *conn, const char *name=0, const DtDDMRegionSet *regionSetToUse=0) | |
| DtNavAidPublisher (DtHlaObjectWithStateRep *obj, DtExerciseConn *conn) | |
| virtual | ~DtNavAidPublisher () override |
| virtual DtNavAidStateRepository * | navAidStateRep () |
| virtual DtNavAidStateRepository * | nasr () |
| virtual const char * | classToUse () const |
Static Public Member Functions | |
| static void | setStateRepCreator (DtStateRepCreator creator) |
| static DtStateRepCreator | stateRepCreator (void) |
| static void | setEncoderCreator (DtEncoderCreator creator) |
| static void | setDecoderCreator (DtDecoderCreator creator) |
| static void | setUseMovingThresholdFlag (bool flag) |
| static bool | useMovingThresholdFlag () |
| static void | setClassDfltTimeThreshold (DtTime threshold) |
| static DtStateRepCreator | setStateRepCreator (DtStateRepCreator creator) |
| static DtEncoderCreator | setEncoderCreator (DtEncoderCreator creator) |
| static DtDecoderCreator | setDecoderCreator (DtDecoderCreator creator) |
Protected Member Functions | |
| void | sendFinalPdu () |
| void | init (const DtEntityIdentifier &vehId) |
| DtNavAidPublisher (const DtNavAidPublisher &orig) | |
| DtNavAidPublisher & | operator= (const DtNavAidPublisher &orig) |
| DtNavAidPublisher (const char *name=0, const DtDDMRegionSet *regionSetToUse=0) | |
| DtNavAidPublisher (const DtNavAidPublisher &orig) | |
| DtNavAidPublisher & | operator= (const DtNavAidPublisher &orig) |
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 |
| 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.
|
overridevirtual |
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.
|
overridevirtual |
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
|
overridevirtual |
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.
|
overridevirtual |
Get the environment process's identifier.
|
overridevirtual |
Get the environment process's localId - same as id for DIS.
|
overridevirtual |
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.
|
overridevirtual |
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 |