WSF
wsf::cyber::EventManager Class Referencefinal

#include <WsfCyberEventManager.hpp>

Public Member Functions

 EventManager (WsfSimulation &aSimulation)
 ~EventManager ()=default
 EventManager (const EventManager &aSrc)=delete
EventManageroperator= (const EventManager &aRhs)=delete
 EventManager (EventManager &&aSrc)=default
EventManageroperator= (EventManager &&aRhs)=default
void AddEvent (std::unique_ptr< Event > aEventPtr)
void EndEvent (bool aAttack, size_t aEngagementKey)
bool CancelEvent (bool aAttack, size_t aEngagementKey)
bool EventExists (bool aAttack, size_t aEngagementKey) const
Event::Type GetEventType (bool aAttack, size_t aEngagementKey) const
 Retrieve the type of the event.

Constructor & Destructor Documentation

◆ EventManager() [1/3]

wsf::cyber::EventManager::EventManager ( WsfSimulation & aSimulation)

◆ ~EventManager()

wsf::cyber::EventManager::~EventManager ( )
default

◆ EventManager() [2/3]

wsf::cyber::EventManager::EventManager ( const EventManager & aSrc)
delete

References EventManager().

◆ EventManager() [3/3]

wsf::cyber::EventManager::EventManager ( EventManager && aSrc)
default

References EventManager().

Member Function Documentation

◆ AddEvent()

void wsf::cyber::EventManager::AddEvent ( std::unique_ptr< Event > aEventPtr)

Add an event. This call will schedule the event with the simulation, and conduct tracking of the event for usage within the cyber library.

References wsf::cyber::Event::cSCAN_DELAY.

Referenced by wsf::cyber::EngagementManager::CyberAttack(), wsf::cyber::EngagementManager::CyberAttackDetectionDelay(), wsf::cyber::EngagementManager::CyberAttackInitialize(), wsf::cyber::EngagementManager::CyberScanInitialize(), and operator=().

◆ CancelEvent()

bool wsf::cyber::EventManager::CancelEvent ( bool aAttack,
size_t aEngagementKey )

Cancel an event. The CancelEvent method removes the event from management, as well as ensures that the simulation event manager does not execute this event. The engagement corresponding to an event canceled in this manner is immediately available for reuse.

References wsf::cyber::EngagementManager::Cancel(), wsf::cyber::SimulationExtension::Get(), and wsf::cyber::SimulationExtension::GetCyberEngagementManager().

Referenced by operator=().

◆ EndEvent()

void wsf::cyber::EventManager::EndEvent ( bool aAttack,
size_t aEngagementKey )

End an event. The EndEvent method only removes the event from management by the cyber event manager. This call is intended to be called only by the event itself upon impending destruction.

Referenced by wsf::cyber::Event::Execute(), and operator=().

◆ EventExists()

bool wsf::cyber::EventManager::EventExists ( bool aAttack,
size_t aEngagementKey ) const

EventExists Query for the existence of a managed event.

Referenced by operator=().

◆ GetEventType()

Event::Type wsf::cyber::EventManager::GetEventType ( bool aAttack,
size_t aEngagementKey ) const

Retrieve the type of the event.

References wsf::cyber::Event::cNONE.

Referenced by operator=().

◆ operator=() [1/2]

EventManager & wsf::cyber::EventManager::operator= ( const EventManager & aRhs)
delete

References EventManager().

◆ operator=() [2/2]

EventManager & wsf::cyber::EventManager::operator= ( EventManager && aRhs)
default

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