WSF
WsfWeaponServerExtension Class Reference

#include <WsfWeaponServer.hpp>

Inheritance diagram for WsfWeaponServerExtension:
Collaboration diagram for WsfWeaponServerExtension:

Public Member Functions

 WsfWeaponServerExtension ()
bool ProcessInput (UtInput &aInput) override
void SimulationCreated (WsfSimulation &aSimulation) override
Public Member Functions inherited from WsfScenarioExtension
 WsfScenarioExtension ()
 ~WsfScenarioExtension () override
WsfScenarioGetScenario () const
WsfApplicationGetApplication () const
virtual void AddedToScenario ()
virtual void FileLoaded (const std::string &aFileName)
virtual bool Complete ()
virtual bool Complete2 ()
virtual bool AlwaysCreate ()
Public Member Functions inherited from WsfExtension
virtual ~WsfExtension ()=default
const std::string & GetExtensionName () const
Public Member Functions inherited from WsfWeaponServerInput
 WsfWeaponServerInput ()

Additional Inherited Members

Public Attributes inherited from WsfWeaponServerInput
std::map< WsfStringId, WsfStringIdmWeaponNameMapTheirsToOurs
std::map< std::pair< WsfStringId, WsfStringId >, WsfStringIdmPlatformStationToOurWeaponName
std::map< int, WsfStringIdmWeaponEnumToWeaponType
std::map< unsigned int, DisEntityId > mTrackNumberToDisEntityIdMap
bool mHostTrue_ClientFalse
bool mWeaponServerIncluded
bool mDebugEnabled
std::string mErrorString
std::string mWarningString
std::string mOutGoingHostName
unsigned int mOutGoingPort
std::list< WsfStringIdmOutgoingWeaponTypes
unsigned int mPort
std::string mHostName
double mTestRMax
double mTestRMaxTOF
double mTestRNe
double mTestRNeTOF
double mTestRMin
double mTestRMinTOF
double mRpiMultiplier
unsigned int mLarMsgTypeIdIn
unsigned int mLarMsgTypeIdOut
bool mUseTestLARData
bool mDebugSetData
Protected Member Functions inherited from WsfExtension
void InitializeExtensionName (const std::string &aName)

Constructor & Destructor Documentation

◆ WsfWeaponServerExtension()

WsfWeaponServerExtension::WsfWeaponServerExtension ( )

Member Function Documentation

◆ ProcessInput()

bool WsfWeaponServerExtension::ProcessInput ( UtInput & aInput)
overridevirtual

Process potential input for the extension. This method examines the current input command to determine if it is one that is recognized by the extension. If it is one recognized by the extension then it processes the command and returns 'true', otherwise it returns 'false'.

Parameters
aInputa reference to a UtInput object.
Returns
'true' if the command was one recognized by the extension or 'false' if not.
Exceptions
UtInput::ExceptionBase(or an object derived from it) if the command was recognized but contains some sort of error.

Reimplemented from WsfScenarioExtension.

References WsfWeaponServerInput::mDebugEnabled, WsfWeaponServerInput::mErrorString, WsfWeaponServerInput::mHostName, WsfWeaponServerInput::mHostTrue_ClientFalse, WsfWeaponServerInput::mLarMsgTypeIdIn, WsfWeaponServerInput::mLarMsgTypeIdOut, WsfWeaponServerInput::mOutGoingHostName, WsfWeaponServerInput::mOutGoingPort, WsfWeaponServerInput::mOutgoingWeaponTypes, WsfWeaponServerInput::mPlatformStationToOurWeaponName, WsfWeaponServerInput::mPort, WsfWeaponServerInput::mRpiMultiplier, WsfWeaponServerInput::mTestRMax, WsfWeaponServerInput::mTestRMaxTOF, WsfWeaponServerInput::mTestRMin, WsfWeaponServerInput::mTestRMinTOF, WsfWeaponServerInput::mTestRNe, WsfWeaponServerInput::mTestRNeTOF, WsfWeaponServerInput::mTrackNumberToDisEntityIdMap, WsfWeaponServerInput::mUseTestLARData, WsfWeaponServerInput::mWeaponEnumToWeaponType, WsfWeaponServerInput::mWeaponNameMapTheirsToOurs, and WsfWeaponServerInput::mWeaponServerIncluded.

◆ SimulationCreated()

void WsfWeaponServerExtension::SimulationCreated ( WsfSimulation & aSimulation)
overridevirtual

Called when a simulation has been created. (Technically this is called upon entry to WsfSimulation::Initialize()). This is typically used when a scenario extension also requires a simulation extension. The method would typically register the simulation extension as follows:

aSimulation.RegisterExtension("my_ext", new MySimulationExtension());
Parameters
aSimulationThe simulation that is being created. See note below!
Note
This is called upon entry to WsfSimulation::Initialize() and nothing can be assumed about the state of the simulation.
See also
WsfSimulationExtension, WsfApplicationExtension::SimulationCreated

Reimplemented from WsfScenarioExtension.

References WsfSimulation::GetExtension(), WsfExtension::GetExtensionName(), WsfWeaponServerInput::mWeaponServerIncluded, and WsfSimulation::RegisterExtension().


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