|
WSF
|
#include <WsfSensor.hpp>


Public Types | |
| enum | EventType { cSELECT , cDESELECT } |
| Public Types inherited from WsfEvent | |
| enum | EventDisposition { cDELETE , cRESCHEDULE } |
Public Member Functions | |
| ModeChangeEvent () | |
| ModeChangeEvent (double aSimTime, EventType aEventType, WsfSensor *aSensorPtr, WsfStringId aModeNameId) | |
| Change mode event that changes a sensor's mode as an event. | |
| 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. | |
This nested class 'ChangeMode' is necessary so that the data necessary for this event is separate from WsfSensorEvent.
| WsfSensor::ModeChangeEvent::ModeChangeEvent | ( | ) |
References cSELECT, and WsfEvent::WsfEvent().
| WsfSensor::ModeChangeEvent::ModeChangeEvent | ( | double | aSimTime, |
| EventType | aEventType, | ||
| WsfSensor * | aSensorPtr, | ||
| WsfStringId | aModeNameId ) |
Change mode event that changes a sensor's mode as an event.
References WsfEvent::WsfEvent(), and WsfSensor::WsfSensor().
|
overridevirtual |
Execute the specified event.
Implements WsfEvent.
References WsfEvent::cDELETE, cDESELECT, cSELECT, WsfSimulation::GetPlatformByIndex(), WsfPlatformPart::GetSimulation(), WsfEvent::GetTime(), and platformPtr.