|
WSF
|
#include <WsfSA_Processor.hpp>


Classes | |
| struct | SA_EngagedTarget |
| struct | PerceiveData |
| struct | SA_AircraftKinematics |
| struct | SA_FuelSystemData |
| struct | SA_NavigationLatLon |
| struct | SA_NavigationDataSummary |
| struct | SA_FlightControlsDataSummary |
| struct | SA_WeaponNameQtyPair |
| struct | SA_WeaponEngagedTarget |
| struct | SA_WeaponsDataSummary |
| struct | SA_TrackEntryData |
| struct | SA_TrackManagerData |
Public Member Functions | |
| WsfSA_Processor (const WsfScenario &aScenario) | |
| WsfSA_Processor & | operator= (const WsfSA_Processor &)=delete |
| ~WsfSA_Processor () override | |
| WsfSA_Processor * | Clone () const override |
| bool | ProcessInput (UtInput &aInput) override |
| Process script input. | |
| bool | Initialize (double aSimTime) override |
| Initialize this processor. | |
| bool | Initialize2 (double aSimTime) override |
| Initialize2 this processor. | |
| void | Update (double aSimTime) override |
| Update this processor. | |
| void | HandleSA_ProcessorUpdates (double aSimTime) |
| This method is called by Update() at the base update rate to implement the twelve SA Processor update types. | |
| WsfSA_Perceive * | Perceive () const |
| Return a pointer to the WsfSA_Perceive module. | |
| WsfSA_Assess * | Assess () const |
| Return a pointer to the WsfSA_Assess module. | |
| WsfSA_Predict * | Predict () const |
| Return a pointer to the WsfSA_Predict module. | |
| const WsfSA_Processor::PerceiveData * | GetData () const |
| Return a const reference to the perceive data. | |
| WsfP6DOF_Mover * | GetP6DofMover () |
| Get the P6DOF mover for the platform. | |
| wsf::six_dof::Mover * | GetSixDOF_Mover () |
| Get the SixDOF mover for the platform. | |
| WsfBrawlerMover * | GetBrawlerMover () |
| Get the Brawler mover for the platform. | |
| WsfBrawlerFuel * | GetBrawlerFuel () |
| Get the BrawlerFuel for the platform. | |
| WsfAirMover * | GetAirMover () |
| Get the WsfAirMover for the platform. | |
| WsfFuel * | GetAirMoverFuel () |
| Get the WsfFuel for the platform. | |
| double | GetUpdateInterval (UpdateType aUpdateType) const |
| Get the update interval (sec) for the requested data type. | |
| double | GetStartupInterval (UpdateType aUpdateType) const |
| Get the startup interval (sec) parsed at startup for the requested data type. | |
| bool | SetUpdateInterval (UpdateType aUpdateType, double aUpdateInterval) |
| Set the update interval (sec) for the requested data type. | |
| void | ResetUpdateInterval (UpdateType aUpdateType) |
| Reset the update interval (sec) for the requested data type to the startup interval. | |
| double | GetLastUpdateTime (UpdateType aUpdateType) const |
| Get the last update time (sec) for the requested data type. | |
| bool | SetLastUpdateTime (UpdateType aUpdateType, double aSimTime) |
| Set the last update time (sec) for the requested data type. | |
| double | GetNextUpdateTime (UpdateType aUpdateType) |
| Set the next update time (sec) for the requested data type. | |
| bool | SetNextUpdateTime (UpdateType aUpdateType, double aSimTime) |
| Set the next update time (sec) for the requested data type. | |
| std::string | GetUpdateTypeString (const UpdateType aUpdateType) |
| Returns the name string associated with the specified UpdateType. | |
| double | GetAssetDataPurgeLifetime () const |
| Get the purge lifetime limit (sec) for asset data. | |
| bool | SetAssetDataPurgeLifetime (double aPurgeLifetime) |
| Set the purge lifetime limit (sec) for asset data. | |
| void | ResetAssetDataPurgeLifetime () |
| Reset the purge lifetime limit (sec) for asset data. | |
| double | GetVisualPerceptionDelay () |
| Returns the current value for visual_perception_delay (sec). | |
| double | GetDisplayPerceptionDelay () |
| Returns the current value for display_perception_delay (sec). | |
| bool | SetVisualPerceptionDelay (double aDelayTime) |
| Set the visual perception delay (sec). | |
| bool | SetDisplayPerceptionDelay (double aDelayTime) |
| Set the display perception delay (sec). | |
| WsfTrackProcessor * | GetTrackProcessor (const std::string &aProcessorName) |
| Returns the a pointer to the track processor of the provided name. | |
| std::vector< WsfTrackProcessor * > | GetTrackProcessors () |
| Returns mTrackProcessorList that contains the pointers to the different track processors. | |
| bool | EntityIsInAssetGroup (const WsfSA_EntityPerception *aEntity) const |
| Returns true if the specified entity is in the list of assets at the present time. | |
| bool | EntityIsInAssetGroup (size_t aEntityIndex) const |
| Returns true if the specified entity index is in the list of assets at the present time. | |
| const char * | GetScriptClassName () const override |
| Return the name of this script class. | |
| UtScriptClass * | CreateScriptClass (const std::string &aClassName, UtScriptTypes *aScriptTypesPtr) |
| Create the 'class' object for the script system. | |
| void | TrackManagerChanged (double aSimTime, WsfTrackManager *aNewManagerPtr) |
| Change the track manager. | |
| bool | ProcessMessage (double aSimTime, const WsfMessage &aMessage) override |
| Process a WsfMessage. | |
| void | SendMessage (double aSimTime, const WsfSA_EntityMessage &aStatusMessage) |
| Send a message to external links. | |
| void | LocalTrackDropped (double aSimTime, const WsfLocalTrack *aLocalTrackPtr) |
| Handle a track dropping. | |
| bool | HasExternalLinks () const |
| True if the processor has external links (comms), false otherwise. | |
| void | PlatformAdded (double aSimTime, WsfPlatform *aPlatform) override |
| These functions handle the addition or deletion of platforms in the simulation. | |
| void | PlatformDeleted (WsfPlatform *aPlatform) override |
| This will remove a newly deleted platform from a local list of platforms, if present. | |
| std::string | GetSelectedWeapon () const |
| These functions provide data related to the selected weapon. | |
| const WsfExplicitWeapon * | SelectedWeapon () const |
| Returns a pointer to the selected weapon. | |
| int | QuantityOfSelectedWeapon () const |
| Returns the available quantity of the selected weapon. | |
| bool | SetSelectedWeapon (std::string aWeaponName) |
| Returns true if the weapon selection was successful, else false. | |
| const std::vector< WsfExplicitWeapon * > | GetWeaponList () const |
| Returns the current list of weapons. | |
| int | GetInitialWeaponsQuantity () |
| Returns the initial number of weapons. | |
| void | SetMasterArm (bool aArmed) |
| Returns true if the weapon selection was successful, else false. | |
| bool | GetMasterArm () const |
| Returns true if the master arm is active (armed), else false. | |
| bool | MasterWarningActive () const |
| Returns true if the master warning is active, else false. | |
| bool | MasterCautionActive () const |
| Returns true if the master warning is active, else false. | |
| bool | WeaponBayDoorsAreOpen () const |
| Returns true if the weapon bay doors are open, else false. | |
| bool | SupportingWeapon () const |
| Returns true if a weapon is flight is being supported, else false. | |
| bool | ShootCueActive () const |
| Returns true if the shoot cue is active, else false. | |
| bool | ShootCueBlinking () const |
| Returns true if the shoot cue is blinking, else false. | |
| bool | JammingDetected () const |
| Returns true if radar jamming is detected by local radar sensors, else false. | |
| bool | EngagedTargetValid () const |
| These functions provide data related to the primary target being engaged. | |
| SA_EngagedTarget | GetEngagedTarget () const |
| Returns an EngagedTarget struct for the primary engaged target. | |
| void | SetEngagedTarget (SA_EngagedTarget aTarget) |
| Set the engaged target using the specified data. | |
| int | QuantityOfChaff () const |
| These functions provide data related to expendables. | |
| int | QuantityOfFlares () const |
| Returns the available quantity of the flare cartridges. | |
| int | QuantityOfDecoys () const |
| Returns the available quantity of the expendable decoys. | |
| bool | DispenseChaff (double aSimTime) |
| Returns true if there was chaff available and dispenses a deployment of chaff. | |
| bool | DispenseFlare (double aSimTime) |
| Returns true if there was a flare available and dispenses a deployment of flare(s). | |
| bool | DispenseDecoy (double aSimTime) |
| Returns true if there was a decoy available and dispenses a single decoy. | |
| const std::vector< size_t > | GetFilteredPlatformIdList () const |
| This function returns a list of filtered platform ids for platforms that will be evaluated. | |
| bool | IsEnemySide (const std::string &aSide) const |
| This function returns true if the specified side is in the enemy sides list. | |
| bool | IsFriendlySide (const std::string &aSide) const |
| This function returns true if the specified side is in the friendly sides list. | |
| bool | IsNeutralSide (const std::string &aSide) const |
| This function returns true if the specified side is in the neutral sides list. | |
| bool | IsEnemyType (const std::string &aType) const |
| This function returns true if the specified type is in the enemy types list. | |
| bool | IsFriendlyType (const std::string &aType) const |
| This function returns true if the specified type is in the friendly types list. | |
| bool | IsNeutralType (const std::string &aType) const |
| This function returns true if the specified type is in the neutral types list. | |
| bool | IsMissileType (const std::string &aType) const |
| This function returns true if the specified type is in the missile types list. | |
| const WsfTrackProcessor * | GetMWS_Processor () const |
| Get the pointer to the Missile Warning System (MWS) track processor. | |
| bool | PlatformInTrackListMWS (const WsfPlatform *aPlatform) const |
| This function will return true if the specified (truth) platform is in the track list of the Missile Warning System (MWS) track processor. | |
| bool | UseIFF () const |
| This function returns true if IFF should be used for identification. | |
| bool | UseSimpleIdByType () const |
| This function returns true if the simple identification-by-type approach should be used. | |
| double | MaxRangeForPerceivedAssets () const |
| This function returns the max range (meters) for perceived assets. | |
| double | MaxRangeForPerceivedBogiesAndBandits () const |
| This function returns the max range (meters) for perceived bogies and bandits. | |
| bool | UseMaxRangeFilterForPerceivedAssets () const |
| This function returns true if the max range filter should be applied for assets. | |
| bool | UseMaxRangeFilterForPerceivedBogiesAndBandits () const |
| This function returns true if the max range filter should be applied for bogies and bandits. | |
| double | MaxRangeForEngagementData () const |
| This function returns the max range (meters) for engagement data. | |
| bool | UseMaxRangeForEngagementData () const |
| This function returns true if the max range filter should be applied for engagements. | |
| double | AssumedRangeForAngleOnlyTargets () const |
| This function returns the assumed range of angle-only tracks. | |
| std::uint16_t | FlightId () |
| This function returns the flight id. | |
| std::string | IdFlag () |
| This function returns the id flag string. | |
| void | SetFlightId (std::uint16_t aFlightId) |
| This function sets the flight id. | |
| void | SetIdFlag (const std::string &aIdFlag) |
| This function sets the id flag string. | |
| const std::string & | ESM_TrackProcessor () const |
| This function returns the name of the optional ESM/RWR track processor. | |
| const std::string & | MWS_TrackProcessor () const |
| This function returns the name of the optional missile warning system (MWS) track processor. | |
| const std::string & | RadarTrackProcessor () const |
| This function returns the name of the optional radar track processor. | |
| const std::string & | IRST_TrackProcessor () const |
| This function returns the name of the optional IRST track processor. | |
| const std::string & | DAS_TrackProcessor () const |
| This function returns the name of the optional DAS track processor. | |
| const std::string & | FLIR_TrackProcessor () const |
| This function returns the name of the optional FLIR track processor. | |
| const std::string & | EyesTrackProcessor () const |
| This function returns the name of the optional eyes sensor track processor. | |
| std::string | PerceptionMasterTrackProcessor () const |
| This function returns the name of the optional perception master track processor. | |
| bool | UsingPerceptionMasterTrackProcessor () const |
| This function returns true if the optional perception master track processor is being used. | |
| WsfTrackProcessor * | GetPerceptionMasterTrackProcessor () const |
| Get the pointer to the optional perception master track processor (PMTP). | |
| WsfLocalTrackList * | GetPerceptionMasterTrackProcessorTrackList () const |
| This function returns the local track list for the optional perception master track processor (PMTP). | |
| const SA_AircraftKinematics & | GetAircraftKinematics () const |
| This function returns the aircraft kinematics data. | |
| void | SetAircraftKinematics (const SA_AircraftKinematics &aFlightData) |
| This function sets the aircraft kinematics data. | |
| const SA_FuelSystemData & | GetFuelSystemData () const |
| This function returns the aircraft fuel data. | |
| void | SetFuelSystemData (const SA_FuelSystemData &aData) |
| This function sets the aircraft fuel data. | |
| const SA_NavigationDataSummary & | GetNavigationDataSummary () const |
| This function returns the aircraft nav data. | |
| void | SetNavigationDataSummary (const SA_NavigationDataSummary &aData) |
| This function sets the aircraft nav data. | |
| const SA_FlightControlsDataSummary & | GetFlightControlsDataSummary () const |
| This function returns the aircraft flight controls data. | |
| void | SetFlightControlsDataSummary (const SA_FlightControlsDataSummary &aData) |
| This function sets the aircraft flight controls data. | |
| const SA_WeaponsDataSummary | GetWeaponsDataSummary () const |
| This function returns the weapons data. | |
| void | SetWeaponsDataSummary (const SA_WeaponsDataSummary &aData) |
| This function sets the weapons data. | |
| const std::vector< SA_TrackManagerData > & | GetTrackManagerList () const |
| This function returns the track data for all of the track processors/managers. | |
| void | SetTrackManagerList (const std::vector< SA_TrackManagerData > &aData) |
| This function sets the track data. | |
| double | TryUpdateFlightKinematics (double aSimTime) |
| Attempt to update flight data at a sim time, and return an appropriate time for the next event update. | |
| double | TryUpdateFuel (double aSimTime) |
| Attempt to update fuel data at a sim time, and return an appropriate time for the next event update. | |
| double | TryUpdateNav (double aSimTime) |
| Attempt to update nav data at a sim time, and return an appropriate time for the next event update. | |
| double | TryUpdateFlightControls (double aSimTime) |
| Attempt to update flight controls data at a sim time, and return an appropriate time for the next event update. | |
| double | TryUpdateWeapons (double aSimTime) |
| Attempt to update weapons data at a sim time, and return an appropriate time for the next event update. | |
| double | TryUpdateTracks (double aSimTime) |
| Attempt to update track data at a sim time, and return an appropriate time for the next event update. | |
| double | TryUpdateBehaviorCalculation (double aSimTime) |
| Attempt to update advanced behavior trees and finite state machines, and return an appropriate time for the next event update. | |
| void | UpdateFlightKinematics (double aSimTime) |
| Update flight data for the platform. | |
| void | UpdateFuel (double aSimTime) |
| Update fuel data at a sim time, and return an appropriate time for the next event update. | |
| void | UpdateNav (double aSimTime) |
| Update nav data at a sim time, and return an appropriate time for the next event update. | |
| void | UpdateFlightControls (double aSimTime) |
| Update flight controls data at a sim time, and return an appropriate time for the next event update. | |
| void | UpdateWeapons (double aSimTime) |
| Update weapons data at a sim time, and return an appropriate time for the next event update. | |
| void | UpdateTracks (double aSimTime) |
| Update track data for the platform. | |
| void | UpdateFlightKinematicsData (double aSimTime) |
| Update flight data for the platform. | |
| void | UpdateFuelData (double aSimTime) |
| Update fuel data at a sim time, and return an appropriate time for the next event update. | |
| void | UpdateNavData (double aSimTime) |
| Update nav data at a sim time, and return an appropriate time for the next event update. | |
| void | UpdateFlightControlsData (double aSimTime) |
| Update flight controls data at a sim time, and return an appropriate time for the next event update. | |
| void | UpdateWeaponsData (double aSimTime) |
| Update weapons data at a sim time, and return an appropriate time for the next event update. | |
| void | UpdateTrackData (double aSimTime) |
| Update track data for the platform. | |
| void | UpdateBehaviorCalculation (double aSimTime) |
| Update advanced behavior trees and finite state machines. | |
| bool | AfterburnerOn () const |
| Returns true if afterburner is operating. | |
| bool | IsContrailing () const |
| Returns true if producing contrails. | |
| void | CalculateObservables () |
| Calculate the observables (afterburner and contrails) of the current platform. | |
| void | CalculateEmissions () |
| Calculate the RF emissions for the current platform. | |
| bool | RadarEmitting () const |
| This returns true if any radar is emitting. | |
| bool | JammerEmitting () const |
| This returns true if any jammer is emitting. | |
| bool | OtherSystemsEmitting () const |
| This returns true if any other systems are emitting. | |
| bool | FuelStateBingoReached () const |
| This returns true if the bingo fuel state has been reached. | |
| bool | FuelStateJokerReached () const |
| This returns true if the joker fuel state has been reached. | |
| double | FuelStateNormalized () const |
| This returns the normalized fuel state, in the range from 0 (empty) to 1 (full). | |
| double | TimeToJoker () const |
| This returns the time (sec) until reaching joker state at the current burn rate. | |
| double | TimeToBingo () const |
| This returns the time (sec) until reaching bingo state at the current burn rate. | |
| double | TimeToEmpty () const |
| This returns the time (sec) until fuel tank(s) are empty at the current burn rate. | |
| Public Member Functions inherited from WsfScriptProcessor | |
| WsfScriptProcessor (const WsfScenario &aScenario) | |
| WsfScriptProcessor (const WsfScenario &aScenario, WsfStringId aPartClass, const std::string &aPartVarName) | |
| ~WsfScriptProcessor () override | |
| WsfProcessor * | Clone () const override |
| bool | Initialize (double aSimTime) override |
| bool | Initialize2 (double aSimTime) override |
| bool | ProcessInput (UtInput &aInput) override |
| void | Update (double aSimTime) override |
| bool | ProcessMessage (double aSimTime, const WsfMessage &aMessage) override |
| void | SendMessage (double aSimTime, const WsfMessage &aMessage) override |
| virtual void | ExecuteOnMessageCreate (double aSimTime, WsfMessage &aMessage) |
| virtual bool | ExecuteScript (double aSimTime, const std::string &aScriptName) |
| virtual bool | ExecuteScript (double aSimTime, WsfStringId aScriptName, UtScriptData &aScriptRetVal, const UtScriptDataList &aScriptArgs=UtScriptDataList()) |
| void | ExecuteScriptAtTime (double aTime, WsfStringId aScriptName, const UtScriptDataList &aScriptArgs) |
| virtual void | SuppressMessage (bool aSuppressMessage) |
| WsfScriptMessageHandler * | GetMessageHandler () |
| WsfScriptContext & | GetScriptContext () |
| UtScriptContext * | GetScriptAccessibleContext () const override |
| void | SetPlatform (WsfPlatform *aPlatformPtr) override |
| const WsfBehaviorTree * | BehaviorTree () const |
| WsfAdvancedBehaviorTree * | AdvancedBehaviorTree () const |
| virtual const WsfScriptStateMachine * | GetStateMachine () const |
| wsf::ExternalLinks & | GetExternalLinks () |
| std::string | State () |
| std::string | StateAll () |
| void | SetState (std::string &stateName) |
| void | SetStateAll (std::string &stateNameAll) |
| Public Member Functions inherited from WsfProcessor | |
| WsfProcessor (const WsfScenario &aScenario) | |
| ~WsfProcessor () override=default | |
| ComponentList & | GetComponents () |
| const ComponentList & | GetComponents () const |
| virtual void | ProcessCallback (double aSimTime, const WsfCallback &aCallback) |
| WsfComponent * | CloneComponent () const override |
| const int * | GetComponentRoles () const override |
| void * | QueryInterface (int aRole) override |
| int | GetComponentInitializationOrder () const override |
| const char * | GetScriptClassName () const override |
| bool | PreInitialize (double aSimTime) override |
| void | PreInput () override |
| void | TurnOff (double aSimTime) override |
| void | TurnOn (double aSimTime) override |
| void | SetNonOperational (double aSimTime) override |
| void | SetOperational (double aSimTime) override |
| void | PartBroken (double aSimTime) override |
| double | GetUpdateInterval () const override |
| void | SetUpdateInterval (double aUpdateInterval) override |
| Public Member Functions inherited from WsfPlatformPart | |
| WsfPlatformPart (const WsfScenario &aScenario, int aPartType) | |
| WsfPlatformPart & | operator= (const WsfPlatformPart &aRhs)=delete |
| ~WsfPlatformPart () override | |
| bool | DebugEnabled () const |
| Returns 'true' if debugging is enabled for this instance. | |
| void | SetDebugEnabled (bool aDebugEnabled) |
| unsigned int | GetDebugMask () |
| bool | IsExternallyControlled () const |
| virtual void | SetExternallyControlled (double aSimTime, bool aIsExternallyControlled) |
| int | GetPartType () const |
| const char * | GetScriptClassName () const override |
| WsfSimulation * | GetSimulation () const |
| const WsfScenario & | GetScenario () const |
| WsfStringId | GetComponentName () const override |
| void | ComponentParentChanged (WsfPlatform *aPlatformPtr) override |
| WsfPlatform * | GetPlatform () const |
| double | GetLastStatusChangeTime () const |
| void | SetLastStatusChangeTime (double aSimTime) |
| Allows a system to set the time at which the device was initialized. | |
| bool | CanBeMadeOperational () const |
| Returns an indication that this system can be made operational. | |
| bool | CanBeMadeNonOperational () const |
| Returns an indication that this system can be made non-operational. | |
| bool | CanBeTurnedOn () const |
| Returns an indication that this system can be turned on. | |
| bool | CanBeTurnedOff () const |
| Returns an indication that this system can be turned off. | |
| bool | IsTurnedOn () const |
| bool | InitiallyTurnedOn () const |
| Is the system to be turned 'on' when added to the simulation? | |
| void | SetInitiallyTurnedOn (bool aInitiallyTurnedOn) |
| Sets if the system is turned on when added to the simulation. | |
| virtual void | Restore (double aSimTime) |
| bool | IsOperational () const |
| bool | SetOperational (double aSimTime, bool aMakeOperational) |
| double | GetDamageFactor () const |
| bool | SetDamageFactor (double aSimTime, double aDamageFactor) |
| bool | IsCritical () const |
| void | SetCritical (bool aValue) |
| virtual void | OnPlatformBrokenEvent (double aSimTime) |
| Owning platform has issued a broken event. | |
| bool | IsBroken () const |
| WsfInternalLinks & | GetInternalLinks () |
| Return the internal links for this part. | |
| virtual bool | HasInternalLinks () const |
| Does this platform part have a communication link to other platform parts? | |
| virtual bool | ReceiveMessage (double aSimTime, const WsfMessage &aMessage) |
| virtual void | SendMessageTo (double aSimTime, const WsfMessage &aMessage, WsfStringId aRecipientId) |
| void | SendMessageToProcessor (double aSimTime, const WsfMessage &aMessage, WsfStringId aRecipientId) |
| virtual void | SendQueuedMessages (double aSimTime) |
| const WsfCategoryList & | GetCategories () const |
| Get the categories to which this part belongs. | |
| void | AddCategory (WsfStringId aCategoryId) |
| Adds the provided category to the platform part's category list. | |
| bool | IsCategoryMember (WsfStringId aCategoryId) const |
| const WsfGroupList & | GetGroups () const |
| Get the groups to which this platform part belongs. | |
| void | JoinGroup (WsfGroup *aGroupPtr) |
| Join the given group. | |
| void | LeaveGroup (WsfGroup *aGroupPtr) |
| Leave the given group. | |
| bool | IsGroupMember (WsfStringId aGroupId) |
| unsigned int | GetUpdateEventEpoch () const |
| void | IncrementUpdateEventEpoch () |
| bool | UpdateEventActive () const |
| Is an 'Update' event active? | |
| void | SetUpdateEventActive (bool aUpdateEventActive) |
| Indicate if the 'Update' event is active. | |
| 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 |
| 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) |
| Public Member Functions inherited from WsfComponentT< WsfPlatform > | |
| WsfComponentT () | |
| WsfComponentT (const WsfComponentT &) noexcept | |
| WsfComponentT & | operator= (const WsfComponentT &) noexcept |
| ~WsfComponentT () override=default | |
| ParentType * | GetComponentParent () const |
| void | SetComponentParent (ParentType *aParentPtr) |
| Public Member Functions inherited from WsfComponent | |
| virtual | ~WsfComponent ()=default |
| template<typename T> | |
| bool | QueryInterfaceT (T *&aRolePtr) |
| bool | ComponentHasRole (int aRole) |
| Returns true if the component has the specified role. | |
| Public Member Functions inherited from WsfUniqueId | |
| WsfUniqueId () | |
| Construtor initializes the unique identifier to 0. | |
| WsfUniqueId (const WsfUniqueId &) | |
| Copy constructor initializes the unique identifier to 0. | |
| WsfUniqueId & | operator= (const WsfUniqueId &) |
| unsigned int | GetUniqueId () const |
| Get the unique identifier assigned to this object. | |
| template<typename T> | |
| void | Serialize (T &aBuff) |
| For XIO (de)serialization. | |
| 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 const std::vector< UpdateType > | GetCognitiveUpdateGroup () |
| Get the UpdateTypes that are associated with the cognitive_update_interval group. | |
| static const std::vector< UpdateType > | GetPlatformUpdateGroup () |
| Get the UpdateTypes that are associated with the platform_update_interval group. | |
| static const std::vector< UpdateType > | GetUniversalUpdateGroup () |
| Get the UpdateTypes that are associated with the universal_update_interval group. | |
| static WsfSA_Processor * | CreateSA_Processor (double aSimTime, WsfPlatform &aPlatform) |
| Create a new SA Processor for a platform. | |
| static WsfSA_Processor * | GetSA_Processor (const WsfPlatform &aPlatform) |
| Get the pointer to the first attached SA processor. | |
| static double | RoundToBaseRateMultiple (double aNumToRound, double aMultiple) |
| This will return a double that is a multiple of the parameter provided. | |
| static const std::vector< WsfSA_EntityPerception * > & | GetPlatformPerceivedAssets (const WsfPlatform &aPlatform, double aSimTime) |
| Get the perceived assets for a platform. | |
| static const std::vector< WsfSA_EntityPerception * > & | GetPlatformPerceivedBogies (const WsfPlatform &aPlatform, double aSimTime) |
| Get the perceived bogies for a platform. | |
| static const std::vector< WsfSA_EntityPerception * > & | GetPlatformPerceivedBandits (const WsfPlatform &aPlatform, double aSimTime) |
| Get the perceived bandits for a platform. | |
| static void | CheckForFrequencyUnits (double &aValue, UtInput &aInput) |
| Check an input value for frequency units, and if needed, convert it to seconds. | |
| static bool | PlatformContainsSA_Processor (WsfPlatform *aPlatform) |
| Other miscellaneous functions. | |
| static const WsfSA_Processor * | GetPlatformSA_Processor (const WsfPlatform *aPlatform) |
| This function will return a pointer to the first SA Processor on the specified platform. | |
Static Public Attributes | |
| static const size_t | cUPDATE_TYPE_COUNT {14} |
| Static Public Attributes inherited from WsfAuxDataEnabled | |
| static UtCallbackListN< void(const WsfAuxDataEnabled *)> | AuxDataAccessed |
| static UtCallbackListN< void(const WsfAuxDataEnabled *)> | AuxDataDestroyed |
Protected Member Functions | |
| WsfSA_Processor (const WsfSA_Processor &aSrc) | |
| void | CallScript (double aSimTime, const std::string &aScriptName) |
| This will call an AFSIM script function with the specified name. | |
| double | CallScriptReturnDouble (double aSimTime, const std::string &aScriptName) |
| This will call an AFSIM script function with the specified name. | |
| bool | ScriptExists (const std::string &aScriptName) |
| This will return true if an AFSIM script function with the specified name exists. | |
| void | DebugTestOutput (double aSimTime) |
| This outputs test data, useful for debugging. | |
| Protected Member Functions inherited from WsfScriptProcessor | |
| WsfScriptProcessor (const WsfScriptProcessor &aSrc) | |
| WsfProcessor (const WsfProcessor &aSrc) | |
| Copy constructor (for Clone()). | |
| WsfProcessor & | operator= (const WsfProcessor &aRhs)=delete |
| WsfPlatformPart (const WsfPlatformPart &aSrc) | |
| Copy constructor (for Clone()). | |
| WsfObject (const WsfObject &aSrc) | |
| Copy constructor (for Clone()). | |
| Protected Member Functions inherited from WsfUniqueId | |
| void | AssignUniqueId (WsfSimulation *aSimulationPtr) |
Additional Inherited Members | |
| Protected Attributes inherited from WsfScriptProcessor | |
| WsfScriptContext * | mContextPtr |
| Pointer to the script context. | |
| WsfScriptMessageHandler * | mMessageHandlerPtr |
| Pointer to the 'on_message' handler. | |
| UtScript * | mOnMessageCreateScriptPtr |
| Pointer to the 'on_message_create' script. | |
| UtScriptClass * | mMessageClassPtr |
| wsf::ExternalLinks | mExternalLinks |
| The external recipients. | |
| WsfBehaviorTree * | mBehaviorTreePtr |
| ut::CloneablePtr< WsfAdvancedBehaviorTree > | mAdvancedBehaviorTreePtr |
| std::unique_ptr< WsfScriptStateMachine > | mStateMachinePtr |
| int | mStateIndex |
| bool | mSuppressMessage |
| enum WsfSA_Processor::UpdateType : size_t |
| WsfSA_Processor::WsfSA_Processor | ( | const WsfScenario & | aScenario | ) |
References cUPDATE_TYPE_COUNT, and WsfScriptProcessor::WsfScriptProcessor().
Referenced by Clone(), CreateSA_Processor(), GetPlatformSA_Processor(), GetSA_Processor(), operator=(), and WsfSA_Processor().
|
override |
|
protected |
References WsfSA_Processor(), and WsfScriptProcessor::WsfScriptProcessor().
|
inline |
Returns true if afterburner is operating.
Referenced by DebugTestOutput().
|
inline |
Return a pointer to the WsfSA_Assess module.
Referenced by DebugTestOutput(), WsfSA_Perceive::SetFocus(), WsfSA_Perceive::UpdateGroupsData(), WsfSA_Perceive::UpdatePerceivedItemsCalculation(), and UT_DEFINE_SCRIPT_METHOD().
|
inline |
This function returns the assumed range of angle-only tracks.
| void WsfSA_Processor::CalculateEmissions | ( | ) |
Calculate the RF emissions for the current platform.
References WsfComponentList::GetComponentCount(), WsfComponentList::GetComponentEntry(), WsfPlatformPart::GetPlatform(), WsfPlatformPart::IsCategoryMember(), and WsfPlatformPart::IsTurnedOn().
Referenced by UpdateBehaviorCalculation(), and WsfSA_Assess::UpdateEngagementsData().
| void WsfSA_Processor::CalculateObservables | ( | ) |
Calculate the observables (afterburner and contrails) of the current platform.
References WsfSimulation::GetAtmosphere(), WsfPlatformPart::GetPlatform(), and WsfPlatformPart::GetSimulation().
Referenced by UpdateBehaviorCalculation(), and WsfSA_Assess::UpdateEngagementsData().
|
protected |
This will call an AFSIM script function with the specified name.
If returnValueExpected is true, the function will be added to the list of scripts awaiting a return value. Use false if no return value is needed.
| aSimTime | sim time to call script at. |
| aScriptName | name of the script to call. |
|
protected |
This will call an AFSIM script function with the specified name.
If returnValueExpected is true, the function will be added to the list of scripts awaiting a return value. Use false if no return value is needed.
| aSimTime | sim time to call script at. |
| aScriptName | name of the script to call. |
|
static |
Check an input value for frequency units, and if needed, convert it to seconds.
| aValue | value of the input. |
| aInput | input to check units of. |
|
inlineoverridevirtual |
Create a clone of this object.
Implements WsfProcessor.
References WsfSA_Processor().
Referenced by WsfScriptSA_ProcessorClass::Clone().
|
static |
Create a new SA Processor for a platform.
| aSimTime | sim time to create the SAP at. |
| aPlatform | platform to create the SAP for. |
References WsfComponentListT< COMPONENT_TYPE >::AddComponent(), WsfObject::GetName(), WsfPlatform::GetScenario(), WsfPlatform::GetSimTime(), Initialize(), WsfProcessor::PreInitialize(), WsfObject::SetName(), and WsfSA_Processor().
| UtScriptClass * WsfSA_Processor::CreateScriptClass | ( | const std::string & | aClassName, |
| UtScriptTypes * | aScriptTypesPtr ) |
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.
| aClassName | name for the new class. |
| aScriptTypesPtr | pointer to the script types to store in the script class. |
|
inline |
This function returns the name of the optional DAS track processor.
If no such processor exists, it returns an empty string.
|
protected |
This outputs test data, useful for debugging.
References AfterburnerOn(), Assess(), WsfSA_PerceivedItem::BANDIT, WsfSA_PerceivedItem::BOGIE, WsfSA_Assess::CurrentlyTrackedPlatformNames(), WsfSA_Assess::Defensiveness(), FlightId(), WsfSA_Assess::FlightRisk(), WsfSA_PerceivedItem::FRIENDLY, FuelStateBingoReached(), FuelStateJokerReached(), FuelStateNormalized(), WsfObject::GetName(), WsfPlatformPart::GetPlatform(), WsfSimulation::GetPlatformByIndex(), WsfSA_Assess::GetSelectedWeapon(), WsfPlatformPart::GetSimulation(), GetTrackManagerList(), ID_BANDIT, ID_BOGIE, ID_FRIENDLY, ID_NEUTRAL, WsfSA_Assess::MissionRisk(), WsfSA_Assess::MissionTask(), WsfSA_PerceivedItem::NEUTRAL, WsfSA_Assess::PackageRisk(), WsfSA_Assess::PerceivedGroups(), WsfSA_Assess::PrioritizedTargetNames(), WsfSA_Assess::PrioritizedThreatNames(), WsfSA_Assess::Risk(), WsfSA_Assess::SelfRisk(), TimeToJoker(), WsfSA_PerceivedItem::UNKNOWN, and WsfSA_Assess::Urgency().
Referenced by Update().
| bool WsfSA_Processor::DispenseChaff | ( | double | aSimTime | ) |
Returns true if there was chaff available and dispenses a deployment of chaff.
| bool WsfSA_Processor::DispenseDecoy | ( | double | aSimTime | ) |
Returns true if there was a decoy available and dispenses a single decoy.
| bool WsfSA_Processor::DispenseFlare | ( | double | aSimTime | ) |
Returns true if there was a flare available and dispenses a deployment of flare(s).
| bool WsfSA_Processor::EngagedTargetValid | ( | ) | const |
These functions provide data related to the primary target being engaged.
Returns true if there is an engaged target.
Referenced by UpdateWeaponsData().
| bool WsfSA_Processor::EntityIsInAssetGroup | ( | const WsfSA_EntityPerception * | aEntity | ) | const |
Returns true if the specified entity is in the list of assets at the present time.
| aEntity | entity to test. |
References EntityIsInAssetGroup().
Referenced by EntityIsInAssetGroup(), and UpdateTrackData().
| bool WsfSA_Processor::EntityIsInAssetGroup | ( | size_t | aEntityIndex | ) | const |
Returns true if the specified entity index is in the list of assets at the present time.
| aEntityIndex | entity to test. |
|
inline |
This function returns the name of the optional ESM/RWR track processor.
If no such processor exists, it returns an empty string.
|
inline |
This function returns the name of the optional eyes sensor track processor.
If no such processor exists, it returns an empty string.
|
inline |
This function returns the flight id.
Zero indicated not a member of any flight.
Referenced by DebugTestOutput(), and WsfSA_EntityPerception::WsfSA_EntityPerception().
|
inline |
This function returns the name of the optional FLIR track processor.
If no such processor exists, it returns an empty string.
| bool WsfSA_Processor::FuelStateBingoReached | ( | ) | const |
This returns true if the bingo fuel state has been reached.
Referenced by DebugTestOutput().
| bool WsfSA_Processor::FuelStateJokerReached | ( | ) | const |
This returns true if the joker fuel state has been reached.
Referenced by DebugTestOutput().
| double WsfSA_Processor::FuelStateNormalized | ( | ) | const |
This returns the normalized fuel state, in the range from 0 (empty) to 1 (full).
Referenced by DebugTestOutput().
|
inline |
This function returns the aircraft kinematics data.
|
inline |
Get the WsfAirMover for the platform.
This will be null if the platform lacks a WsfAirMover.
|
inline |
|
inline |
Get the purge lifetime limit (sec) for asset data.
Referenced by WsfSA_Perceive::PurgeOldAssets().
|
inline |
Get the BrawlerFuel for the platform.
This will be null if the platform lacks a WsfBrawlerFuel object.
|
inline |
Get the Brawler mover for the platform.
This will be null if the platform lacks a WsfBrawlerMover.
|
inlinestatic |
Get the UpdateTypes that are associated with the cognitive_update_interval group.
References cASSETS_DATA, cENGAGEMENT_DATA, cPERCEIVED_ITEM_DATA, and cPRIORITIZED_ITEM_DATA.
Referenced by WsfScriptSA_ProcessorClass::GetGroupedTypes(), and ProcessInput().
|
inline |
Return a const reference to the perceive data.
Referenced by WsfSA_Assess::Initialize(), WsfSA_Assess::PerceivedGroups(), and WsfSA_Assess::PerceivedThreatItems().
|
inline |
Returns the current value for display_perception_delay (sec).
| WsfSA_Processor::SA_EngagedTarget WsfSA_Processor::GetEngagedTarget | ( | ) | const |
Returns an EngagedTarget struct for the primary engaged target.
Referenced by UpdateWeaponsData().
|
inline |
This function returns a list of filtered platform ids for platforms that will be evaluated.
Referenced by WsfSA_Assess::UpdateEngagementsData().
|
inline |
This function returns the aircraft flight controls data.
|
inline |
This function returns the aircraft fuel data.
|
inline |
Returns the initial number of weapons.
|
inline |
Get the last update time (sec) for the requested data type.
| aUpdateType | one of WsfSA_Processor::UpdateType enumeration |
Referenced by UpdateFlightControls(), UpdateFlightKinematics(), UpdateFuel(), UpdateNav(), UpdateTracks(), and UpdateWeapons().
| bool WsfSA_Processor::GetMasterArm | ( | ) | const |
Returns true if the master arm is active (armed), else false.
Referenced by UpdateWeaponsData().
| const WsfTrackProcessor * WsfSA_Processor::GetMWS_Processor | ( | ) | const |
Get the pointer to the Missile Warning System (MWS) track processor.
If no such track processor exists, return null.
Referenced by PlatformInTrackListMWS().
|
inline |
This function returns the aircraft nav data.
|
inline |
Set the next update time (sec) for the requested data type.
| aUpdateType | one of the WsfSA_Processor::UpdateType enumeration |
Referenced by HandleSA_ProcessorUpdates().
|
inline |
Get the P6DOF mover for the platform.
This will be null if no WsfP6DOF_Mover is on the platform.
|
inline |
Get the pointer to the optional perception master track processor (PMTP).
If there is no PMTP, it returns null.
Referenced by GetPerceptionMasterTrackProcessorTrackList().
| WsfLocalTrackList * WsfSA_Processor::GetPerceptionMasterTrackProcessorTrackList | ( | ) | const |
This function returns the local track list for the optional perception master track processor (PMTP).
If there is no PMTP, it returns null.
References GetPerceptionMasterTrackProcessor(), and PerceptionMasterTrackProcessor().
Referenced by WsfSA_Assess::GetPerceivedTrackedPlatformWithTarget(), and WsfSA_Perceive::UpdatePerceivedItemsCalculation().
|
static |
Get the perceived assets for a platform.
This will be empty if no SA Processor is on the platform.
| aPlatform | platform to get perceived assets for. |
| aSimTime | sim time to get assets at. |
References GetSA_Processor().
|
static |
Get the perceived bandits for a platform.
This will be empty if no SA Processor is on the platform.
| aPlatform | platform to get perceived bandits for. |
| aSimTime | sim time to get bandits at. |
References GetSA_Processor().
|
static |
Get the perceived bogies for a platform.
This will be empty if no SA Processor is on the platform.
| aPlatform | platform to get perceived bogies for. |
| aSimTime | sim time to get threats at. |
References GetSA_Processor().
|
static |
This function will return a pointer to the first SA Processor on the specified platform.
References WsfComponentList::RoleIterator< T >::AtEnd(), and WsfSA_Processor().
|
inlinestatic |
Get the UpdateTypes that are associated with the platform_update_interval group.
References cCONTROLS_DATA, cFLIGHT_DATA, cFUEL_DATA, cNAV_DATA, cSTATUS, cTRACK_DATA, and cWEAPONS_DATA.
Referenced by WsfScriptSA_ProcessorClass::GetGroupedTypes(), and ProcessInput().
|
static |
Get the pointer to the first attached SA processor.
| aPlatform | platform to get the processor for. |
References WsfComponentList::RoleIterator< T >::AtEnd(), and WsfSA_Processor().
Referenced by GetPlatformPerceivedAssets(), GetPlatformPerceivedBandits(), GetPlatformPerceivedBogies(), WsfSA_EntityPerception::WsfSA_EntityPerception(), and WsfSA_EntityPerception::WsfSA_EntityPerception().
|
inlineoverride |
Return the name of this script class.
| std::string WsfSA_Processor::GetSelectedWeapon | ( | ) | const |
These functions provide data related to the selected weapon.
Returns the name of the selected weapon.
|
inline |
Get the SixDOF mover for the platform.
This will be null if the platform lacks a WsfSixDOF_Mover.
|
inline |
Get the startup interval (sec) parsed at startup for the requested data type.
| aUpdateType | one of WsfSA_Processor::Updatetype enuermation |
|
inline |
This function returns the track data for all of the track processors/managers.
Referenced by WsfSA_Assess::CalculateTrackedPlatforms(), and DebugTestOutput().
| WsfTrackProcessor * WsfSA_Processor::GetTrackProcessor | ( | const std::string & | aProcessorName | ) |
Returns the a pointer to the track processor of the provided name.
A nullptr will be returned if a processor cannot be found with the provided name.
| aProcessorName | name of the processor to be sent |
Referenced by WsfSA_Perceive::UpdatePerceivedItemsCalculation().
|
inline |
Returns mTrackProcessorList that contains the pointers to the different track processors.
|
inlinestatic |
Get the UpdateTypes that are associated with the universal_update_interval group.
References cASSETS_DATA, cCONTROLS_DATA, cENGAGEMENT_DATA, cFLIGHT_DATA, cFUEL_DATA, cNAV_DATA, cPERCEIVED_ITEM_DATA, cPRIORITIZED_ITEM_DATA, cSTATUS, cTRACK_DATA, and cWEAPONS_DATA.
Referenced by WsfScriptSA_ProcessorClass::GetGroupedTypes(), and ProcessInput().
|
inline |
Get the update interval (sec) for the requested data type.
| aUpdateType | one of WsfSA_Processor::UpdateType enumeration |
Referenced by WsfSA_Perceive::UpdateStatus().
| std::string WsfSA_Processor::GetUpdateTypeString | ( | const UpdateType | aUpdateType | ) |
Returns the name string associated with the specified UpdateType.
| aUpdateType | one of the WsfSA_Processor::UpdateType enumeration |
References cASSETS_DATA, cBEHAVIOR_CALCULATION, cCONTROLS_DATA, cENGAGEMENT_DATA, cFLIGHT_DATA, cFUEL_DATA, cNAV_DATA, cPERCEIVED_ITEM_CALCULATION, cPERCEIVED_ITEM_DATA, cPRIORITIZED_ITEM_CALCULATION, cPRIORITIZED_ITEM_DATA, cSTATUS, cTRACK_DATA, and cWEAPONS_DATA.
Referenced by Initialize(), and SetUpdateInterval().
|
inline |
Returns the current value for visual_perception_delay (sec).
| const std::vector< WsfExplicitWeapon * > WsfSA_Processor::GetWeaponList | ( | ) | const |
Returns the current list of weapons.
|
inline |
This function returns the weapons data.
| void WsfSA_Processor::HandleSA_ProcessorUpdates | ( | double | aSimTime | ) |
This method is called by Update() at the base update rate to implement the twelve SA Processor update types.
| aSimTime | Simulation time at update. |
There is a particular order in which these updates are checked/performed (data pipeline) The update intervals are checked at the base interval rate and each update type repeats at a multiple of the base interval. In order for a given type of update to be performed, there are two conditions:
References cASSETS_DATA, cBEHAVIOR_CALCULATION, cCONTROLS_DATA, cENGAGEMENT_DATA, cFLIGHT_DATA, cFUEL_DATA, cNAV_DATA, cPERCEIVED_ITEM_CALCULATION, cPERCEIVED_ITEM_DATA, cPRIORITIZED_ITEM_CALCULATION, cPRIORITIZED_ITEM_DATA, cSTATUS, cTRACK_DATA, cWEAPONS_DATA, GetNextUpdateTime(), WsfProcessor::GetUpdateInterval(), HasExternalLinks(), SetLastUpdateTime(), SetNextUpdateTime(), TryUpdateBehaviorCalculation(), TryUpdateFlightControls(), TryUpdateFlightKinematics(), TryUpdateFuel(), TryUpdateNav(), TryUpdateTracks(), and TryUpdateWeapons().
Referenced by Update().
|
inline |
True if the processor has external links (comms), false otherwise.
References WsfScriptProcessor::mExternalLinks.
Referenced by HandleSA_ProcessorUpdates().
|
inline |
This function returns the id flag string.
Referenced by WsfSA_EntityPerception::WsfSA_EntityPerception().
|
overridevirtual |
Initialize this processor.
| aSimTime | sim time when the processor is initialized. |
Reimplemented from WsfProcessor.
References WsfComponentList::RoleIterator< T >::AtEnd(), cASSETS_DATA, WsfPlatformPart::GetPlatform(), WsfObject::GetType(), WsfProcessor::GetUpdateInterval(), GetUpdateTypeString(), WsfScriptProcessor::Initialize(), WsfObject::IsA_TypeOf(), LocalTrackDropped(), ok, RoundToBaseRateMultiple(), and TrackManagerChanged().
Referenced by CreateSA_Processor().
|
overridevirtual |
Initialize2 this processor.
| aSimTime | sim time when the processor is initialized (second pass). |
Reimplemented from WsfProcessor.
References cCONTROLS_DATA, cFLIGHT_DATA, cFUEL_DATA, cNAV_DATA, WsfScriptProcessor::Initialize2(), UpdateFlightControlsData(), UpdateFlightKinematicsData(), UpdateFuelData(), and UpdateNavData().
|
inline |
This function returns the name of the optional IRST track processor.
If no such processor exists, it returns an empty string.
|
inline |
Returns true if producing contrails.
| bool WsfSA_Processor::IsEnemySide | ( | const std::string & | aSide | ) | const |
This function returns true if the specified side is in the enemy sides list.
Referenced by UpdateTrackData(), and WsfSA_EntityPerception::WsfSA_EntityPerception().
| bool WsfSA_Processor::IsEnemyType | ( | const std::string & | aType | ) | const |
This function returns true if the specified type is in the enemy types list.
Referenced by UpdateTrackData(), and WsfSA_EntityPerception::WsfSA_EntityPerception().
| bool WsfSA_Processor::IsFriendlySide | ( | const std::string & | aSide | ) | const |
This function returns true if the specified side is in the friendly sides list.
Referenced by UpdateTrackData(), and WsfSA_EntityPerception::WsfSA_EntityPerception().
| bool WsfSA_Processor::IsFriendlyType | ( | const std::string & | aType | ) | const |
This function returns true if the specified type is in the friendly types list.
Referenced by UpdateTrackData(), and WsfSA_EntityPerception::WsfSA_EntityPerception().
| bool WsfSA_Processor::IsMissileType | ( | const std::string & | aType | ) | const |
This function returns true if the specified type is in the missile types list.
Referenced by UpdateTrackData(), WsfSA_EntityPerception::WsfSA_EntityPerception(), and WsfSA_EntityPerception::WsfSA_EntityPerception().
| bool WsfSA_Processor::IsNeutralSide | ( | const std::string & | aSide | ) | const |
This function returns true if the specified side is in the neutral sides list.
Referenced by UpdateTrackData(), and WsfSA_EntityPerception::WsfSA_EntityPerception().
| bool WsfSA_Processor::IsNeutralType | ( | const std::string & | aType | ) | const |
This function returns true if the specified type is in the neutral types list.
Referenced by UpdateTrackData(), and WsfSA_EntityPerception::WsfSA_EntityPerception().
|
inline |
This returns true if any jammer is emitting.
| bool WsfSA_Processor::JammingDetected | ( | ) | const |
Returns true if radar jamming is detected by local radar sensors, else false.
Referenced by UpdateWeaponsData().
| void WsfSA_Processor::LocalTrackDropped | ( | double | aSimTime, |
| const WsfLocalTrack * | aLocalTrackPtr ) |
Handle a track dropping.
| aSimTime | sim time when track dropped. |
| aLocalTrackPtr | pointer to the dropped track. |
Referenced by Initialize().
| bool WsfSA_Processor::MasterCautionActive | ( | ) | const |
Returns true if the master warning is active, else false.
Referenced by UpdateWeaponsData().
| bool WsfSA_Processor::MasterWarningActive | ( | ) | const |
Returns true if the master warning is active, else false.
Referenced by UpdateWeaponsData().
|
inline |
This function returns the max range (meters) for engagement data.
|
inline |
This function returns the max range (meters) for perceived assets.
|
inline |
This function returns the max range (meters) for perceived bogies and bandits.
|
inline |
This function returns the name of the optional missile warning system (MWS) track processor.
If no such processor exists, it returns an empty string.
|
delete |
References WsfSA_Processor().
|
inline |
This returns true if any other systems are emitting.
|
inline |
Return a pointer to the WsfSA_Perceive module.
Referenced by WsfSA_Assess::Initialize().
|
inline |
This function returns the name of the optional perception master track processor.
If no such processor exists, it returns an empty string.
Referenced by WsfSA_Assess::CalculateTrackedPlatforms(), and GetPerceptionMasterTrackProcessorTrackList().
|
overridevirtual |
These functions handle the addition or deletion of platforms in the simulation.
This will (possibly) add a newly created platform to a local list of platforms, using various filters
| aSimTime | sim time when platform added |
| aPlatform | pointer to the added platform |
Reimplemented from WsfPlatformPart.
References WsfPlatform::GetIndex(), WsfPlatform::GetSide(), WsfPlatform::GetSpatialDomain(), PlatformContainsSA_Processor(), WSF_SPATIAL_DOMAIN_AIR, WSF_SPATIAL_DOMAIN_LAND, WSF_SPATIAL_DOMAIN_SPACE, WSF_SPATIAL_DOMAIN_SUBSURFACE, and WSF_SPATIAL_DOMAIN_SURFACE.
|
static |
Other miscellaneous functions.
This function will return true if an SA Processor exists on the specified platform
References WsfComponentList::RoleIterator< T >::AtEnd().
Referenced by PlatformAdded().
|
overridevirtual |
This will remove a newly deleted platform from a local list of platforms, if present.
| aPlatform | pointer to the added platform |
Reimplemented from WsfPlatformPart.
References WsfPlatform::GetIndex().
| bool WsfSA_Processor::PlatformInTrackListMWS | ( | const WsfPlatform * | aPlatform | ) | const |
This function will return true if the specified (truth) platform is in the track list of the Missile Warning System (MWS) track processor.
Otherwise, it will return false. If there is no MWS track processor, it will return false.
References WsfPlatform::GetIndex(), WsfTrackManager::GetLocalTrackList(), GetMWS_Processor(), WsfTrack::GetTargetIndex(), WsfTrackListT< T >::GetTrackCount(), WsfTrackListT< T >::GetTrackEntry(), and WsfTrackProcessor::GetTrackManager().
Referenced by UpdateTrackData(), and WsfSA_EntityPerception::WsfSA_EntityPerception().
|
inline |
Return a pointer to the WsfSA_Predict module.
|
overridevirtual |
Process script input.
| aInput | input to parse and handle. |
Reimplemented from WsfProcessor.
References cASSETS_DATA, cBEHAVIOR_CALCULATION, cCONTROLS_DATA, cENGAGEMENT_DATA, cFLIGHT_DATA, cFUEL_DATA, cNAV_DATA, cPERCEIVED_ITEM_CALCULATION, cPERCEIVED_ITEM_DATA, cPRIORITIZED_ITEM_CALCULATION, cPRIORITIZED_ITEM_DATA, cSTATUS, cTRACK_DATA, cWEAPONS_DATA, GetCognitiveUpdateGroup(), GetPlatformUpdateGroup(), GetUniversalUpdateGroup(), and WsfScriptProcessor::ProcessInput().
|
overridevirtual |
Process a WsfMessage.
| aSimTime | sim time when processing. |
| aMessage | message to handle. |
Reimplemented from WsfPlatformPart.
| int WsfSA_Processor::QuantityOfChaff | ( | ) | const |
These functions provide data related to expendables.
Returns the available quantity of the chaff cartridges.
Referenced by UpdateWeaponsData().
| int WsfSA_Processor::QuantityOfDecoys | ( | ) | const |
Returns the available quantity of the expendable decoys.
Referenced by UpdateWeaponsData().
| int WsfSA_Processor::QuantityOfFlares | ( | ) | const |
Returns the available quantity of the flare cartridges.
Referenced by UpdateWeaponsData().
| int WsfSA_Processor::QuantityOfSelectedWeapon | ( | ) | const |
Returns the available quantity of the selected weapon.
|
inline |
This returns true if any radar is emitting.
|
inline |
This function returns the name of the optional radar track processor.
If no such processor exists, it returns an empty string.
|
inline |
Reset the purge lifetime limit (sec) for asset data.
| void WsfSA_Processor::ResetUpdateInterval | ( | UpdateType | aUpdateType | ) |
Reset the update interval (sec) for the requested data type to the startup interval.
| aUpdateType | one of WsfSA_Processor::UpdateType enumeration |
|
static |
This will return a double that is a multiple of the parameter provided.
| aNumToRound | double to be round up |
| aMultiple | double to be used as the multiple |
Referenced by Initialize(), and SetUpdateInterval().
|
protected |
This will return true if an AFSIM script function with the specified name exists.
| aScriptName | name of the script to check for. |
| const WsfExplicitWeapon * WsfSA_Processor::SelectedWeapon | ( | ) | const |
Returns a pointer to the selected weapon.
| void WsfSA_Processor::SendMessage | ( | double | aSimTime, |
| const WsfSA_EntityMessage & | aStatusMessage ) |
Send a message to external links.
| aSimTime | sim time to send message. |
| aStatusMessage | message to send. |
References WsfScriptProcessor::mExternalLinks.
Referenced by WsfSA_Perceive::UpdateStatus().
|
inline |
This function sets the aircraft kinematics data.
| bool WsfSA_Processor::SetAssetDataPurgeLifetime | ( | double | aPurgeLifetime | ) |
Set the purge lifetime limit (sec) for asset data.
| aPurgeLifetime | new purge lifetime setting |
| bool WsfSA_Processor::SetDisplayPerceptionDelay | ( | double | aDelayTime | ) |
Set the display perception delay (sec).
| aDelayTime | delay before a new display track becomes perceived entity for processing/clasfficiation |
| void WsfSA_Processor::SetEngagedTarget | ( | SA_EngagedTarget | aTarget | ) |
Set the engaged target using the specified data.
Referenced by UpdateWeaponsData().
|
inline |
This function sets the aircraft flight controls data.
|
inline |
This function sets the flight id.
Zero indicates not a member of any flight.
|
inline |
This function sets the aircraft fuel data.
|
inline |
This function sets the id flag string.
| bool WsfSA_Processor::SetLastUpdateTime | ( | UpdateType | aUpdateType, |
| double | aSimTime ) |
Set the last update time (sec) for the requested data type.
| aUpdateType | one of WsfSA_Processor::UpdateType enumeration |
| aSimTime | time at update. |
Referenced by HandleSA_ProcessorUpdates(), WsfSA_Perceive::TryUpdateAssets(), WsfSA_Perceive::TryUpdatePerceivedItemCalculation(), WsfSA_Perceive::TryUpdatePerceivedItemData(), WsfSA_Perceive::UpdateAssets(), WsfSA_Assess::UpdateEngagements(), UpdateFlightControls(), UpdateFlightKinematics(), UpdateFuel(), UpdateNav(), WsfSA_Assess::UpdatePrioritizedItemCalculation(), WsfSA_Assess::UpdatePrioritizedItemData(), UpdateTracks(), and UpdateWeapons().
| void WsfSA_Processor::SetMasterArm | ( | bool | aArmed | ) |
Returns true if the weapon selection was successful, else false.
| aArmed | set to true to arm, false to safe |
|
inline |
This function sets the aircraft nav data.
| bool WsfSA_Processor::SetNextUpdateTime | ( | UpdateType | aUpdateType, |
| double | aSimTime ) |
Set the next update time (sec) for the requested data type.
| aUpdateType | one of the WsfSA_Processor::UpdateType enumeration |
| aSimTime | time at update |
Referenced by HandleSA_ProcessorUpdates().
| bool WsfSA_Processor::SetSelectedWeapon | ( | std::string | aWeaponName | ) |
Returns true if the weapon selection was successful, else false.
| aWeaponName | name of the desired weapon. |
|
inline |
This function sets the track data.
| bool WsfSA_Processor::SetUpdateInterval | ( | UpdateType | aUpdateType, |
| double | aUpdateInterval ) |
Set the update interval (sec) for the requested data type.
| aUpdateType | one of WsfSA_Processor::UpdateType enumeration |
| aUpdateInterval | new update interval |
References WsfProcessor::GetUpdateInterval(), GetUpdateTypeString(), and RoundToBaseRateMultiple().
| bool WsfSA_Processor::SetVisualPerceptionDelay | ( | double | aDelayTime | ) |
Set the visual perception delay (sec).
| aDelayTime | delay before a new visual track becomes perceived entity for processing/classification |
|
inline |
This function sets the weapons data.
| bool WsfSA_Processor::ShootCueActive | ( | ) | const |
Returns true if the shoot cue is active, else false.
Referenced by UpdateWeaponsData().
| bool WsfSA_Processor::ShootCueBlinking | ( | ) | const |
Returns true if the shoot cue is blinking, else false.
Referenced by UpdateWeaponsData().
| bool WsfSA_Processor::SupportingWeapon | ( | ) | const |
Returns true if a weapon is flight is being supported, else false.
Referenced by UpdateWeaponsData().
| double WsfSA_Processor::TimeToBingo | ( | ) | const |
This returns the time (sec) until reaching bingo state at the current burn rate.
| double WsfSA_Processor::TimeToEmpty | ( | ) | const |
This returns the time (sec) until fuel tank(s) are empty at the current burn rate.
| double WsfSA_Processor::TimeToJoker | ( | ) | const |
This returns the time (sec) until reaching joker state at the current burn rate.
Referenced by DebugTestOutput().
| void WsfSA_Processor::TrackManagerChanged | ( | double | aSimTime, |
| WsfTrackManager * | aNewManagerPtr ) |
Change the track manager.
| aSimTime | sim time when track manager changed. |
| aNewManagerPtr | pointer to the new manager. |
Referenced by Initialize().
| double WsfSA_Processor::TryUpdateBehaviorCalculation | ( | double | aSimTime | ) |
Attempt to update advanced behavior trees and finite state machines, and return an appropriate time for the next event update.
| aSimTime | sim time at which to attempt updating |
References cBEHAVIOR_CALCULATION, WsfProcessor::GetUpdateInterval(), and UpdateBehaviorCalculation().
Referenced by HandleSA_ProcessorUpdates().
| double WsfSA_Processor::TryUpdateFlightControls | ( | double | aSimTime | ) |
Attempt to update flight controls data at a sim time, and return an appropriate time for the next event update.
| aSimTime | sim time at which to attempt updating |
References cCONTROLS_DATA, WsfProcessor::GetUpdateInterval(), and UpdateFlightControls().
Referenced by HandleSA_ProcessorUpdates().
| double WsfSA_Processor::TryUpdateFlightKinematics | ( | double | aSimTime | ) |
Attempt to update flight data at a sim time, and return an appropriate time for the next event update.
| aSimTime | sim time at which to attempt updating |
References cFLIGHT_DATA, WsfProcessor::GetUpdateInterval(), and UpdateFlightKinematics().
Referenced by HandleSA_ProcessorUpdates().
| double WsfSA_Processor::TryUpdateFuel | ( | double | aSimTime | ) |
Attempt to update fuel data at a sim time, and return an appropriate time for the next event update.
| aSimTime | sim time at which to attempt updating |
References cFUEL_DATA, WsfProcessor::GetUpdateInterval(), and UpdateFuel().
Referenced by HandleSA_ProcessorUpdates().
| double WsfSA_Processor::TryUpdateNav | ( | double | aSimTime | ) |
Attempt to update nav data at a sim time, and return an appropriate time for the next event update.
| aSimTime | sim time at which to attempt updating |
References cNAV_DATA, WsfProcessor::GetUpdateInterval(), and UpdateNav().
Referenced by HandleSA_ProcessorUpdates().
| double WsfSA_Processor::TryUpdateTracks | ( | double | aSimTime | ) |
Attempt to update track data at a sim time, and return an appropriate time for the next event update.
| aSimTime | sim time at which to attempt updating |
References cTRACK_DATA, WsfProcessor::GetUpdateInterval(), and UpdateTracks().
Referenced by HandleSA_ProcessorUpdates().
| double WsfSA_Processor::TryUpdateWeapons | ( | double | aSimTime | ) |
Attempt to update weapons data at a sim time, and return an appropriate time for the next event update.
| aSimTime | sim time at which to attempt updating |
References cWEAPONS_DATA, WsfProcessor::GetUpdateInterval(), and UpdateWeapons().
Referenced by HandleSA_ProcessorUpdates().
|
overridevirtual |
Update this processor.
| aSimTime | sim time of the update. |
Reimplemented from WsfProcessor.
References DebugTestOutput(), HandleSA_ProcessorUpdates(), and WsfScriptProcessor::mContextPtr.
| void WsfSA_Processor::UpdateBehaviorCalculation | ( | double | aSimTime | ) |
Update advanced behavior trees and finite state machines.
| aSimTime | sim time at which to update |
References CalculateEmissions(), CalculateObservables(), WsfScriptProcessor::mAdvancedBehaviorTreePtr, WsfScriptProcessor::mBehaviorTreePtr, WsfScriptProcessor::mContextPtr, WsfScriptProcessor::mStateIndex, and WsfScriptProcessor::mStateMachinePtr.
Referenced by TryUpdateBehaviorCalculation().
| void WsfSA_Processor::UpdateFlightControls | ( | double | aSimTime | ) |
Update flight controls data at a sim time, and return an appropriate time for the next event update.
| aSimTime | sim time at which to attempt updating |
References WsfObserver::AirCombatSendFlightControlsData(), cCONTROLS_DATA, GetLastUpdateTime(), WsfPlatformPart::GetPlatform(), WsfPlatformPart::GetSimulation(), SetLastUpdateTime(), and UpdateFlightControlsData().
Referenced by TryUpdateFlightControls().
| void WsfSA_Processor::UpdateFlightControlsData | ( | double | aSimTime | ) |
Update flight controls data at a sim time, and return an appropriate time for the next event update.
| aSimTime | sim time at which to attempt updating |
References P6DofVehicle::AileronLeftValid(), P6DofVehicle::FlapLeftValid(), P6DofVehicle::GetNormalizedTotalThrust(), P6DofVehicle::RudderLeftValid(), P6DofVehicle::RudderValid(), and P6DofVehicle::ThrottleValid().
Referenced by Initialize2(), and UpdateFlightControls().
| void WsfSA_Processor::UpdateFlightKinematics | ( | double | aSimTime | ) |
Update flight data for the platform.
| aSimTime | sim time at which to update |
References WsfObserver::AirCombatSendFlightKinematicsData(), cFLIGHT_DATA, GetLastUpdateTime(), WsfPlatformPart::GetPlatform(), WsfPlatformPart::GetSimulation(), SetLastUpdateTime(), and UpdateFlightKinematicsData().
Referenced by TryUpdateFlightKinematics().
| void WsfSA_Processor::UpdateFlightKinematicsData | ( | double | aSimTime | ) |
Update flight data for the platform.
| aSimTime | sim time at which to update |
References P6DofVehicle::GetAlpha_deg(), P6DofVehicle::GetAltitudeMSL_ft(), WsfSimulation::GetAtmosphere(), P6DofVehicle::GetBeta_deg(), P6DofVehicle::GetHeading_deg(), P6DofVehicle::GetKCAS(), P6DofVehicle::GetKTAS(), P6DofVehicle::GetLat(), P6DofVehicle::GetLon(), P6DofVehicle::GetMach(), P6DofVehicle::GetNx_g(), P6DofVehicle::GetNy_g(), P6DofVehicle::GetPitch_deg(), WsfPlatformPart::GetPlatform(), P6DofVehicle::GetRoll_deg(), WsfPlatformPart::GetSimulation(), P6DofVehicle::GetVertSpeed_fpm(), P6DofVehicle::MaxPotentialManeuverGLoad(), and P6DofVehicle::StallWarningAlert().
Referenced by Initialize2(), and UpdateFlightKinematics().
| void WsfSA_Processor::UpdateFuel | ( | double | aSimTime | ) |
Update fuel data at a sim time, and return an appropriate time for the next event update.
| aSimTime | sim time at which to attempt updating |
References WsfObserver::AirCombatSendFuelData(), cFUEL_DATA, GetLastUpdateTime(), WsfPlatformPart::GetPlatform(), WsfPlatformPart::GetSimulation(), SetLastUpdateTime(), and UpdateFuelData().
Referenced by TryUpdateFuel().
| void WsfSA_Processor::UpdateFuelData | ( | double | aSimTime | ) |
Update fuel data at a sim time, and return an appropriate time for the next event update.
| aSimTime | sim time at which to attempt updating |
References P6DofVehicle::GetCurrentExternalFuelTankQuantity_lbs(), P6DofVehicle::GetCurrentInternalFuelTankQuantity_lbs(), P6DofVehicle::GetCurrentWeight_lbs(), WsfPlatform::GetEmptyMass(), P6DofVehicle::GetExternalFuelTankCapacity_lbs(), P6DofVehicle::GetInternalFuelTankCapacity_lbs(), P6DofVehicle::GetNumberOfExternalTanks(), WsfPlatformPart::GetPlatform(), and P6DofVehicle::GetTotalFuelFlow_pph().
Referenced by Initialize2(), and UpdateFuel().
| void WsfSA_Processor::UpdateNav | ( | double | aSimTime | ) |
Update nav data at a sim time, and return an appropriate time for the next event update.
| aSimTime | sim time at which to attempt updating |
References WsfObserver::AirCombatSendNavData(), cNAV_DATA, GetLastUpdateTime(), WsfPlatformPart::GetPlatform(), WsfPlatformPart::GetSimulation(), SetLastUpdateTime(), and UpdateNavData().
Referenced by TryUpdateNav().
| void WsfSA_Processor::UpdateNavData | ( | double | aSimTime | ) |
Update nav data at a sim time, and return an appropriate time for the next event update.
| aSimTime | sim time at which to attempt updating |
References WsfPlatform::GetMover(), WsfPlatformPart::GetPlatform(), WsfMover::GetRoute(), WsfRoute::GetSize(), WsfRoute::GetWaypoints(), WsfSA_Processor::SA_NavigationLatLon::lat_deg, WsfSA_Processor::SA_NavigationLatLon::lon_deg, and WsfMover::RoutePointIndex().
Referenced by Initialize2(), and UpdateNav().
| void WsfSA_Processor::UpdateTrackData | ( | double | aSimTime | ) |
Update track data for the platform.
| aSimTime | sim time at which to update |
References WsfSA_Processor::SA_TrackEntryData::altitude_ft, WsfSA_Processor::SA_TrackEntryData::altitudeValid, WsfSA_Assess::AspectAngleForTarget2D(), WsfSA_Processor::SA_TrackEntryData::bearing_deg, WsfSA_Processor::SA_TrackEntryData::bearingValid, WsfTrack::cIFF_FOE, WsfTrack::cIFF_FRIEND, WsfTrack::cIFF_NEUTRAL, WsfSA_Processor::SA_TrackEntryData::elevation_deg, WsfSA_Processor::SA_TrackEntryData::elevationValid, EntityIsInAssetGroup(), WsfAuxDataEnabled::GetAuxData(), WsfTrack::GetIFF_Status(), WsfTrackManager::GetLocalTrackList(), WsfPlatformPart::GetPlatform(), WsfSimulation::GetPlatformByIndex(), WsfPlatform::GetSide(), WsfPlatformPart::GetSimulation(), WsfTrack::GetTargetIndex(), WsfTrack::GetTargetName(), WsfTrack::GetTargetType(), WsfTrackListT< T >::GetTrackCount(), WsfTrackListT< T >::GetTrackEntry(), WsfAuxDataEnabled::HasAuxData(), ID_BANDIT, ID_BOGIE, ID_FRIENDLY, ID_NEUTRAL, WsfSA_Processor::SA_TrackEntryData::idAuxValid, WsfSA_Processor::SA_TrackEntryData::identification, WsfSA_Processor::SA_TrackEntryData::idIffValid, WsfSA_Processor::SA_TrackEntryData::idSideValid, WsfSA_Processor::SA_TrackEntryData::idString, WsfSA_Processor::SA_TrackEntryData::idTypeValid, WsfTrack::IFF_StatusValid(), WsfIntercept::Intercept(), IsEnemySide(), IsEnemyType(), WsfTrack::IsFalseTarget(), IsFriendlySide(), IsFriendlyType(), WsfSA_Processor::SA_TrackManagerData::isMasterProcessor, WsfSA_Processor::SA_TrackEntryData::isMissile, IsMissileType(), IsNeutralSide(), IsNeutralType(), WsfSA_Processor::SA_TrackEntryData::lat_deg, WsfSA_Processor::SA_TrackEntryData::latLonValid, WsfSA_Processor::SA_TrackEntryData::lon_deg, WsfSA_Processor::SA_TrackManagerData::name, PlatformInTrackListMWS(), WsfSA_Processor::SA_TrackEntryData::range_nm, WsfSA_Processor::SA_TrackEntryData::rangeRate_kts, WsfSA_Processor::SA_TrackEntryData::rangeRateValid, WsfSA_Processor::SA_TrackEntryData::rangeValid, WsfSA_Processor::SA_TrackEntryData::targetAspect_deg, WsfSA_Processor::SA_TrackEntryData::targetAspectValid, WsfSA_Processor::SA_TrackEntryData::targetHdg_deg, WsfSA_Processor::SA_TrackEntryData::targetHdgValid, targetIndex(), WsfSA_Processor::SA_TrackEntryData::targetPlatformIndex, WsfSA_Processor::SA_TrackEntryData::targetSpeed_kts, WsfSA_Processor::SA_TrackEntryData::targetSpeedValid, WsfSA_Processor::SA_TrackEntryData::tgtPlatformName, WsfSA_Processor::SA_TrackEntryData::tgtTypeName, WsfSA_Processor::SA_TrackManagerData::trackList, UseIFF(), and UseSimpleIdByType().
Referenced by UpdateTracks().
| void WsfSA_Processor::UpdateTracks | ( | double | aSimTime | ) |
Update track data for the platform.
| aSimTime | sim time at which to update |
References WsfObserver::AirCombatSendTrackData(), cTRACK_DATA, GetLastUpdateTime(), WsfPlatformPart::GetPlatform(), WsfPlatformPart::GetSimulation(), SetLastUpdateTime(), and UpdateTrackData().
Referenced by TryUpdateTracks().
| void WsfSA_Processor::UpdateWeapons | ( | double | aSimTime | ) |
Update weapons data at a sim time, and return an appropriate time for the next event update.
| aSimTime | sim time at which to attempt updating |
References WsfObserver::AirCombatSendWeaponsData(), cWEAPONS_DATA, GetLastUpdateTime(), WsfPlatformPart::GetPlatform(), WsfPlatformPart::GetSimulation(), SetLastUpdateTime(), and UpdateWeaponsData().
Referenced by TryUpdateWeapons().
| void WsfSA_Processor::UpdateWeaponsData | ( | double | aSimTime | ) |
Update weapons data at a sim time, and return an appropriate time for the next event update.
| aSimTime | sim time at which to attempt updating |
References EngagedTargetValid(), GetEngagedTarget(), GetMasterArm(), WsfObject::GetName(), WsfExplicitWeapon::GetQuantityRemaining(), WsfSA_Processor::SA_EngagedTarget::isValid, JammingDetected(), MasterCautionActive(), MasterWarningActive(), WsfSA_Processor::SA_EngagedTarget::platformIndex, WsfSA_Processor::SA_WeaponNameQtyPair::quantity, QuantityOfChaff(), QuantityOfDecoys(), QuantityOfFlares(), WsfSA_Processor::SA_EngagedTarget::rangeClosureRate, WsfSA_Processor::SA_WeaponEngagedTarget::rangeClosureRate_kts, WsfSA_Processor::SA_EngagedTarget::rangeCurrent, WsfSA_Processor::SA_WeaponEngagedTarget::rangeCurrent_nm, WsfSA_Processor::SA_EngagedTarget::rangeMax, WsfSA_Processor::SA_WeaponEngagedTarget::rangeMax_nm, WsfSA_Processor::SA_EngagedTarget::rangeMin, WsfSA_Processor::SA_WeaponEngagedTarget::rangeMin_nm, WsfSA_Processor::SA_EngagedTarget::rangeNe, WsfSA_Processor::SA_WeaponEngagedTarget::rangeNe_nm, SetEngagedTarget(), ShootCueActive(), ShootCueBlinking(), SupportingWeapon(), WsfSA_Processor::SA_EngagedTarget::targetAspect, WsfSA_Processor::SA_WeaponEngagedTarget::targetAspect_deg, WsfSA_Processor::SA_EngagedTarget::targetAz, WsfSA_Processor::SA_WeaponEngagedTarget::targetAz_deg, WsfSA_Processor::SA_EngagedTarget::targetEl, WsfSA_Processor::SA_WeaponEngagedTarget::targetEl_deg, WsfSA_Processor::SA_WeaponEngagedTarget::targetIndex, WsfSA_Processor::SA_EngagedTarget::targetKTAS, WsfSA_Processor::SA_WeaponEngagedTarget::targetKTAS, WsfSA_Processor::SA_EngagedTarget::timeToActive, WsfSA_Processor::SA_WeaponEngagedTarget::timeToActive_sec, WsfSA_Processor::SA_EngagedTarget::timeToIntercept, WsfSA_Processor::SA_WeaponEngagedTarget::timeToIntercept_sec, WeaponBayDoorsAreOpen(), and WsfSA_Processor::SA_WeaponNameQtyPair::weaponName.
Referenced by UpdateWeapons().
|
inline |
This function returns true if IFF should be used for identification.
Referenced by UpdateTrackData(), and WsfSA_EntityPerception::WsfSA_EntityPerception().
|
inline |
This function returns true if the max range filter should be applied for assets.
|
inline |
This function returns true if the max range filter should be applied for bogies and bandits.
|
inline |
This function returns true if the max range filter should be applied for engagements.
|
inline |
This function returns true if the simple identification-by-type approach should be used.
Referenced by UpdateTrackData(), and WsfSA_EntityPerception::WsfSA_EntityPerception().
|
inline |
This function returns true if the optional perception master track processor is being used.
| bool WsfSA_Processor::WeaponBayDoorsAreOpen | ( | ) | const |
Returns true if the weapon bay doors are open, else false.
Referenced by UpdateWeaponsData().
|
static |
Referenced by WsfSA_Processor().