![]() |
VR-Link API Documentation for DIS
|
Instances of DtUnderwaterAcousticsStateRepository are used to store state data for all underwater acoustics objects for a given entity. More...
Inheritance diagram for DtUnderwaterAcousticsStateRepository:
Collaboration diagram for DtUnderwaterAcousticsStateRepository:Public Types | |
| typedef DtAdditionalPassiveActivitiesRepository *(* | DtApaStateRepCreator )() |
| Function prototype for functions that create APA State Repositories. | |
| typedef DtActiveSonarStateRepository *(* | DtActiveSonarStateRepCreator )() |
| Function prototype for functions that create Active Sonar State Repositories. | |
Public Member Functions | |
| DtUnderwaterAcousticsStateRepository () | |
| Constructor. | |
| DtUnderwaterAcousticsStateRepository (const DtUnderwaterAcousticsStateRepository &orig) | |
| Copy Constructor. | |
| virtual | ~DtUnderwaterAcousticsStateRepository () |
| Destructor. | |
| DtUnderwaterAcousticsStateRepository & | operator= (const DtUnderwaterAcousticsStateRepository &orig) |
| Assignment Operator. | |
| virtual DtStateRepository * | clone (bool copy) const |
| Return a copy/empty object of the same type as this. | |
| virtual void | printData () const |
| Print data to the DtInfo stream. | |
| virtual void | printDataToStream (std::ostream &stream) const |
| Print data to the specified stream. | |
General attribute mutators (overridden). | |
| virtual void | setEntityId (const DtEntityIdentifier &id) |
| Entity id setter (overridden to update subobjects too). | |
| virtual void | setHostId (const DtGlobalObjectDesignator &id) |
| Entity id setter (overridden to update subobjects too). | |
| virtual void | setEventIdentifier (const DtEventId &id) |
| Entity id setter (overridden to update subobjects too). | |
Shaft Propulsion Noise accessors & mutators | |
| virtual void | setHullMaskerOn (bool val) |
| Set the HullMaskerOn. | |
| virtual bool | hullMaskerOn () const |
| Get the HullMaskerOn. | |
| virtual void | setPassiveParameterIndex (DtU16 val) |
| Set the PassiveParameterIndex. | |
| virtual DtU16 | passiveParameterIndex () const |
| Get the PassiveParameterIndex. | |
| virtual void | setPropulsionPlantConfiguration (DtUnderwaterAcousticPropulsionPlantConfig val) |
| Set the PropulsionPlantConfiguration. | |
| virtual DtUnderwaterAcousticPropulsionPlantConfig | propulsionPlantConfiguration () const |
| Get the PropulsionPlantConfiguration. | |
| virtual void | setShaftRateData (const std::vector< DtUnderwaterAcousticShaftSpeed > &val) |
| Set the ShaftRateData. | |
| virtual const std::vector < DtUnderwaterAcousticShaftSpeed > & | shaftRateData () const |
| Get the ShaftRateData. | |
| virtual const DtPropulsionNoiseStateRepository & | propNoiseStateRep () const |
| Accessors for the prop noise state rep (for direct read/write). | |
| virtual DtPropulsionNoiseStateRepository & | propNoiseStateRep () |
| Set the HullMaskerOn. | |
Additional Passive Activities accessors & mutators. | |
| virtual DtAdditionalPassiveActivitiesRepository * | apaSRById (DtU16 activityCode, DtApaRetCode *retcode=NULL) |
| Return a pointer to the first APA with the specified activity code. | |
| virtual DtAdditionalPassiveActivitiesRepository * | addApa (DtU16 activityCode=0, DtApaRetCode *retcode=NULL) |
| Add/remove a new APA within this underwater acoustic object. | |
| virtual DtApaRetCode | removeApa (DtU16 activityCode) |
| Removes an APA, if there are duplicate APAs, it will remove the first APA with the given activity code. | |
| virtual int | numAPAs () const |
| Returns number of APAs. | |
| virtual const DtList * | apaList () const |
| Returns DtList of DtAdditionalPassiveActivitiesRepositories. | |
| virtual DtList * | apaList () |
| Return a pointer to the first APA with the specified activity code. | |
| bool | isMember (DtAdditionalPassiveActivitiesRepository *ssr) const |
| Returns true if the given APA SR is in the list of APA SRs. | |
Active Sonar accessors & mutators. | |
| virtual DtActiveSonarStateRepository * | activeSonarSRById (DtU8 acousticId, DtSonarSysRetCode *retcode=NULL) |
| Return a pointer to the first active sonar with the specified id. | |
| virtual DtActiveSonarStateRepository * | addActiveSonar (DtU8 acousticId=0, DtSonarSysRetCode *retcode=NULL) |
| Add/remove a new active sonar within this underwater acoustic object. | |
| virtual DtSonarSysRetCode | removeActiveSonar (DtU8 acousticId) |
| Removes an active sonar, if there are duplicate sonars it will remove the first sonar with the given acoustic ID. | |
| virtual int | numActiveSonars () const |
| Returns number of active sonars. | |
| virtual const DtList * | activeSonarList () const |
| Returns DtList of DtActiveSonarStateRepositories. | |
| virtual DtList * | activeSonarList () |
| Return a pointer to the first active sonar with the specified id. | |
| bool | isMember (DtActiveSonarStateRepository *ssr) const |
| Returns true if the given active sonar SR is in the list of sonar SRs. | |
Public Member Functions inherited from DtUnderwaterAcousticsEmissionRepository | |
| DtUnderwaterAcousticsEmissionRepository () | |
| Constructor. | |
| virtual | ~DtUnderwaterAcousticsEmissionRepository () |
| Destructor. | |
| DtUnderwaterAcousticsEmissionRepository (const DtUnderwaterAcousticsEmissionRepository &orig) | |
| Copy Constructor. | |
| DtUnderwaterAcousticsEmissionRepository & | operator= (const DtUnderwaterAcousticsEmissionRepository &orig) |
| Assignment Operator. | |
| virtual const DtEventId & | eventIdentifier () const |
| Get the EventIdentifier. | |
Public Member Functions inherited from DtEmbeddedSystemRepository | |
| DtEmbeddedSystemRepository () | |
| default constructor | |
| DtEmbeddedSystemRepository (const DtEmbeddedSystemRepository &orig) | |
| copy constructor | |
| virtual | ~DtEmbeddedSystemRepository () |
| destructor | |
| DtEmbeddedSystemRepository & | operator= (const DtEmbeddedSystemRepository &orig) |
| assignment operator | |
| virtual const DtEntityIdentifier & | entityId () const |
| Get the entity identifier. | |
| virtual const DtGlobalObjectDesignator & | hostId () const |
| Get the host identifier. | |
| virtual void | setRelativePosition (const DtVector &position) |
| Set the position of the object relative to the entity. | |
| virtual const DtVector & | relativePosition () const |
| Get the position of the object relative to the entity. | |
Public Member Functions inherited from DtStateRepository | |
| DtStateRepository () | |
| default constructor | |
| DtStateRepository (const DtStateRepository &orig) | |
| copy constructor | |
| virtual | ~DtStateRepository () |
| destructor | |
| DtStateRepository & | operator= (const DtStateRepository &orig) |
| assignment operator | |
| virtual void | setGlobalId (const DtGlobalObjectDesignator &id) |
| Get/Set global identifier, or name. | |
| virtual const DtGlobalObjectDesignator & | globalId () const |
| virtual void | setAttributeRecords (const std::vector< DtStandardVariableRecord * > &records) |
| The following functions are related to the extendability part of DIS 7. | |
| virtual const std::vector < DtStandardVariableRecord * > | attributeRecords (unsigned int recordType=0) const |
| virtual void | getAttributeRecords (std::vector< DtStandardVariableRecord * > &vec, unsigned int recordType=0) const |
| virtual void | addAttributeRecord (DtStandardVariableRecord *record) |
| virtual void | clearAttributeRecords () |
| virtual void | setAttributeRecords (const std::vector< DtStandardVariableRecord * > &records, const DtSimulationAddress &address) |
| virtual void | setSimAddr (const DtSimulationAddress &id) |
| Get/Set default simulation address. Set by VR-Link for publishers (based on exercise connection) | |
| virtual const DtSimulationAddress & | simAddr () const |
| virtual unsigned int | numberOfAttributeRecords () const |
Static Public Member Functions | |
| static DtUnderwaterAcousticsStateRepository * | create () |
| Create a DtUnderwaterAcousticsStateRepository. | |
| static DtActiveSonarStateRepCreator | setActiveSonarStateRepCreator (DtActiveSonarStateRepCreator creator) |
| Give us a function to be used for creating active sonar SRs. | |
Protected Member Functions | |
| virtual void | purgeApaList () |
| virtual void | purgeActiveSonarList () |
Protected Attributes | |
| DtPropulsionNoiseStateRepository | myPropulsionNoiseState |
| Propulsion noise state rep. | |
| DtList | myAdditionalPassiveActivitiesList |
| APA state rep. | |
| DtList | myActiveSonarList |
| List of active sonars in this system. | |
Protected Attributes inherited from DtUnderwaterAcousticsEmissionRepository | |
| DtEventId | myEventIdentifier |
Protected Attributes inherited from DtEmbeddedSystemRepository | |
| DtEntityIdentifier | myEntityId |
| DtVector | myRelativePosition |
Static Protected Attributes | |
| static DtApaStateRepCreator | theApaStateRepCreator |
| static DtActiveSonarStateRepCreator | theActiveSonarStateRepCreator |
Additional Inherited Members | |
Public Attributes inherited from DtStateRepository | |
| DtGlobalObjectDesignator | myGlobalId |
| DtSimulationAddress | myDefaultSimulationAddress |
| std::map< DtSimulationAddress, std::vector < DtStandardVariableRecord * > > | myRecordsMap |
Instances of DtUnderwaterAcousticsStateRepository are used to store state data for all underwater acoustics objects for a given entity.
| typedef DtActiveSonarStateRepository*(* DtUnderwaterAcousticsStateRepository::DtActiveSonarStateRepCreator)() |
Function prototype for functions that create Active Sonar State Repositories.
| typedef DtAdditionalPassiveActivitiesRepository*(* DtUnderwaterAcousticsStateRepository::DtApaStateRepCreator)() |
Function prototype for functions that create APA State Repositories.
| DtUnderwaterAcousticsStateRepository::DtUnderwaterAcousticsStateRepository | ( | ) |
Constructor.
| DtUnderwaterAcousticsStateRepository::DtUnderwaterAcousticsStateRepository | ( | const DtUnderwaterAcousticsStateRepository & | orig | ) |
Copy Constructor.
|
virtual |
Destructor.
|
virtual |
Returns DtList of DtActiveSonarStateRepositories.
|
virtual |
Return a pointer to the first active sonar with the specified id.
|
virtual |
Return a pointer to the first active sonar with the specified id.
|
virtual |
Add/remove a new active sonar within this underwater acoustic object.
If you add an active sonar with a duplicate ID, retcode will be set to DtDuplicateSonar, and activeSonarSRById will return the first active sonar SR with the given ID.
|
virtual |
Add/remove a new APA within this underwater acoustic object.
If you add an APA with a duplicate ID, retcode will be set to DtDuplicateApa, and addPassActSRById will return the first APA SR with the given ID.
|
virtual |
Returns DtList of DtAdditionalPassiveActivitiesRepositories.
|
virtual |
Return a pointer to the first APA with the specified activity code.
|
virtual |
Return a pointer to the first APA with the specified activity code.
|
virtual |
Return a copy/empty object of the same type as this.
Reimplemented from DtUnderwaterAcousticsEmissionRepository.
|
static |
Create a DtUnderwaterAcousticsStateRepository.
Reimplemented from DtUnderwaterAcousticsEmissionRepository.
|
virtual |
Get the HullMaskerOn.
| bool DtUnderwaterAcousticsStateRepository::isMember | ( | DtAdditionalPassiveActivitiesRepository * | ssr | ) | const |
Returns true if the given APA SR is in the list of APA SRs.
| bool DtUnderwaterAcousticsStateRepository::isMember | ( | DtActiveSonarStateRepository * | ssr | ) | const |
Returns true if the given active sonar SR is in the list of sonar SRs.
|
virtual |
Returns number of active sonars.
|
virtual |
Returns number of APAs.
| DtUnderwaterAcousticsStateRepository& DtUnderwaterAcousticsStateRepository::operator= | ( | const DtUnderwaterAcousticsStateRepository & | orig | ) |
Assignment Operator.
|
virtual |
Get the PassiveParameterIndex.
|
virtual |
Print data to the DtInfo stream.
Reimplemented from DtUnderwaterAcousticsEmissionRepository.
|
virtual |
Print data to the specified stream.
Reimplemented from DtUnderwaterAcousticsEmissionRepository.
|
virtual |
Accessors for the prop noise state rep (for direct read/write).
|
virtual |
Set the HullMaskerOn.
|
virtual |
Get the PropulsionPlantConfiguration.
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
Removes an active sonar, if there are duplicate sonars it will remove the first sonar with the given acoustic ID.
This can cause crashes in HLA as this may not be the HLA object which was actually removed. It is safer in HLA to call removeActiveSonar which takes a GlobalId.
|
virtual |
Removes an APA, if there are duplicate APAs, it will remove the first APA with the given activity code.
This can cause crashes in HLA as this may not be the HLA object which was actually removed. It is safer in HLA to call removeApa which takes a GlobalId.
|
static |
Give us a function to be used for creating active sonar SRs.
|
virtual |
Entity id setter (overridden to update subobjects too).
Reimplemented from DtEmbeddedSystemRepository.
|
virtual |
Entity id setter (overridden to update subobjects too).
Reimplemented from DtUnderwaterAcousticsEmissionRepository.
|
virtual |
Entity id setter (overridden to update subobjects too).
Reimplemented from DtEmbeddedSystemRepository.
|
virtual |
Set the HullMaskerOn.
|
virtual |
Set the PassiveParameterIndex.
|
virtual |
Set the PropulsionPlantConfiguration.
|
virtual |
Set the ShaftRateData.
|
virtual |
Get the ShaftRateData.
|
protected |
List of active sonars in this system.
|
protected |
APA state rep.
|
protected |
Propulsion noise state rep.
|
staticprotected |
|
staticprotected |