![]() |
VR-Link API Documentation for DIS
|
class DtActiveSonarStateRepository More...
Inheritance diagram for DtActiveSonarStateRepository:
Collaboration diagram for DtActiveSonarStateRepository:Public Types | |
| typedef DtActiveSonarBeamRepository *(* | DtBeamStateRepCreator )() |
| Function prototype for functions that create Beam State Repositories. | |
Public Member Functions | |
| DtActiveSonarStateRepository () | |
| Constructor. | |
| virtual | ~DtActiveSonarStateRepository () |
| Destructor. | |
| DtActiveSonarStateRepository (const DtActiveSonarStateRepository &orig) | |
| Copy Constructor. | |
| DtActiveSonarStateRepository & | operator= (const DtActiveSonarStateRepository &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. | |
| virtual void | setAcousticName (DtUnderwaterAcousticSystemName val) |
| Set the AcousticName. | |
| virtual DtUnderwaterAcousticSystemName | acousticName () const |
| Get the AcousticName. | |
| virtual void | setFunctionCode (DtUnderwaterAcousticFunction val) |
| Set the FunctionCode. | |
| virtual DtUnderwaterAcousticFunction | functionCode () const |
| Get the FunctionCode. | |
| virtual void | setAcousticsIdentifier (DtU8 val) |
| Set the AcousticsIdentifier. | |
| virtual DtU8 | acousticsIdentifier () const |
| Get the AcousticsIdentifier. | |
| virtual DtActiveSonarBeamRepository * | beamSRById (DtU8 beamId, DtSonarBeamRetCode *retcode=NULL) |
| Return a pointer to the first BeamSR with specified beamID. | |
| virtual DtActiveSonarBeamRepository * | addBeam (DtU8 beamId=0, DtSonarBeamRetCode *retcode=NULL) |
| Add/remove a new emitter beam within this system. | |
| virtual DtSonarBeamRetCode | removeBeam (DtU8 beamId) |
| removes an emitter beam, if there are duplicate beams it will remove the first beam with the given beamID. | |
| virtual int | numBeams () const |
| Returns number of beams. | |
| virtual const DtList * | beamList () const |
| Returns DtList of DtEmitterBeamStateRepositories. | |
| virtual DtList * | beamList () |
| bool | isMember (DtActiveSonarBeamRepository *bsr) const |
| Returns true if the give BSR is in this ESR's list of BSRs. | |
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 void | setEventIdentifier (const DtEventId &val) |
| Set the EventIdentifier. | |
| 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 void | setEntityId (const DtEntityIdentifier &id) |
| Set the entity identifier. | |
| virtual const DtEntityIdentifier & | entityId () const |
| Get the entity identifier. | |
| virtual void | setHostId (const DtGlobalObjectDesignator &id) |
| Set the host 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 | |
| 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) |
| Get/Set records. | |
| 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 |
Static Public Member Functions | |
| static DtActiveSonarStateRepository * | create () |
| Create a DtActiveSonarStateRepository. | |
| static DtBeamStateRepCreator | setStateRepCreator (DtBeamStateRepCreator creator) |
| Give us a function to be used for creating Beam SRs. | |
Protected Member Functions | |
| virtual void | purgeBeamList () |
Protected Attributes | |
| DtUnderwaterAcousticSystemName | myAcousticName |
| DtUnderwaterAcousticFunction | myFunctionCode |
| DtU8 | myAcousticsIdentifier |
| DtList | myBeamList |
| List of beams in this system. | |
Protected Attributes inherited from DtUnderwaterAcousticsEmissionRepository | |
| DtEventId | myEventIdentifier |
Protected Attributes inherited from DtEmbeddedSystemRepository | |
| DtEntityIdentifier | myEntityId |
| DtVector | myRelativePosition |
Protected Attributes inherited from DtStateRepository | |
| DtGlobalObjectDesignator | myGlobalId |
| DtSimulationAddress | myDefaultSimulationAddress |
| std::map< DtSimulationAddress, std::vector < DtStandardVariableRecord * > > | myRecordsMap |
Static Protected Attributes | |
| static DtBeamStateRepCreator | theBeamStateRepCreator |
class DtActiveSonarStateRepository
Instances of DtActiveSonarStateRepository are used to store state data for EmbeddedSystem.UnderwaterAcousticsEmission.ActiveSonar objects.
| typedef DtActiveSonarBeamRepository*(* DtActiveSonarStateRepository::DtBeamStateRepCreator)() |
Function prototype for functions that create Beam State Repositories.
| DtActiveSonarStateRepository::DtActiveSonarStateRepository | ( | ) |
Constructor.
|
virtual |
Destructor.
| DtActiveSonarStateRepository::DtActiveSonarStateRepository | ( | const DtActiveSonarStateRepository & | orig | ) |
Copy Constructor.
|
virtual |
Get the AcousticName.
|
virtual |
Get the AcousticsIdentifier.
|
virtual |
Add/remove a new emitter beam within this system.
If you add a beam with duplicate ID, retcode will be set to DtDuplicateSonarBeamId, and beamSRById will return the first beamSR with the given ID.
|
virtual |
Returns DtList of DtEmitterBeamStateRepositories.
|
virtual |
|
virtual |
Return a pointer to the first BeamSR with specified beamID.
|
virtual |
Return a copy/empty object of the same type as this.
Reimplemented from DtUnderwaterAcousticsEmissionRepository.
|
static |
Create a DtActiveSonarStateRepository.
Reimplemented from DtUnderwaterAcousticsEmissionRepository.
|
virtual |
Get the FunctionCode.
| bool DtActiveSonarStateRepository::isMember | ( | DtActiveSonarBeamRepository * | bsr | ) | const |
Returns true if the give BSR is in this ESR's list of BSRs.
|
virtual |
Returns number of beams.
| DtActiveSonarStateRepository& DtActiveSonarStateRepository::operator= | ( | const DtActiveSonarStateRepository & | orig | ) |
Assignment Operator.
|
virtual |
Print data to the DtInfo stream.
Reimplemented from DtUnderwaterAcousticsEmissionRepository.
|
virtual |
Print data to the specified stream.
Reimplemented from DtUnderwaterAcousticsEmissionRepository.
|
protectedvirtual |
|
virtual |
removes an emitter beam, if there are duplicate beams it will remove the first beam with the given beamID.
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 removeBeam which takes a GlobalId
|
virtual |
Set the AcousticName.
|
virtual |
Set the AcousticsIdentifier.
|
virtual |
Set the FunctionCode.
|
static |
Give us a function to be used for creating Beam SRs.
|
protected |
|
protected |
|
protected |
List of beams in this system.
|
protected |
|
staticprotected |