|
WSF
|
#include <WsfPlatformPartEvent.hpp>


Public Types | |
| enum | EventType { cUPDATE , cTURN_OFF , cTURN_ON } |
| Public Types inherited from WsfEvent | |
| enum | EventDisposition { cDELETE , cRESCHEDULE } |
Public Member Functions | |
| WsfPlatformPartEvent ()=delete | |
| WsfPlatformPartEvent (double aSimTime, EventType aEventType, WsfPlatformPart *aPartPtr) | |
| 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. | |
An event to process part updates and requests to turn a part on or off.
This event is queued by WsfEventStepSimulation (or anything that wants to behave like it).
| Enumerator | |
|---|---|
| cUPDATE | Call the sensors Update() method. |
| cTURN_OFF | Turn the sensor off. |
| cTURN_ON | Turn the sensor on. |
|
delete |
References WsfPlatformPartEvent().
Referenced by WsfPlatformPartEvent().
| WsfPlatformPartEvent::WsfPlatformPartEvent | ( | double | aSimTime, |
| EventType | aEventType, | ||
| WsfPlatformPart * | aPartPtr ) |
References platformPtr, and WsfEvent::WsfEvent().
|
overridevirtual |
Execute the specified event.
Implements WsfEvent.
References WsfSimulation::AddEvent(), WsfEvent::cDELETE, WsfEvent::cRESCHEDULE, cTURN_OFF, cTURN_ON, cUPDATE, WsfSimulation::GetMultiThreadManager(), WsfPlatformPart::GetPartType(), WsfEvent::GetSimulation(), WsfEvent::GetTime(), WsfPlatformPart::GetUpdateEventEpoch(), WsfPlatformPart::GetUpdateInterval(), WsfPlatformPart::IncrementUpdateEventEpoch(), WsfPlatformPart::IsExternallyControlled(), WsfSensor::IsSlave(), WsfEvent::SetTime(), WsfPlatformPart::SetUpdateEventActive(), simTime, WsfPlatformPart::TurnOff(), WsfPlatformPart::TurnOn(), WsfMultiThreadManager::TurnSensorOff(), WsfMultiThreadManager::TurnSensorOn(), and WsfPlatformPart::Update().