|
WSF
|
#include <WsfBMAssignmentStatusMessage.hpp>


Public Member Functions | |
| WsfBMAssignmentStatusMessage (std::weak_ptr< il::logger::GlobalLogger > aGlobalLogger) | |
| WsfBMAssignmentStatusMessage (WsfPlatform *plat) | |
| WsfBMAssignmentStatusMessage (WsfPlatform *plat, const std::shared_ptr< il::baseMessage > &message) | |
| WsfBMAssignmentStatusMessage (const WsfBMAssignmentStatusMessage &aSrc) | |
| virtual | ~WsfBMAssignmentStatusMessage () |
| WsfBMAssignmentStatusMessage * | Clone () const override |
| const char * | GetScriptClassName () const override |
| void | SetAckTime (const double sim_time_s) |
| double | GetAckTime () const |
| bool | StatusTimeExists (const il::assignmentACKMessage::eAssignmentStatus status) const |
| double | GetStatusTime (const il::assignmentACKMessage::eAssignmentStatus status) const |
| void | SetAssignmentReferenceTrackID (const WsfTrackId &track_id) |
| WsfTrackId | GetAssignmentReferenceTrackID () const |
| void | SetAssignedWeapon (const WsfPlatform *plat, const WsfWeapon *weapon) |
| const WsfPlatform * | GetAssignedPlatform (WsfSimulation *sim_ptr) const |
| const WsfWeapon * | GetAssignedWeapon (WsfSimulation *sim_ptr) const |
| void | SetInitiatingPlatform (const WsfPlatform *plat) |
| const WsfPlatform * | GetInitiatingPlatform (WsfSimulation *sim_ptr) const |
| void | SetAssigningPlatform (const WsfPlatform *plat) |
| const WsfPlatform * | GetAssigningPlatform (WsfSimulation *sim_ptr) const |
| void | SetAssignmentStatus (const il::assignmentACKMessage::eAssignmentStatus status) |
| il::assignmentACKMessage::eAssignmentStatus | GetAssignmentStatus () const |
| void | SetSalvosFired (const int salvos_fired) |
| int | GetSalvosFired () const |
| void | SetCantcoReason (const std::string &reason) |
| std::string | GetCantcoReason () const |
| void | SetSystemicCantcoScope (const il::assignmentACKMessage::eSystemicCantcoScope scope) |
| bool | IsSystemicCantco () const |
| il::assignmentACKMessage::eSystemicCantcoScope | GetSystemicCantcoScope () const |
| void | SetOverridingPlatform (const WsfPlatform *plat) |
| const WsfPlatform * | GetOverridingPlatform (WsfSimulation *sim_ptr) const |
| void | SetNewlyAssignedWeapon (const WsfPlatform *plat, const WsfWeapon *weapon) |
| const WsfPlatform * | GetNewlyAssignedPlatform (WsfSimulation *sim_ptr) const |
| const WsfWeapon * | GetNewlyAssignedWeapon (WsfSimulation *sim_ptr) const |
| void | Print () const |
| std::shared_ptr< const il::assignmentACKMessage > | GetRawMessagePtr () const |
| 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 |
| Public Member Functions inherited from WsfBMManagedTypeWrapper< il::baseMessage > | |
| WsfBMManagedTypeWrapper (const std::string &script_class_name) | |
| virtual void | SetTable (std::shared_ptr< il::baseMessage > &data_to_wrap) |
| Public Member Functions inherited from WsfBMTypeWrapper< il::baseMessage, std::shared_ptr< il::baseMessage > > | |
| WsfBMTypeWrapper (const std::string &script_class_name) | |
| virtual tType | GetRawPtr () const |
| virtual bool | IsValidRef () const |
| Public Member Functions inherited from WsfObject | |
| WsfObject () | |
| This is the constructor for the WsfObject class. | |
| ~WsfObject () override | |
| This is the destructor for the WsfObject class. | |
| const char * | GetScriptClassName () const override |
| virtual bool | ProcessInput (UtInput &aInput) |
| const std::string & | GetType () const |
| WsfStringId | GetTypeId () const |
| Get the string ID of the 'type' of the object. | |
| void | SetType (WsfStringId aType) |
| const std::string & | GetBaseType () const |
| WsfStringId | GetBaseTypeId () const |
| const TypeList & | GetTypeList () const |
| bool | IsA_TypeOf (WsfStringId aType) const |
| WsfObject & | operator= (const WsfObject &aRhs) |
| Assignment operator. | |
| template<typename T> | |
| void | Serialize (T &aBuff) |
| For XIO (de)serialization. | |
| const std::string & | GetName () const |
| WsfStringId | GetNameId () const |
| void | SetName (WsfStringId aName) |
Static Public Member Functions | |
| static WsfStringId | GetTypeId () |
| Static Public Member Functions inherited from WsfMessage | |
| static WsfStringId | GetTypeId () |
Additional Inherited Members | |
| Public Types inherited from WsfBMTypeWrapper< il::baseMessage, std::shared_ptr< il::baseMessage > > | |
| typedef std::shared_ptr< il::baseMessage > | tType |
| Public Types inherited from WsfObject | |
| typedef std::vector< WsfStringId > | TypeList |
| The list of types returned by GetTypeList. | |
| 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 | |
| WsfObject (const WsfObject &aSrc) | |
| Copy constructor (for Clone()). | |
| Protected Attributes inherited from WsfBMTypeWrapper< il::baseMessage, std::shared_ptr< il::baseMessage > > | |
| std::string | m_script_class_name |
| std::shared_ptr< il::baseMessage > | m_wrapped_ptr |
| WsfBMAssignmentStatusMessage::WsfBMAssignmentStatusMessage | ( | std::weak_ptr< il::logger::GlobalLogger > | aGlobalLogger | ) |
References GetTypeId(), WsfBMAssignmentStatusMessage(), WsfBMManagedTypeWrapper< il::baseMessage >::WsfBMManagedTypeWrapper(), and WsfMessage::WsfMessage().
Referenced by Clone(), WsfBMAssignmentStatusMessage(), WsfBMAssignmentStatusMessage(), WsfBMAssignmentStatusMessage(), and WsfBMAssignmentStatusMessage().
| WsfBMAssignmentStatusMessage::WsfBMAssignmentStatusMessage | ( | WsfPlatform * | plat | ) |
| WsfBMAssignmentStatusMessage::WsfBMAssignmentStatusMessage | ( | WsfPlatform * | plat, |
| const std::shared_ptr< il::baseMessage > & | message ) |
| WsfBMAssignmentStatusMessage::WsfBMAssignmentStatusMessage | ( | const WsfBMAssignmentStatusMessage & | aSrc | ) |
|
virtual |
|
overridevirtual |
Clone this object by creating an identical copy and returning a pointer to it.
Reimplemented from WsfMessage.
References WsfBMAssignmentStatusMessage().
| double WsfBMAssignmentStatusMessage::GetAckTime | ( | ) | const |
References GetRawMessagePtr().
| const WsfPlatform * WsfBMAssignmentStatusMessage::GetAssignedPlatform | ( | WsfSimulation * | sim_ptr | ) | const |
References WsfBMUtils::GetAssignedPlatformFromAssignedIDRecord(), and GetRawMessagePtr().
Referenced by WsfDefaultAssetManagerImpl::on_message().
| const WsfWeapon * WsfBMAssignmentStatusMessage::GetAssignedWeapon | ( | WsfSimulation * | sim_ptr | ) | const |
References WsfBMUtils::GetAssignedWeaponFromAssignedIDRecord(), and GetRawMessagePtr().
| const WsfPlatform * WsfBMAssignmentStatusMessage::GetAssigningPlatform | ( | WsfSimulation * | sim_ptr | ) | const |
References WsfBMUtils::GetPlatformFromUnitIDRecord(), and GetRawMessagePtr().
| WsfTrackId WsfBMAssignmentStatusMessage::GetAssignmentReferenceTrackID | ( | ) | const |
References WsfBMUtils::ConvertTrackId(), and GetRawMessagePtr().
| il::assignmentACKMessage::eAssignmentStatus WsfBMAssignmentStatusMessage::GetAssignmentStatus | ( | ) | const |
References GetRawMessagePtr().
| std::string WsfBMAssignmentStatusMessage::GetCantcoReason | ( | ) | const |
References GetRawMessagePtr().
| const WsfPlatform * WsfBMAssignmentStatusMessage::GetInitiatingPlatform | ( | WsfSimulation * | sim_ptr | ) | const |
References WsfBMUtils::GetPlatformFromUnitIDRecord(), and GetRawMessagePtr().
| const WsfPlatform * WsfBMAssignmentStatusMessage::GetNewlyAssignedPlatform | ( | WsfSimulation * | sim_ptr | ) | const |
References WsfBMUtils::GetAssignedPlatformFromAssignedIDRecord(), and GetRawMessagePtr().
| const WsfWeapon * WsfBMAssignmentStatusMessage::GetNewlyAssignedWeapon | ( | WsfSimulation * | sim_ptr | ) | const |
References WsfBMUtils::GetAssignedWeaponFromAssignedIDRecord(), and GetRawMessagePtr().
| const WsfPlatform * WsfBMAssignmentStatusMessage::GetOverridingPlatform | ( | WsfSimulation * | sim_ptr | ) | const |
References WsfBMUtils::GetPlatformFromUnitIDRecord(), and GetRawMessagePtr().
|
inline |
References WsfBMTypeWrapper< il::baseMessage, std::shared_ptr< il::baseMessage > >::m_wrapped_ptr.
Referenced by GetAckTime(), GetAssignedPlatform(), GetAssignedWeapon(), GetAssigningPlatform(), GetAssignmentReferenceTrackID(), GetAssignmentStatus(), GetCantcoReason(), GetInitiatingPlatform(), GetNewlyAssignedPlatform(), GetNewlyAssignedWeapon(), GetOverridingPlatform(), GetSalvosFired(), GetStatusTime(), GetSystemicCantcoScope(), IsSystemicCantco(), Print(), StatusTimeExists(), UT_DEFINE_SCRIPT_METHOD(), and WsfBMAssignmentStatusMessage().
| int WsfBMAssignmentStatusMessage::GetSalvosFired | ( | ) | const |
References GetRawMessagePtr().
|
overridevirtual |
Reimplemented from WsfBMTypeWrapper< il::baseMessage, std::shared_ptr< il::baseMessage > >.
References WsfScriptBMAssignmentStatusClass::SCRIPT_CLASS_NAME.
| double WsfBMAssignmentStatusMessage::GetStatusTime | ( | const il::assignmentACKMessage::eAssignmentStatus | status | ) | const |
References GetRawMessagePtr().
| il::assignmentACKMessage::eSystemicCantcoScope WsfBMAssignmentStatusMessage::GetSystemicCantcoScope | ( | ) | const |
|
static |
| bool WsfBMAssignmentStatusMessage::IsSystemicCantco | ( | ) | const |
References GetRawMessagePtr().
| void WsfBMAssignmentStatusMessage::Print | ( | ) | const |
References GetRawMessagePtr().
| void WsfBMAssignmentStatusMessage::SetAckTime | ( | const double | sim_time_s | ) |
Referenced by UT_DEFINE_SCRIPT_METHOD().
| void WsfBMAssignmentStatusMessage::SetAssignedWeapon | ( | const WsfPlatform * | plat, |
| const WsfWeapon * | weapon ) |
References WsfBMUtils::GetAssignedIDRecord().
| void WsfBMAssignmentStatusMessage::SetAssigningPlatform | ( | const WsfPlatform * | plat | ) |
References WsfBMUtils::GetUnitIDRecordFromPlatform().
| void WsfBMAssignmentStatusMessage::SetAssignmentReferenceTrackID | ( | const WsfTrackId & | track_id | ) |
References WsfBMUtils::ConvertTrackId().
| void WsfBMAssignmentStatusMessage::SetAssignmentStatus | ( | const il::assignmentACKMessage::eAssignmentStatus | status | ) |
| void WsfBMAssignmentStatusMessage::SetCantcoReason | ( | const std::string & | reason | ) |
| void WsfBMAssignmentStatusMessage::SetInitiatingPlatform | ( | const WsfPlatform * | plat | ) |
References WsfBMUtils::GetUnitIDRecordFromPlatform().
| void WsfBMAssignmentStatusMessage::SetNewlyAssignedWeapon | ( | const WsfPlatform * | plat, |
| const WsfWeapon * | weapon ) |
References WsfBMUtils::GetAssignedIDRecord().
| void WsfBMAssignmentStatusMessage::SetOverridingPlatform | ( | const WsfPlatform * | plat | ) |
References WsfBMUtils::GetUnitIDRecordFromPlatform().
| void WsfBMAssignmentStatusMessage::SetSalvosFired | ( | const int | salvos_fired | ) |
| void WsfBMAssignmentStatusMessage::SetSystemicCantcoScope | ( | const il::assignmentACKMessage::eSystemicCantcoScope | scope | ) |
| bool WsfBMAssignmentStatusMessage::StatusTimeExists | ( | const il::assignmentACKMessage::eAssignmentStatus | status | ) | const |
References GetRawMessagePtr().