|
WSF
|
#include <WsfAssociationMessage.hpp>


Public Member Functions | |
| WsfAssociationMessage () | |
| Constructor, for XIO (de)serialization. | |
| WsfAssociationMessage (WsfPlatform *aPlatformPtr) | |
| WsfAssociationMessage (WsfSensor *aSensorPtr) | |
| WsfMessage * | Clone () const override |
| const char * | GetScriptClassName () const override |
| 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) |
| virtual bool | CanBeReplacedBy (const WsfMessage &aMessage) const |
| 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 | |
| virtual WsfStringId | GetComponentNameId () const |
| virtual WsfStringId | GetComponentTypeId () const |
| virtual WsfStringId | GetComponentModeId () const |
| 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 () |
Associated Track ID methods. | |
The 'associated ID' is the track ID that is being associated with the subject track. | |
| size_t | mSensorPlatformIndex |
| The index of the platform on which the producing sensor is located. | |
| WsfStringId | mSensorName |
| The name of the producing sensor. | |
| WsfTrackId | mSubjectId |
| The ID of the track to which the associated track applies. | |
| WsfTrackId | mAssociatedId |
| The ID of the track that is associated with the subject track ID. | |
| WsfTrackId | GetAssociatedId () const |
| Get the associated track ID. | |
| void | SetAssociatedId (const WsfTrackId &aAssociatedId) |
| Set the associated track ID. | |
| template<typename T> | |
| void | Serialize (T &aBuff) |
| For XIO (de)serialization. | |
Producing sensor methods. | |
These methods can be used to retrieve information about the producing sensor. | |
| WsfPlatform * | GetSensorPlatform () const |
| size_t | GetSensorPlatformIndex () const |
| Return the index of the platform on which the producing sensor is located. | |
| void | SetSensorPlatformIndex (size_t aPlatformIndex) |
| Set the index of the platform on which the producing sensor is located. | |
| WsfStringId | GetSensorName () const |
| Return the name of the producing sensor. | |
| void | SetSensorName (WsfStringId aSensorName) |
| Set the name of the producing sensor. | |
Subject Track ID methods. | |
The 'subject ID' is the ID of the track to which the associated track is being associated. | |
| WsfTrackId | GetSubjectId () const |
| Get the subject track ID. | |
| void | SetSubjectId (const WsfTrackId &aSubjectId) |
| Set the subject track ID. | |
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 'association message' associates a track produced by a sensor with a tracking request.
A request can be made to a sensor attempt to establish a track on an object using a cue that is itself a track (WsfSensor::StartTracking). When the sensor acquires the target(s), it will generate tracks. This message is issued by the sensor to indicate that a given sensor track is associated with a particular request.
In the typical case, the 'subject track ID' is the ID of the track that was provided to WsfSensor::StartTracking and the 'associated track ID' is the ID of the track that is being produced by the sensor in response to the request.
| WsfAssociationMessage::WsfAssociationMessage | ( | ) |
Constructor, for XIO (de)serialization.
References GetTypeId(), mAssociatedId, mSensorName, mSensorPlatformIndex, mSubjectId, and WsfMessage::WsfMessage().
Referenced by Clone().
| WsfAssociationMessage::WsfAssociationMessage | ( | WsfPlatform * | aPlatformPtr | ) |
Constructor (Create an Association Message).
| aPlatformPtr | The sender of the message. |
References GetTypeId(), mAssociatedId, mSensorName, mSensorPlatformIndex, mSubjectId, and WsfMessage::WsfMessage().
| WsfAssociationMessage::WsfAssociationMessage | ( | WsfSensor * | aSensorPtr | ) |
Constructor (Create an Association Message).
| aSensorPtr | The sensor that is producing the subject track. |
References GetTypeId(), mAssociatedId, mSensorName, mSensorPlatformIndex, mSubjectId, and WsfMessage::WsfMessage().
|
overridevirtual |
Create a clone of this message (the 'virtual copy constructor').
Reimplemented from WsfMessage.
References WsfAssociationMessage(), and WsfMessage::WsfMessage().
|
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().
|
inline |
Get the associated track ID.
References mAssociatedId.
Referenced by WsfTaskManager::ProcessAssociationMessage().
|
override |
|
inline |
Return the name of the producing sensor.
References mSensorName.
Referenced by WsfTaskManager::ProcessAssociationMessage().
| WsfPlatform * WsfAssociationMessage::GetSensorPlatform | ( | ) | const |
Return the pointer to the sensing platform.
References WsfSimulation::GetPlatformByIndex(), WsfMessage::GetSimulation(), and mSensorPlatformIndex.
|
inline |
Return the index of the platform on which the producing sensor is located.
References mSensorPlatformIndex.
Referenced by WsfXIO_AutoDisMapping::TranslateAssociationMessage().
|
inline |
Get the subject track ID.
References mSubjectId.
Referenced by WsfTaskManager::ProcessAssociationMessage().
|
static |
Get the type ID associated with this message.
Referenced by WsfXIO_MessageService::HandleMessage(), WsfXIO_AutoDisMapping::Initialize(), WsfAssociationMessage(), WsfAssociationMessage(), and WsfAssociationMessage().
|
inline |
For XIO (de)serialization.
References mAssociatedId, mSensorName, mSensorPlatformIndex, mSubjectId, and WsfMessage::Serialize().
|
inline |
Set the associated track ID.
References mAssociatedId.
Referenced by WsfDefaultSensorTracker::TargetDetected().
|
inline |
Set the name of the producing sensor.
References mSensorName.
|
inline |
Set the index of the platform on which the producing sensor is located.
References mSensorPlatformIndex.
Referenced by WsfXIO_AutoDisMapping::TranslateAssociationMessage().
|
inline |
Set the subject track ID.
References mSubjectId.
Referenced by WsfDefaultSensorTracker::TargetDetected().
|
protected |
The ID of the track that is associated with the subject track ID.
Referenced by GetAssociatedId(), Serialize(), SetAssociatedId(), WsfAssociationMessage(), WsfAssociationMessage(), and WsfAssociationMessage().
|
protected |
The name of the producing sensor.
Referenced by GetSensorName(), Serialize(), SetSensorName(), WsfAssociationMessage(), WsfAssociationMessage(), and WsfAssociationMessage().
|
protected |
The index of the platform on which the producing sensor is located.
Referenced by GetSensorPlatform(), GetSensorPlatformIndex(), Serialize(), SetSensorPlatformIndex(), WsfAssociationMessage(), WsfAssociationMessage(), and WsfAssociationMessage().
|
protected |
The ID of the track to which the associated track applies.
Referenced by GetSubjectId(), Serialize(), SetSubjectId(), WsfAssociationMessage(), WsfAssociationMessage(), and WsfAssociationMessage().