WSF
WsfBrawlerConsicousnessEvent Class Reference

#include <WsfBrawlerConsciousnessEvent.hpp>

Inheritance diagram for WsfBrawlerConsicousnessEvent:
Collaboration diagram for WsfBrawlerConsicousnessEvent:

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.
WsfEventoperator= (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)
WsfSimulationGetSimulation () const
void AddedToEventQueue (WsfSimulation &aSimulation)
 Called when the event is added to the event queue of the specified simulation.

Detailed Description

A BRAWLER Consiousness Event Used by WsfBrawlerPlatform to schedule updates This class replicates the functionality of conevt.f in the BRAWLER v7.5 code

Member Enumeration Documentation

◆ ConsicousnessEventType

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 

Constructor & Destructor Documentation

◆ WsfBrawlerConsicousnessEvent()

WsfBrawlerConsicousnessEvent::WsfBrawlerConsicousnessEvent ( double aSimTime,
size_t aPlatformIndex,
ConsicousnessEventType aType )

Creates a new BRAWLER Consciousness Event.

Parameters
aSimTimeThe current simulation time in seconds
aPlatformIndexThe ID of the platform creating the event
aTypeThe type of consciousness event the new event will represent

References WsfEvent::WsfEvent().

Member Function Documentation

◆ Execute()

WsfEvent::EventDisposition WsfBrawlerConsicousnessEvent::Execute ( )
overridevirtual

Runs the event at the time it was scheduled to occur.

Returns
The disposition status of the event after it has run

Implements WsfEvent.

References WsfEvent::cDELETE, WsfEvent::cRESCHEDULE, WsfBrawlerProcessor::Find(), WsfSimulation::GetPlatformByIndex(), WsfEvent::GetSimulation(), WsfEvent::GetTime(), WsfBrawlerProcessor::MindUpdate(), platformPtr, SELF_CALLED, and WsfEvent::SetTime().


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