|
WSF
|
#include <WsfBrawlerConsciousnessEvent.hpp>


Public Types | |
| enum | ConsicousnessEventType { SELF_CALLED = 1 , MESSAGE_RECEIPT , NEARBY_UPDATE , PREPLANTED , INFERRED_DETECTION , MWS_ALARM } |
| Public Types inherited from WsfEvent | |
| enum | EventDisposition { cDELETE , cRESCHEDULE } |
Public Member Functions | |
| WsfBrawlerConsicousnessEvent (double aSimTime, size_t aPlatformIndex, ConsicousnessEventType aType) | |
| EventDisposition | Execute () override |
| Public Member Functions inherited from WsfEvent | |
| WsfEvent ()=default | |
| WsfEvent (double aSimTime, int aPriority=0) | |
| WsfEvent (const WsfEvent &aSrc)=delete | |
| Copy constructor and copy assignment deleted to prevent copying. | |
| WsfEvent & | operator= (const WsfEvent &aRhs)=delete |
| virtual | ~WsfEvent ()=default |
| double | GetTime () const |
| int | GetPriority () const |
| bool | ShouldExecute () const |
| void | SetTime (double aSimTime) |
| void | SetPriority (int aPriority) |
| void | SetShouldExecute (bool aExecute) |
| WsfSimulation * | GetSimulation () const |
| void | AddedToEventQueue (WsfSimulation &aSimulation) |
| Called when the event is added to the event queue of the specified simulation. | |
A BRAWLER Consiousness Event Used by WsfBrawlerPlatform to schedule updates This class replicates the functionality of conevt.f in the BRAWLER v7.5 code
Defines the types of consciousness events that can be represented. This enumeration replicates the values used in icetyp defined on line 35 of edata.fi in the BRAWLER v7.5 code
| Enumerator | |
|---|---|
| SELF_CALLED | |
| MESSAGE_RECEIPT | |
| NEARBY_UPDATE | |
| PREPLANTED | |
| INFERRED_DETECTION | |
| MWS_ALARM | |
| WsfBrawlerConsicousnessEvent::WsfBrawlerConsicousnessEvent | ( | double | aSimTime, |
| size_t | aPlatformIndex, | ||
| ConsicousnessEventType | aType ) |
Creates a new BRAWLER Consciousness Event.
| aSimTime | The current simulation time in seconds |
| aPlatformIndex | The ID of the platform creating the event |
| aType | The type of consciousness event the new event will represent |
References WsfEvent::WsfEvent().
|
overridevirtual |
Runs the event at the time it was scheduled to occur.
Implements WsfEvent.
References WsfEvent::cDELETE, WsfEvent::cRESCHEDULE, WsfBrawlerProcessor::Find(), WsfSimulation::GetPlatformByIndex(), WsfEvent::GetSimulation(), WsfEvent::GetTime(), WsfBrawlerProcessor::MindUpdate(), platformPtr, SELF_CALLED, and WsfEvent::SetTime().