|
WSF
|
#include <WsfCyberSimulationExtension.hpp>


Public Member Functions | |
| void | AddedToSimulation () override |
| bool | Initialize () override |
| Observer & | GetObserver () |
| random::RandomManager & | GetCyberDrawManager () |
| EngagementManager & | GetCyberEngagementManager () |
| VisualizationManager & | GetCyberVisualizationManager () |
| trigger::Manager & | GetCyberTriggerManager () |
| EventManager & | GetCyberEventManager () |
| void | PlatformDeleted (double aSimTime, WsfPlatform *aPlatformPtr) |
| 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 |
Static Public Member Functions | |
| static SimulationExtension & | Get (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) |
|
overridevirtual |
Called in response to WsfSimulation::RegisterExtension. The extension has now been registered in the simulation.
Attach the platform deletion callback, to aid in maintaining engagements
Reimplemented from WsfSimulationExtension.
References WsfCSV_EventOutputData::AddDataTags(), WsfEventPipeInterface::AddLogger(), WsfCSV_EventOutput::Find(), WsfEventOutput::Find(), WsfEventPipeInterface::Find(), WsfScriptObserver::Find(), wsf::cyber::ScenarioExtension::Get(), WsfSimulationExtension::GetScenario(), WsfSimulationExtension::GetSimulation(), PlatformDeleted(), WsfObserver::PlatformDeleted(), Register_event_output(), and WsfSimulationExtension::WsfSimulation.
|
static |
Return a reference to the cyber simulation extension.
References WsfSimulation::FindExtension(), WsfSimulationExtension::WsfSimulation, and WsfSimulationExtension::WsfSimulationExtension().
Referenced by wsf::cyber::EventManager::CancelEvent(), wsf::cyber::EngagementManager::CyberAttack(), wsf::cyber::EngagementManager::CyberAttackDetectionDelay(), wsf::cyber::EngagementManager::CyberAttackInitialize(), wsf::cyber::EngagementManager::CyberScanInitialize(), wsf::cyber::Engagement::Draw(), wsf::cyber::Event::Execute(), wsf::cyber::EngagementManager::Get(), wsf::cyber::VisualizationManager::Get(), wsf::cyber::Engagement::MakeConstraintReservations(), wsf::cyber::Engagement::MeetsAttackerConstraints(), wsf::cyber::PlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT(), wsf::cyber::PlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT(), wsf::cyber::PlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT(), wsf::cyber::PlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT(), wsf::cyber::PlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT(), wsf::cyber::PlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT(), wsf::cyber::PlatformScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT(), wsf::cyber::SimulationScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT(), and wsf::cyber::SimulationScriptMethods::UT_DEFINE_SCRIPT_METHOD_EXT().
|
inline |
Referenced by wsf::cyber::Engagement::Draw().
|
inline |
Referenced by wsf::cyber::EventManager::CancelEvent(), and wsf::cyber::EngagementManager::Get().
|
inline |
|
inline |
|
inline |
Referenced by wsf::cyber::VisualizationManager::Get().
|
inline |
|
overridevirtual |
Called in response to WsfSimulation::Initialize. This is called to allow the extension to perform any initialization that is required.
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.
| void wsf::cyber::SimulationExtension::PlatformDeleted | ( | double | aSimTime, |
| WsfPlatform * | aPlatformPtr ) |
References WsfObject::GetName().
Referenced by AddedToSimulation().