|
WSF
|
#include <Interface.hpp>


Public Member Functions | |
| Interface (InterfaceSetup &aScenario) | |
| void | AddedToSimulation () override |
| ~Interface () override | |
| bool | Initialize () override |
| bool | IncludeJ3xTrackDisEntityId () |
| Returns a boolean used to determine whether or not to include track DIS entity id inside J3.X messages. | |
| void | SendJMessage (double aSimTime, WsfPlatform &aSender, const Messages::InitialBase *aMessage) |
| void | SendJMessage (double aSimTime, WsfPlatform &aSender, const Messages::InitialBase *aMessage, const SlotParameters &aSlotParameters) |
| void | SendRawJMessage (double aSimTime, WsfPlatform *aSender, const char *aDataPtr, int aMessageBytes, int aNPG) |
| void | SendUserDefinedJMessage (double aSimTime, WsfPlatform *aSender, unsigned short *aMessage, int aNPG, int aMessageBytes, int aLabel, int aSubLabel, int aNumMsgs) |
| void | SendUserDefinedJMessage (double aSimTime, WsfPlatform *aSender, unsigned short *aMessage, const SlotParameters &aSlotParameters, int aMessageBytes, int aLabel, int aSubLabel, int aNumMsgs) |
| void | FilterMessageSend (WsfPlatform &aSenderPlatform, int aLabel, int aSubLabel=-1) |
| void | UnfilterMessageSend (WsfPlatform &aSenderPlatform, int aLabel, int aSubLabel=-1) |
| void | FilterMessageSend (WsfPlatform *aSenderPlatform, int aLabel, int aSubLabel=-1) |
| void | UnfilterMessageSend (WsfPlatform *aSenderPlatform, int aLabel, int aSubLabel=-1) |
| unsigned | GetAirSpecificType (WsfStringId aPlatformTypeId) |
| unsigned | GetLandSpecificType (WsfStringId aPlatformTypeId) |
| WsfStringId | GetAirPlatformType (unsigned aAirSpecificTypeId) |
| WsfStringId | GetLandPlatformType (unsigned aLandSpecificTypeId) |
| WsfDisInterface * | GetDisInterface () const |
| Public Member Functions inherited from WsfSimulationExtension | |
| WsfSimulationExtension () | |
| ~WsfSimulationExtension () override=default | |
| WsfSimulation & | GetSimulation () const |
| const WsfScenario & | GetScenario () const |
| virtual bool | PrepareExtension () |
| virtual bool | PlatformsInitialized () |
| virtual void | PendingStart () |
| virtual void | Start () |
| virtual void | Complete (double aSimTime) |
| Public Member Functions inherited from WsfExtension | |
| virtual | ~WsfExtension ()=default |
| const std::string & | GetExtensionName () const |
| Public Member Functions inherited from WsfL16::InterfaceSetup | |
| InterfaceSetup (WsfScenario &aScenario) | |
| bool | ProcessInput (UtInput &aInput) |
| void | PrintScriptUsage () |
| Scripting language. | |
| void | PrintScriptUsageRst () |
| bool | SetNPGTable (int aMsgType, int aNPG) |
| bool | IsRequested () const |
Static Public Member Functions | |
| static int | GetJ3xIdentityFromIFF (WsfTrack::IFF_Status aIFF_Status) |
| static void | SetIFF_FromJ3xIdentity (WsfTrack &aTrack, int aJ3xIdentity) |
| static void | __private_SetSim (WsfSimulationExtension &aExtension, WsfSimulation *aSimPtr) |
Provision to allow an external method to provide the track numbers for a weapon and controller. | |
This decouples the Link-16 interface from the services that are launching and controlling weapons. | |
| using | GetWeaponTrackNumbersFn |
| void | SetWeaponTrackNumbersFunction (GetWeaponTrackNumbersFn aFunctionPtr) |
| void | GetWeaponTrackNumbers (size_t aWeaponIndex, unsigned int &aWeaponTrackNumber, unsigned int &aControllerTrackNumber) |
| static WSF_L16_EXPORT WsfPlatform * | GetControllerFromTrackNumber (WsfSimulation *aSimulationPtr, unsigned int aTrackNumber) |
| static WSF_L16_EXPORT void | SetPlatformTrackNumber (WsfPlatform *aPlatformPtr, unsigned int aTrackNumber) |
Additional Inherited Members | |
| Public Types inherited from WsfL16::InterfaceSetup | |
| enum | TdlHeaderType { cTDL_6 , cTDL_100 } |
| enum | TdlSwapType { cWSF , cTRAP_TOOL } |
| Protected Member Functions inherited from WsfExtension | |
| void | InitializeExtensionName (const std::string &aName) |
WsfL16::Interface is primarily an interface to DIS using the DisSignal PDU.
| WsfL16::Interface::Interface | ( | InterfaceSetup & | aScenario | ) |
|
override |
|
overridevirtual |
Called in response to WsfSimulation::RegisterExtension. The extension has now been registered in the simulation.
Reimplemented from WsfSimulationExtension.
References WsfSimulation::GetExtension(), and WsfSimulationExtension::GetSimulation().
| void WsfL16::Interface::FilterMessageSend | ( | WsfPlatform & | aSenderPlatform, |
| int | aLabel, | ||
| int | aSubLabel = -1 ) |
| void WsfL16::Interface::FilterMessageSend | ( | WsfPlatform * | aSenderPlatform, |
| int | aLabel, | ||
| int | aSubLabel = -1 ) |
| WsfStringId WsfL16::Interface::GetAirPlatformType | ( | unsigned | aAirSpecificTypeId | ) |
References WsfL16::InterfaceSetup::mAirPlatformTypes.
| unsigned WsfL16::Interface::GetAirSpecificType | ( | WsfStringId | aPlatformTypeId | ) |
References WsfL16::InterfaceSetup::mAirSpecificTypes.
|
static |
References WsfComponentList::RoleIterator< T >::AtEnd(), WsfL16::ComputerProcessor::Config(), WsfSimulation::GetPlatformCount(), WsfSimulation::GetPlatformEntry(), WsfObject::IsA_TypeOf(), WsfL16::ComputerProcessor::Configuration::mTrackNumber, platformPtr, and WsfSimulationExtension::WsfSimulation.
Referenced by WsfWeaponServer::SetCommander().
|
inline |
|
static |
| WsfStringId WsfL16::Interface::GetLandPlatformType | ( | unsigned | aLandSpecificTypeId | ) |
References WsfL16::InterfaceSetup::mLandPlatformTypes.
| unsigned WsfL16::Interface::GetLandSpecificType | ( | WsfStringId | aPlatformTypeId | ) |
References WsfL16::InterfaceSetup::mLandSpecificTypes.
| void WsfL16::Interface::GetWeaponTrackNumbers | ( | size_t | aWeaponIndex, |
| unsigned int & | aWeaponTrackNumber, | ||
| unsigned int & | aControllerTrackNumber ) |
Attempt to get the track numbers for a weapon and its controller from an external provider of track numbers. This decouples the Link-16 interface from those interfaces that are launching and controlling weapons.
References WsfSimulationExtension::GetSimulation().
|
inline |
Returns a boolean used to determine whether or not to include track DIS entity id inside J3.X messages.
References WsfL16::InterfaceSetup::mIncludeJ3xTrackDEI.
|
overridevirtual |
Called in response to WsfSimulation::Initialize. This is called to allow the extension to perform any initialization that is required.
Reimplemented from WsfSimulationExtension.
References WsfObserver::DisSignalReceived(), WsfSimulation::GetDateTime(), WsfDateTime::GetJulianDate(), WsfSimulationExtension::GetSimulation(), WsfDateTime::GetStartDate(), WsfDateTime::GetStartJulianDate(), WsfSimulationExtension::Initialize(), WsfObserver::MessageQueued(), WsfObserver::MessageTransmitEnded(), WsfObserver::MessageTransmitted(), WsfObserver::MessageTransmittedHeartbeat(), WsfL16::InterfaceSetup::mIsRequested, WsfL16::InterfaceSetup::mSecondsSinceMidnight, WsfL16::InterfaceSetup::mSecondsTillSimStartSinceJan1_1900, WsfL16::InterfaceSetup::mSlotOffset, WsfObserver::WeaponFired(), and WsfObserver::WeaponTerminated().
| void WsfL16::Interface::SendJMessage | ( | double | aSimTime, |
| WsfPlatform & | aSender, | ||
| const Messages::InitialBase * | aMessage ) |
| void WsfL16::Interface::SendJMessage | ( | double | aSimTime, |
| WsfPlatform & | aSender, | ||
| const Messages::InitialBase * | aMessage, | ||
| const SlotParameters & | aSlotParameters ) |
References WsfComponentList::RoleIterator< T >::AtEnd(), WsfL16::InterfaceSetup::cTDL_100, WsfL16::InterfaceSetup::cWSF, WsfL16::Messages::MessageBitOutput::GetBitOffset(), wsf::comm::Comm::GetClassId(), WsfDisPlatform::GetEntityId(), WsfL16::Messages::InitialBase::GetHeader(), WsfPlatform::GetIndex(), WsfL16::InterfaceSetup::mDebugEnabled, WsfL16::InterfaceSetup::mFillWith31_7, WsfL16::InterfaceSetup::mHeaderTDL100, WsfL16::InterfaceSetup::mHeaderType, WsfL16::InterfaceSetup::mNPGTable, WsfL16::InterfaceSetup::mSwapMethod, WsfL16::InterfaceSetup::mTimeSlotType, WsfL16::Messages::Header::mTimeSlotType, WsfL16::InterfaceSetup::mWSF_HeaderTDL100, WsfL16::Messages::MessageBitOutput::Skip(), and WsfL16::Messages::InitialBase::WriteMessage().
| void WsfL16::Interface::SendRawJMessage | ( | double | aSimTime, |
| WsfPlatform * | aSender, | ||
| const char * | aDataPtr, | ||
| int | aMessageBytes, | ||
| int | aNPG ) |
References WsfL16::InterfaceSetup::cTDL_100, WsfL16::InterfaceSetup::cWSF, WsfPlatform::GetIndex(), WsfL16::InterfaceSetup::mDebugEnabled, WsfL16::InterfaceSetup::mHeaderTDL100, WsfL16::InterfaceSetup::mHeaderType, WsfL16::SlotParameters::mMSEC, WsfL16::SlotParameters::mNetNumber, WsfL16::SlotParameters::mNPG, WsfL16::SlotParameters::mSlotNumber, WsfL16::InterfaceSetup::mSwapMethod, WsfL16::InterfaceSetup::mTimeSlotType, WsfL16::SlotParameters::mTSEC, and WsfL16::InterfaceSetup::mWSF_HeaderTDL100.
| void WsfL16::Interface::SendUserDefinedJMessage | ( | double | aSimTime, |
| WsfPlatform * | aSender, | ||
| unsigned short * | aMessage, | ||
| const SlotParameters & | aSlotParameters, | ||
| int | aMessageBytes, | ||
| int | aLabel, | ||
| int | aSubLabel, | ||
| int | aNumMsgs ) |
References WsfL16::InterfaceSetup::cTDL_100, WsfL16::InterfaceSetup::cWSF, WsfDisPlatform::GetEntityId(), WsfPlatform::GetIndex(), WsfL16::InterfaceSetup::mDebugEnabled, WsfL16::InterfaceSetup::mHeaderTDL100, WsfL16::InterfaceSetup::mHeaderType, WsfL16::InterfaceSetup::mSwapMethod, and WsfL16::InterfaceSetup::mWSF_HeaderTDL100.
| void WsfL16::Interface::SendUserDefinedJMessage | ( | double | aSimTime, |
| WsfPlatform * | aSender, | ||
| unsigned short * | aMessage, | ||
| int | aNPG, | ||
| int | aMessageBytes, | ||
| int | aLabel, | ||
| int | aSubLabel, | ||
| int | aNumMsgs ) |
|
static |
|
static |
|
inline |
Referenced by WsfWeaponServer::Initialize().
| void WsfL16::Interface::UnfilterMessageSend | ( | WsfPlatform & | aSenderPlatform, |
| int | aLabel, | ||
| int | aSubLabel = -1 ) |
| void WsfL16::Interface::UnfilterMessageSend | ( | WsfPlatform * | aSenderPlatform, |
| int | aLabel, | ||
| int | aSubLabel = -1 ) |
| UtCallbackListN<void(double, const WsfL16::Messages::InitialBase&)> WsfL16::Interface::JMessageReceived |
| UtCallbackListN<void(const WsfL16::Messages::InitialBase&)> WsfL16::Interface::JMessageSent |