|
WSF
|
#include <WsfCyberEventManager.hpp>
Public Member Functions | |
| EventManager (WsfSimulation &aSimulation) | |
| ~EventManager ()=default | |
| EventManager (const EventManager &aSrc)=delete | |
| EventManager & | operator= (const EventManager &aRhs)=delete |
| EventManager (EventManager &&aSrc)=default | |
| EventManager & | operator= (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. | |
| wsf::cyber::EventManager::EventManager | ( | WsfSimulation & | aSimulation | ) |
Referenced by EventManager(), EventManager(), operator=(), and operator=().
|
default |
|
delete |
References EventManager().
|
default |
References EventManager().
| 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=().
| 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=().
| 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=().
| bool wsf::cyber::EventManager::EventExists | ( | bool | aAttack, |
| size_t | aEngagementKey ) const |
EventExists Query for the existence of a managed event.
Referenced by operator=().
| Event::Type wsf::cyber::EventManager::GetEventType | ( | bool | aAttack, |
| size_t | aEngagementKey ) const |
|
delete |
References EventManager().
|
default |
References AddEvent(), CancelEvent(), EndEvent(), EventExists(), EventManager(), and GetEventType().