|
WSF
|
#include <WsfTrackMessage.hpp>


Public Member Functions | |
| WsfTrackMessage () | |
| Constructor, for XIO (de)serialization. | |
| WsfTrackMessage (WsfPlatform *aPlatformPtr) | |
| WsfTrackMessage (WsfPlatform *aPlatformPtr, const WsfTrack &aTrack) | |
| WsfTrackMessage (const WsfTrackMessage &) | |
| Copy constructor (for Clone()). | |
| WsfTrackMessage & | operator= (const WsfTrackMessage &)=delete |
| ~WsfTrackMessage () override | |
| WsfMessage * | Clone () const override |
| const char * | GetScriptClassName () const override |
| WsfTrack * | GetTrack () const |
| void | SetTrack (const WsfTrack &aTrack) |
| Public Member Functions inherited from WsfMessage | |
| WsfMessage (WsfStringId aType) | |
| Constructor for XIO (de)serialization. | |
| WsfMessage (WsfStringId aType, const wsf::comm::Address &aSrcAddr, WsfSimulation &aSimulation) | |
| WsfMessage (WsfPlatform *aPlatformPtr) | |
| WsfMessage (WsfStringId aType, WsfPlatform *aPlatformPtr) | |
| WsfMessage (WsfStringId aType, WsfStringId aSubType, WsfPlatform *aPlatformPtr) | |
| WsfMessage (WsfSimulation &aSimulation) | |
| WsfMessage & | operator= (const WsfMessage &aRhs)=default |
| ~WsfMessage () override | |
| const char * | GetScriptClassName () const override |
| WsfSimulation * | GetSimulation () const |
| Get the simulation that owns the message. | |
| void | SetSimulation (WsfSimulation *aSimulationPtr) |
| WsfStringId | GetOriginator () const |
| void | SetOriginator (WsfPlatform *aPlatformPtr) |
| Set the originator of this message. | |
| size_t | GetOriginatorIndex () const |
| int | GetSizeBits () const |
| void | SetSizeBits (int aSizeBits) |
| int | GetSizeBytes () const |
| void | SetSizeBytes (int aSizeBytes) |
| unsigned int | GetSerialNumber () const |
| void | SetSerialNumber (unsigned int aSerialNumber) |
| double | GetDataTag () const |
| void | SetDataTag (double aDataTag) |
| WsfStringId | GetStaticType () const |
| WsfStringId | GetType () const |
| void | SetType (WsfStringId aType) |
| WsfStringId | GetSubType () const |
| void | SetSubType (WsfStringId aSubType) |
| int | GetPriority () const |
| void | SetPriority (int aPriority) |
| const wsf::comm::Address & | GetSrcAddr () const |
| void | SetSrcAddr (const wsf::comm::Address &aSrcAddr) |
| const wsf::comm::Address & | GetDstAddr () const |
| void | SetDstAddr (const wsf::comm::Address &aDstAddr) |
| const wsf::comm::Address & | GetNextHopAddr () const |
| void | SetNextHopAddr (const wsf::comm::Address &aNextHopAddr) |
| WsfStringId | GetGroup () const |
| void | SetGroup (WsfStringId aGroup) const |
| void | PrintDataTagPrecise (std::ostream &aStream, std::streamsize aPrecision) const |
| template<typename T> | |
| void | Serialize (T &aBuff) |
| (De)serializer for XIO | |
| Public Member Functions inherited from WsfAuxDataEnabled | |
| WsfAuxDataEnabled ()=default | |
| WsfAuxDataEnabled (const WsfAuxDataEnabled &aSrc)=default | |
| WsfAuxDataEnabled & | operator= (const WsfAuxDataEnabled &aRhs) |
| WsfAuxDataEnabled (WsfAuxDataEnabled &&)=default | |
| WsfAuxDataEnabled & | operator= (WsfAuxDataEnabled &&)=default |
| virtual | ~WsfAuxDataEnabled () noexcept |
| void | SetAuxData (const WsfAttributeContainer &aAuxData) |
| void | DeleteAuxData () |
| Delete the aux data container from the object. | |
| void | MergeAuxData (const WsfAuxDataEnabled &aSrc) |
| Merge the object's aux data with aux data from an existing object. | |
| void | UpdateAuxData (const WsfAuxDataEnabled &aSrc) |
| Update the object's aux data with aux data from an existing object. | |
| bool | HasAuxData () const |
| Returns true if this object has aux data. | |
| bool | ProcessInput (UtInput &aInput) |
| template<typename T> | |
| void | Serialize (T &aBuff) |
| (De)serialization for XIO | |
| WsfAttributeContainer & | GetAuxData () |
| const WsfAttributeContainer & | GetAuxData () const noexcept |
| const WsfAttributeContainer & | GetAuxDataConst () const noexcept |
Static Public Member Functions | |
| static std::unique_ptr< UtScriptClass > | CreateScriptClass (const std::string &aClassName, UtScriptTypes *aScriptTypesPtr) |
| static WsfStringId | GetTypeId () |
| Static Public Member Functions inherited from WsfMessage | |
| static WsfStringId | GetTypeId () |
Helpers for WsfTrackProcessor. | |
These routines exists to help WsfTrackProcessor detect circular track updates. | |
| WsfStringId | GetSenderId () const |
| WsfStringId | GetReplyId () const |
| void | SetSenderId (WsfStringId aSenderId) |
| void | SetReplyId (WsfStringId aReplyId) |
| bool | CanBeReplacedBy (const WsfMessage &aMessage) const override |
| WsfStringId | GetComponentNameId () const override |
| WsfStringId | GetComponentTypeId () const override |
| WsfStringId | GetComponentModeId () const override |
| template<typename T> | |
| void | Serialize (T &aBuff) |
| For XIO (de)serialization. | |
Additional Inherited Members | |
| Static Public Attributes inherited from WsfMessage | |
| static constexpr size_t | cBITS_IN_BYTE = 8U |
| Static Public Attributes inherited from WsfAuxDataEnabled | |
| static UtCallbackListN< void(const WsfAuxDataEnabled *)> | AuxDataAccessed |
| static UtCallbackListN< void(const WsfAuxDataEnabled *)> | AuxDataDestroyed |
| WsfMessage (const WsfMessage &aSrc)=default | |
A specialization of WsfMessage that represents a track (WsfTrack) to be transmitted over a communications network.
| WsfTrackMessage::WsfTrackMessage | ( | ) |
Constructor, for XIO (de)serialization.
References GetTypeId(), and WsfMessage::WsfMessage().
Referenced by CanBeReplacedBy(), Clone(), operator=(), and WsfTrackMessage().
| WsfTrackMessage::WsfTrackMessage | ( | WsfPlatform * | aPlatformPtr | ) |
References GetTypeId(), and WsfMessage::WsfMessage().
| WsfTrackMessage::WsfTrackMessage | ( | WsfPlatform * | aPlatformPtr, |
| const WsfTrack & | aTrack ) |
References GetTypeId(), SetTrack(), and WsfMessage::WsfMessage().
| WsfTrackMessage::WsfTrackMessage | ( | const WsfTrackMessage & | aSrc | ) |
Copy constructor (for Clone()).
References WsfMessage::WsfMessage(), and WsfTrackMessage().
|
override |
|
overridevirtual |
Can this message be replaced by the new message.
This routine can be used by communications devices to determine if a message that is to be sent should replace a message is in the queue for transmission. For example, a new track update message should replace any queued track update message for the same track ID.
| aMessage | The new message. |
Reimplemented from WsfMessage.
References WsfTrack::GetTrackId(), WsfMessage::GetType(), GetTypeId(), WsfMessage::WsfMessage(), and WsfTrackMessage().
|
inlineoverridevirtual |
Clone this object by creating an identical copy and returning a pointer to it.
Reimplemented from WsfMessage.
References WsfMessage::WsfMessage(), and WsfTrackMessage().
|
static |
Create the 'class' object for the script system. This is invoked once by WsfScriptManager to create the 'class' object that defines the interface to instances of this class from the script system.
Referenced by WsfScriptManager::RegisterTypes().
|
overridevirtual |
Reimplemented from WsfMessage.
|
overridevirtual |
Reimplemented from WsfMessage.
|
overridevirtual |
Reimplemented from WsfMessage.
|
inline |
Referenced by WsfTrackProcessor::ProcessMessage().
|
override |
|
inline |
Referenced by WsfTrackProcessor::ProcessMessage().
|
inline |
Return the pointer to the track
Referenced by WsfCompositeSensor::ProcessMessage(), WsfCuedLaserWeapon::ProcessMessage(), WsfDirectionFinderProcessor::ProcessMessage(), WsfRF_Jammer::ProcessMessage(), WsfTrackProcessor::ProcessMessage(), WsfWeaponTrackProcessor::ProcessMessage(), WsfTrackProcessor::SendTrackP(), and WsfXIO_AutoDisMapping::TranslateTrackMessage().
|
static |
Get the message type ID for messages of this class.
Referenced by CanBeReplacedBy(), WsfXIO_MessageService::HandleMessage(), WsfXIO_AutoDisMapping::Initialize(), WsfDefaultAssetManagerImpl::on_message(), WsfCompositeSensor::ProcessMessage(), WsfCuedLaserWeapon::ProcessMessage(), WsfDirectionFinderProcessor::ProcessMessage(), WsfRF_Jammer::ProcessMessage(), WsfRIPRProcessor::ProcessMessage(), WsfTrackProcessor::ProcessMessage(), WsfUplinkProcessor::ProcessMessage(), WsfWeaponTrackProcessor::ProcessMessage(), WsfFusionCenter::ReceiveMessage(), WsfTrackMessage(), WsfTrackMessage(), and WsfTrackMessage().
|
delete |
References WsfTrackMessage().
|
inline |
For XIO (de)serialization.
References WsfMessage::Serialize().
|
inline |
Referenced by WsfTrackProcessor::SendTrackP().
|
inline |
Referenced by WsfTrackProcessor::SendTrackP().
| void WsfTrackMessage::SetTrack | ( | const WsfTrack & | aTrack | ) |
Sets the message's track.
| aTrack | The track that will be cloned and stored. |
References WsfTrack::Clone(), and WsfMessage::SetDataTag().
Referenced by WsfTrackMessage().