WSF
WsfBMUtils Class Reference

#include <WsfBMUtils.hpp>

Inheritance diagram for WsfBMUtils:
Collaboration diagram for WsfBMUtils:

Public Member Functions

WsfBMUtilsClone () const override
const char * GetScriptClassName () const override
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 TypeListGetTypeList () const
bool IsA_TypeOf (WsfStringId aType) const
WsfObjectoperator= (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 int GetStringId (const std::string &str_Value)
static std::string GetStringFromId (const int stringid)
static bool IsTypeUnknown (const std::string &type_str)
static bool IsSubtypeUnknown (const std::string &subtype_str)
static bool IsTypeAny (const std::string &type_str)
static bool IsSubtypeAny (const std::string &subtype_str)
static int GetUnknownType ()
static int GetUnknownSubtype ()
static int GetType (const std::string &type_str)
static int GetSubType (const std::string &subtype_str)
static std::string GetSpatialDomain (const WsfPlatform *platform)
static WsfTrackId ConvertTrackId (const il::idRecord &il_record)
static il::idRecord ConvertTrackId (const WsfTrackId &track_id)
static il::idRecord ConvertTrackId (const int owning_plat_string_id, const int tan)
static std::size_t GetTracksUpdated (const WsfAssetManager *am_proc, double sim_time, std::vector< WsfLocalTrack * > &tracks)
static bool IsTrackGeneratedByLocalSensor (WsfPlatform *relative_to_platform, const WsfTrackId &track_id, il::SensorEnum reporting_sensor_type)
static WsfPlatformGetMessageDestination (WsfSimulation *sim_ptr, const std::shared_ptr< const il::baseMessage > &message)
static int GetUnitIDFromPlatform (const WsfPlatform *platform)
static il::idRecord GetUnitIDRecordFromPlatform (const WsfPlatform *platform)
static il::idRecord GetUnitIDRecordFromPlatformIndex (WsfSimulation *sim_ptr, const int plat_idx)
static WsfPlatformGetPlatformFromUnitID (WsfSimulation *sim_ptr, const int id)
static WsfPlatformGetPlatformFromUnitIDRecord (WsfSimulation *sim_ptr, const il::idRecord &id)
static bool ArePlatformsPeers (const WsfPlatform *plat1, const WsfPlatform *plat2)
static bool IsDirectCommander (const WsfPlatform *test_cmdr, const WsfPlatform *against_plat, const std::string &opt_cmd_chain_name="")
static WsfPlatformGetCommander (const WsfPlatform *from, const std::string &opt_cmd_chain_name="")
static WsfPlatformGetTopMostCommander (const WsfPlatform *from, const std::string &opt_cmd_chain_name="")
static bool BelievedAlive (WsfSimulation *sim, const WsfLocalTrack *track)
static bool ConfirmedDead (WsfSimulation *sim, const WsfLocalTrack *track)
static il::idRecord GetAssignedIDRecord (WsfSimulation *sim_ptr, const int plat_idx, const int wpn_idx)
static il::idRecord GetAssignedIDRecord (const WsfPlatform *plat, const WsfWeapon *weapon)
static WsfPlatformGetAssignedPlatformFromAssignedIDRecord (WsfSimulation *sim_ptr, const il::idRecord &assigned_id)
static WsfWeaponGetAssignedWeaponFromAssignedIDRecord (WsfSimulation *sim_ptr, const il::idRecord &assigned_id)
static WsfWeaponGetWeapon (const WsfPlatform *platform, const std::string &weapon_name)
static il::idRecord GetWeaponID (const WsfPlatform *platform, const std::string &weapon_name)
static il::idRecord GetWeaponID (const WsfPlatform *platform, const WsfWeapon *weapon)
static il::idRecord GetWeaponID (WsfSimulation *sim_ptr, const int plat_idx, const int wpn_idx)
static bool IsWeaponIDValid (const int id)
static WsfSensorGetSensor (const WsfPlatform *platform, const std::string &sensor_name)
static WsfSensorGetSensor (const WsfPlatform *platform, const int sensor_id)
static int GetSensorID (WsfPlatform *platform, const std::string &sensor_name)
static il::idRecord GetSensorID (const WsfPlatform *platform, const WsfSensor *sensor)
static il::idRecord GetSensorID (WsfSimulation *sim_ptr, const int plat_idx, const int snsr_idx)
static il::SensorEnum GetSensorType (const WsfSensor &sensor)
static il::SensorEnum GetTrackSensorType (WsfSimulation *sim, const WsfLocalTrack *track)
static il::SensorEnum GetTrackSensorType (WsfSimulation *sim, const WsfLocalTrack *track, std::set< WsfTrackId > &oldTracks)
static std::vector< const WsfTrack * > GetOriginalTracks (WsfSimulation *sim, const WsfLocalTrack *track)
static void GetOriginalTracks (WsfSimulation *sim, const WsfLocalTrack *track, std::set< WsfTrackId > &tested_tracks, std::vector< const WsfTrack * > &original_tracks)
static il::SensorEnum GetRawTrackSensorType (WsfSimulation *sim, const WsfPlatform *platform, const WsfTrack *raw_track)
static void SetAssignmentStatusFromAuxDataString (WsfBMAssignmentStatusMessage *assignment_status, const std::string &status_string)
static std::string AssignmentStatusToAuxDataString (const WsfBMAssignmentStatusMessage *assignment_status)
static bool IsAssignedBy (const WsfPlatform *plat, const WsfBMAssignmentMessage &message)
static WsfLocalTrackFindCorrelatedTrack (WsfTrackManager *trk_mgr, const WsfTrackId *aRawTrackId)
static std::shared_ptr< il::AssetManagerInterface > FindAttachedAssetManagerRef (const WsfPlatform *platform, const bool log_errors=true)
static std::shared_ptr< il::BattleManagerInterface > FindAttachedBattleManagerRef (const WsfPlatform *platform, const bool log_errors=true)
static std::shared_ptr< il::DisseminateC2Interface > FindAttachedDisseminationManagerRef (const WsfPlatform *platform, const bool log_errors=true)
static std::shared_ptr< il::SensorsManagerInterface > FindAttachedSensorsManagerRef (const WsfPlatform *platform, const bool log_errors=true)
static std::shared_ptr< il::WeaponsManagerInterface > FindAttachedWeaponsManagerRef (const WsfPlatform *platform, const bool log_errors=true)
static WsfAssetManagerFindAttachedAssetManagerRef2 (const WsfPlatform *platform, const bool log_errors=false)
static WsfBattleManagerFindAttachedBattleManagerRef2 (const WsfPlatform *platform, const bool log_errors=false)
static WsfBMDisseminateC2FindAttachedDisseminationManagerRef2 (const WsfPlatform *platform, const bool log_errors=false)
static WsfBMSensorsManagerFindAttachedSensorsManagerRef2 (const WsfPlatform *platform, const bool log_errors=false)
static WsfBMWeaponsManagerFindAttachedWeaponsManagerRef2 (const WsfPlatform *platform, const bool log_errors=false)
static bool AuxDataExists (const WsfPlatform *platform, const std::string &attrib_name)
static bool AuxDataExists (const WsfWeapon *weapon, const std::string &attrib_name)
static bool AuxDataExists (const WsfTrack *track, const std::string &attrib_name)
static bool AuxDataExists (const WsfMessage &message, const std::string &attrib_name)
static double GetHeading (const WsfTrack *track)
static bool HeadingValid (const WsfTrack *track)
static WsfPlatformGetTarget (WsfSimulation *sim_ptr, const WsfTrack *track)
static WsfBMTrackMessage ConvertTrack (WsfSimulation *aSimPtr, const WsfLocalTrack *aTrackPtr, const bool aLogWarnings=true)
static UtVec3d GetOrientationWCS (const double sim_time_s, WsfPlatform *plat)
static int GetPlatformMaxAssignments (const WsfPlatform *plat)
static int GetPlatformNumAssignments (const WsfPlatform *plat)
static double GetPlatformNumAssignmentDelay (const WsfPlatform *plat)

Additional Inherited Members

Public Types inherited from WsfObject
typedef std::vector< WsfStringIdTypeList
 The list of types returned by GetTypeList.
 WsfObject (const WsfObject &aSrc)
 Copy constructor (for Clone()).

Member Function Documentation

◆ ArePlatformsPeers()

bool WsfBMUtils::ArePlatformsPeers ( const WsfPlatform * plat1,
const WsfPlatform * plat2 )
static

◆ AssignmentStatusToAuxDataString()

◆ AuxDataExists() [1/4]

bool WsfBMUtils::AuxDataExists ( const WsfMessage & message,
const std::string & attrib_name )
static

◆ AuxDataExists() [2/4]

bool WsfBMUtils::AuxDataExists ( const WsfPlatform * platform,
const std::string & attrib_name )
static

◆ AuxDataExists() [3/4]

bool WsfBMUtils::AuxDataExists ( const WsfTrack * track,
const std::string & attrib_name )
static

◆ AuxDataExists() [4/4]

bool WsfBMUtils::AuxDataExists ( const WsfWeapon * weapon,
const std::string & attrib_name )
static

◆ BelievedAlive()

◆ Clone()

WsfBMUtils * WsfBMUtils::Clone ( ) const
overridevirtual

Return a copy of this object. Must be implemented by all derived types. If cloning is impossible, a WsfUncloneableException should be thrown.

Implements WsfObject.

◆ ConfirmedDead()

◆ ConvertTrack()

◆ ConvertTrackId() [1/3]

◆ ConvertTrackId() [2/3]

il::idRecord WsfBMUtils::ConvertTrackId ( const int owning_plat_string_id,
const int tan )
static

References GetStringFromId().

◆ ConvertTrackId() [3/3]

il::idRecord WsfBMUtils::ConvertTrackId ( const WsfTrackId & track_id)
static

◆ FindAttachedAssetManagerRef()

std::shared_ptr< il::AssetManagerInterface > WsfBMUtils::FindAttachedAssetManagerRef ( const WsfPlatform * platform,
const bool log_errors = true )
static

◆ FindAttachedAssetManagerRef2()

◆ FindAttachedBattleManagerRef()

std::shared_ptr< il::BattleManagerInterface > WsfBMUtils::FindAttachedBattleManagerRef ( const WsfPlatform * platform,
const bool log_errors = true )
static

◆ FindAttachedBattleManagerRef2()

WsfBattleManager * WsfBMUtils::FindAttachedBattleManagerRef2 ( const WsfPlatform * platform,
const bool log_errors = false )
static

◆ FindAttachedDisseminationManagerRef()

std::shared_ptr< il::DisseminateC2Interface > WsfBMUtils::FindAttachedDisseminationManagerRef ( const WsfPlatform * platform,
const bool log_errors = true )
static

◆ FindAttachedDisseminationManagerRef2()

WsfBMDisseminateC2 * WsfBMUtils::FindAttachedDisseminationManagerRef2 ( const WsfPlatform * platform,
const bool log_errors = false )
static

◆ FindAttachedSensorsManagerRef()

std::shared_ptr< il::SensorsManagerInterface > WsfBMUtils::FindAttachedSensorsManagerRef ( const WsfPlatform * platform,
const bool log_errors = true )
static

◆ FindAttachedSensorsManagerRef2()

WsfBMSensorsManager * WsfBMUtils::FindAttachedSensorsManagerRef2 ( const WsfPlatform * platform,
const bool log_errors = false )
static

◆ FindAttachedWeaponsManagerRef()

std::shared_ptr< il::WeaponsManagerInterface > WsfBMUtils::FindAttachedWeaponsManagerRef ( const WsfPlatform * platform,
const bool log_errors = true )
static

◆ FindAttachedWeaponsManagerRef2()

WsfBMWeaponsManager * WsfBMUtils::FindAttachedWeaponsManagerRef2 ( const WsfPlatform * platform,
const bool log_errors = false )
static

◆ FindCorrelatedTrack()

◆ GetAssignedIDRecord() [1/2]

il::idRecord WsfBMUtils::GetAssignedIDRecord ( const WsfPlatform * plat,
const WsfWeapon * weapon )
static

◆ GetAssignedIDRecord() [2/2]

◆ GetAssignedPlatformFromAssignedIDRecord()

◆ GetAssignedWeaponFromAssignedIDRecord()

◆ GetCommander()

WsfPlatform * WsfBMUtils::GetCommander ( const WsfPlatform * from,
const std::string & opt_cmd_chain_name = "" )
static

◆ GetHeading()

double WsfBMUtils::GetHeading ( const WsfTrack * track)
static

◆ GetMessageDestination()

WsfPlatform * WsfBMUtils::GetMessageDestination ( WsfSimulation * sim_ptr,
const std::shared_ptr< const il::baseMessage > & message )
static

◆ GetOrientationWCS()

UtVec3d WsfBMUtils::GetOrientationWCS ( const double sim_time_s,
WsfPlatform * plat )
static

◆ GetOriginalTracks() [1/2]

std::vector< const WsfTrack * > WsfBMUtils::GetOriginalTracks ( WsfSimulation * sim,
const WsfLocalTrack * track )
static

◆ GetOriginalTracks() [2/2]

◆ GetPlatformFromUnitID()

WsfPlatform * WsfBMUtils::GetPlatformFromUnitID ( WsfSimulation * sim_ptr,
const int id )
static

◆ GetPlatformFromUnitIDRecord()

◆ GetPlatformMaxAssignments()

int WsfBMUtils::GetPlatformMaxAssignments ( const WsfPlatform * plat)
static

◆ GetPlatformNumAssignmentDelay()

double WsfBMUtils::GetPlatformNumAssignmentDelay ( const WsfPlatform * plat)
static

◆ GetPlatformNumAssignments()

int WsfBMUtils::GetPlatformNumAssignments ( const WsfPlatform * plat)
static

◆ GetRawTrackSensorType()

il::SensorEnum WsfBMUtils::GetRawTrackSensorType ( WsfSimulation * sim,
const WsfPlatform * platform,
const WsfTrack * raw_track )
static

◆ GetScriptClassName()

const char * WsfBMUtils::GetScriptClassName ( ) const
inlineoverride

◆ GetSensor() [1/2]

WsfSensor * WsfBMUtils::GetSensor ( const WsfPlatform * platform,
const int sensor_id )
static

◆ GetSensor() [2/2]

◆ GetSensorID() [1/3]

il::idRecord WsfBMUtils::GetSensorID ( const WsfPlatform * platform,
const WsfSensor * sensor )
static

◆ GetSensorID() [2/3]

int WsfBMUtils::GetSensorID ( WsfPlatform * platform,
const std::string & sensor_name )
static

◆ GetSensorID() [3/3]

il::idRecord WsfBMUtils::GetSensorID ( WsfSimulation * sim_ptr,
const int plat_idx,
const int snsr_idx )
static

◆ GetSensorType()

◆ GetSpatialDomain()

◆ GetStringFromId()

std::string WsfBMUtils::GetStringFromId ( const int stringid)
static

◆ GetStringId()

◆ GetSubType()

◆ GetTarget()

WsfPlatform * WsfBMUtils::GetTarget ( WsfSimulation * sim_ptr,
const WsfTrack * track )
static

◆ GetTopMostCommander()

WsfPlatform * WsfBMUtils::GetTopMostCommander ( const WsfPlatform * from,
const std::string & opt_cmd_chain_name = "" )
static

References GetCommander().

◆ GetTrackSensorType() [1/2]

il::SensorEnum WsfBMUtils::GetTrackSensorType ( WsfSimulation * sim,
const WsfLocalTrack * track )
inlinestatic

◆ GetTrackSensorType() [2/2]

◆ GetTracksUpdated()

WsfBMUtils::GetTracksUpdated ( const WsfAssetManager * am_proc,
double sim_time,
std::vector< WsfLocalTrack * > & tracks )
static

References am_proc.

◆ GetType()

int WsfBMUtils::GetType ( const std::string & type_str)
static

◆ GetUnitIDFromPlatform()

int WsfBMUtils::GetUnitIDFromPlatform ( const WsfPlatform * platform)
static

◆ GetUnitIDRecordFromPlatform()

◆ GetUnitIDRecordFromPlatformIndex()

il::idRecord WsfBMUtils::GetUnitIDRecordFromPlatformIndex ( WsfSimulation * sim_ptr,
const int plat_idx )
static

◆ GetUnknownSubtype()

int WsfBMUtils::GetUnknownSubtype ( )
static

◆ GetUnknownType()

int WsfBMUtils::GetUnknownType ( )
static

◆ GetWeapon()

WsfWeapon * WsfBMUtils::GetWeapon ( const WsfPlatform * platform,
const std::string & weapon_name )
static

◆ GetWeaponID() [1/3]

il::idRecord WsfBMUtils::GetWeaponID ( const WsfPlatform * platform,
const std::string & weapon_name )
static

◆ GetWeaponID() [2/3]

il::idRecord WsfBMUtils::GetWeaponID ( const WsfPlatform * platform,
const WsfWeapon * weapon )
static

◆ GetWeaponID() [3/3]

il::idRecord WsfBMUtils::GetWeaponID ( WsfSimulation * sim_ptr,
const int plat_idx,
const int wpn_idx )
static

◆ HeadingValid()

bool WsfBMUtils::HeadingValid ( const WsfTrack * track)
static

◆ IsAssignedBy()

bool WsfBMUtils::IsAssignedBy ( const WsfPlatform * plat,
const WsfBMAssignmentMessage & message )
static

◆ IsDirectCommander()

bool WsfBMUtils::IsDirectCommander ( const WsfPlatform * test_cmdr,
const WsfPlatform * against_plat,
const std::string & opt_cmd_chain_name = "" )
static

◆ IsSubtypeAny()

bool WsfBMUtils::IsSubtypeAny ( const std::string & subtype_str)
static

◆ IsSubtypeUnknown()

bool WsfBMUtils::IsSubtypeUnknown ( const std::string & subtype_str)
static

References IsTypeUnknown().

◆ IsTrackGeneratedByLocalSensor()

bool WsfBMUtils::IsTrackGeneratedByLocalSensor ( WsfPlatform * relative_to_platform,
const WsfTrackId & track_id,
il::SensorEnum reporting_sensor_type )
static

◆ IsTypeAny()

bool WsfBMUtils::IsTypeAny ( const std::string & type_str)
static

◆ IsTypeUnknown()

bool WsfBMUtils::IsTypeUnknown ( const std::string & type_str)
static

Referenced by IsSubtypeUnknown().

◆ IsWeaponIDValid()

bool WsfBMUtils::IsWeaponIDValid ( const int id)
static

Referenced by UT_DEFINE_SCRIPT_METHOD().

◆ SetAssignmentStatusFromAuxDataString()

void WsfBMUtils::SetAssignmentStatusFromAuxDataString ( WsfBMAssignmentStatusMessage * assignment_status,
const std::string & status_string )
static

The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved