WSF
WsfInterceptCalculator Class Reference

#include <WsfInterceptCalc.hpp>

Inherits il::InterceptCalculatorIface.

Collaboration diagram for WsfInterceptCalculator:

Public Member Functions

 WsfInterceptCalculator ()
virtual ~WsfInterceptCalculator ()=default
bool Initialize (WsfScriptProcessor *script_proc)
virtual bool ScriptCalculatorExists (WsfScriptProcessor *processor, WsfPlatform *owning_platform)
bool CanIntercept (const il::trackRecord &track, const il::weaponRecord *weapon, double &interceptTime_s, double pred_pt_ecef_m[3], double &est_pk, double &weap_max_range, std::weak_ptr< il::logger::GlobalLogger > aGlobalLogger) override
virtual bool CanIntercept (WsfTrack *track, WsfPlatform *owning_platform, WsfWeapon *weapon, double &interceptTime_s, double pred_pt_ecef_m[3], double &est_pk, double &weap_max_range)

Protected Types

typedef std::map< il::idRecord, std::pair< WsfPlatform *, UtScript * > > tPlatformInterceptCalcCache

Protected Member Functions

WsfScriptContextGetContext ()
UtScript * GetInterceptCalculatorOnPlatform (WsfPlatform *platform, bool cache=true)
UtScript * GetInterceptCalculator (WsfScriptContext &context)

Protected Attributes

WsfScriptProcessorm_script_proc
UtScript * m_script
tPlatformInterceptCalcCache m_platform_calculators

Member Typedef Documentation

◆ tPlatformInterceptCalcCache

typedef std::map<il::idRecord, std::pair<WsfPlatform*, UtScript*> > WsfInterceptCalculator::tPlatformInterceptCalcCache
protected

Constructor & Destructor Documentation

◆ WsfInterceptCalculator()

WsfInterceptCalculator::WsfInterceptCalculator ( )

References m_script, and m_script_proc.

◆ ~WsfInterceptCalculator()

virtual WsfInterceptCalculator::~WsfInterceptCalculator ( )
virtualdefault

Member Function Documentation

◆ CanIntercept() [1/2]

bool WsfInterceptCalculator::CanIntercept ( const il::trackRecord & track,
const il::weaponRecord * weapon,
double & interceptTime_s,
double pred_pt_ecef_m[3],
double & est_pk,
double & weap_max_range,
std::weak_ptr< il::logger::GlobalLogger > aGlobalLogger )
override

◆ CanIntercept() [2/2]

◆ GetContext()

WsfScriptContext & WsfInterceptCalculator::GetContext ( )
protected

References m_script_proc.

Referenced by CanIntercept(), and CanIntercept().

◆ GetInterceptCalculator()

UtScript * WsfInterceptCalculator::GetInterceptCalculator ( WsfScriptContext & context)
protected

◆ GetInterceptCalculatorOnPlatform()

UtScript * WsfInterceptCalculator::GetInterceptCalculatorOnPlatform ( WsfPlatform * platform,
bool cache = true )
protected

◆ Initialize()

◆ ScriptCalculatorExists()

bool WsfInterceptCalculator::ScriptCalculatorExists ( WsfScriptProcessor * processor,
WsfPlatform * owning_platform )
virtual

Member Data Documentation

◆ m_platform_calculators

tPlatformInterceptCalcCache WsfInterceptCalculator::m_platform_calculators
protected

◆ m_script

UtScript* WsfInterceptCalculator::m_script
protected

◆ m_script_proc

WsfScriptProcessor* WsfInterceptCalculator::m_script_proc
protected

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