WSF
wsf::cyber::SimulationExtension Class Reference

#include <WsfCyberSimulationExtension.hpp>

Inheritance diagram for wsf::cyber::SimulationExtension:
Collaboration diagram for wsf::cyber::SimulationExtension:

Public Member Functions

void AddedToSimulation () override
bool Initialize () override
ObserverGetObserver ()
random::RandomManagerGetCyberDrawManager ()
EngagementManagerGetCyberEngagementManager ()
VisualizationManagerGetCyberVisualizationManager ()
trigger::Manager & GetCyberTriggerManager ()
EventManagerGetCyberEventManager ()
void PlatformDeleted (double aSimTime, WsfPlatform *aPlatformPtr)
Public Member Functions inherited from WsfSimulationExtension
 WsfSimulationExtension ()
 ~WsfSimulationExtension () override=default
WsfSimulationGetSimulation () const
const WsfScenarioGetScenario () 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

Static Public Member Functions

static SimulationExtensionGet (const WsfSimulation &aSimulation)
 Return a reference to the cyber simulation extension.
static void __private_SetSim (WsfSimulationExtension &aExtension, WsfSimulation *aSimPtr)

Additional Inherited Members

Protected Member Functions inherited from WsfExtension
void InitializeExtensionName (const std::string &aName)

Member Function Documentation

◆ AddedToSimulation()

◆ Get()

◆ GetCyberDrawManager()

random::RandomManager & wsf::cyber::SimulationExtension::GetCyberDrawManager ( )
inline

◆ GetCyberEngagementManager()

EngagementManager & wsf::cyber::SimulationExtension::GetCyberEngagementManager ( )
inline

◆ GetCyberEventManager()

◆ GetCyberTriggerManager()

trigger::Manager & wsf::cyber::SimulationExtension::GetCyberTriggerManager ( )
inline

◆ GetCyberVisualizationManager()

VisualizationManager & wsf::cyber::SimulationExtension::GetCyberVisualizationManager ( )
inline

◆ GetObserver()

Observer & wsf::cyber::SimulationExtension::GetObserver ( )
inline

◆ Initialize()

bool wsf::cyber::SimulationExtension::Initialize ( )
overridevirtual

Called in response to WsfSimulation::Initialize. This is called to allow the extension to perform any initialization that is required.

Note
The extension should not assume that another extension has been initialized unless it this extension has been registered as a dependency of the other extension.

Initialize the random variables for attack types. Because of the way that WsfRandomVariable is initialized, this must be done here to have access to the simulation random seed, as attack types are not platform components and have no reasonable means of access to the simulation. Therefore, the sim will "push" this data to the attack when it becomes available here via initialization.

Check each attack for valid effects.

Reimplemented from WsfSimulationExtension.

References wsf::cyber::ScenarioExtension::Get(), wsf::cyber::ScenarioExtension::GetAttackTypes(), WsfObjectTypeList< T >::GetCurrentTypes(), WsfSimulationExtension::GetScenario(), WsfSimulationExtension::GetSimulation(), and ok.

◆ PlatformDeleted()

void wsf::cyber::SimulationExtension::PlatformDeleted ( double aSimTime,
WsfPlatform * aPlatformPtr )

References WsfObject::GetName().

Referenced by AddedToSimulation().


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