WSF
wsf::six_dof::ObjectManager Class Reference

#include <WsfSixDOF_ObjectManager.hpp>

Inheritance diagram for wsf::six_dof::ObjectManager:
Collaboration diagram for wsf::six_dof::ObjectManager:

Public Member Functions

 ObjectManager (TypeManager *aTypeManager)
 ~ObjectManager ()=default
void AddedToSimulation () override
 Called by the simulation when this extension has been added.
bool Initialize () override
 Called by the simulation when it is being initialized.
void Start () override
 Called by the simulation when it is about to be started.
void Complete (double aSimTime) override
 Called when the simulation is complete.
bool PrepareExtension () override
void PlatformAdded (double aSimTime, WsfPlatform *aPlatformPtr)
void PlatformDeleted (double aSimTime, WsfPlatform *aPlatformPtr)
void WeaponFired (double aSimTime, const WsfWeaponEngagement *aEngagementPtr, const WsfTrack *aTargetTrackPtr)
void WeaponReloadEnded (double aSimTime, WsfWeapon *aWeaponPtr)
Public Member Functions inherited from WsfSimulationExtension
 WsfSimulationExtension ()
 ~WsfSimulationExtension () override=default
WsfSimulationGetSimulation () const
const WsfScenarioGetScenario () const
virtual bool PlatformsInitialized ()
virtual void PendingStart ()
Public Member Functions inherited from WsfExtension
virtual ~WsfExtension ()=default
const std::string & GetExtensionName () const

Additional Inherited Members

static void __private_SetSim (WsfSimulationExtension &aExtension, WsfSimulation *aSimPtr)
Protected Member Functions inherited from WsfExtension
void InitializeExtensionName (const std::string &aName)

Constructor & Destructor Documentation

◆ ObjectManager()

wsf::six_dof::ObjectManager::ObjectManager ( TypeManager * aTypeManager)
explicit

◆ ~ObjectManager()

wsf::six_dof::ObjectManager::~ObjectManager ( )
default

Member Function Documentation

◆ AddedToSimulation()

void wsf::six_dof::ObjectManager::AddedToSimulation ( )
overridevirtual

◆ Complete()

void wsf::six_dof::ObjectManager::Complete ( double aSimTime)
overridevirtual

Called when the simulation is complete.

Reimplemented from WsfSimulationExtension.

◆ Initialize()

bool wsf::six_dof::ObjectManager::Initialize ( )
overridevirtual

Called by the simulation when it is being initialized.

Reimplemented from WsfSimulationExtension.

◆ PlatformAdded()

void wsf::six_dof::ObjectManager::PlatformAdded ( double aSimTime,
WsfPlatform * aPlatformPtr )

Referenced by AddedToSimulation().

◆ PlatformDeleted()

void wsf::six_dof::ObjectManager::PlatformDeleted ( double aSimTime,
WsfPlatform * aPlatformPtr )

Referenced by AddedToSimulation().

◆ PrepareExtension()

bool wsf::six_dof::ObjectManager::PrepareExtension ( )
overridevirtual

Called in response to a call to WsfSimulation::Initialize and WsfSimulation::PrepareSimulation.

A simulation extension will typically implement either WsfSimulationExtension::Initialize or WsfSimulationExtension::PrepareExtension, or a combination of both. The main difference is that:

  • WsfSimulationExtension::Initialize is called only when a simulation is initialized after being loaded from input files (the normal mode of operation).
  • WsfSimulation::PrepareExecution is called in the former case AND when a simulation is reloaded from a snapshot.

The primary criteria for deciding which method to use is to look at the extension and see if it uses any external resources such as files or sockets. If the extension uses external resources and wants to support snapshotting then it MUST use this this method so it can (re)establish connections to external resources (A snapshot cannot save the state of an open file or socket and so it must be reopened.)

Reimplemented from WsfSimulationExtension.

◆ Start()

void wsf::six_dof::ObjectManager::Start ( )
overridevirtual

Called by the simulation when it is about to be started.

Reimplemented from WsfSimulationExtension.

◆ WeaponFired()

void wsf::six_dof::ObjectManager::WeaponFired ( double aSimTime,
const WsfWeaponEngagement * aEngagementPtr,
const WsfTrack * aTargetTrackPtr )

Referenced by AddedToSimulation().

◆ WeaponReloadEnded()

void wsf::six_dof::ObjectManager::WeaponReloadEnded ( double aSimTime,
WsfWeapon * aWeaponPtr )

Referenced by AddedToSimulation().


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