|
WSF
|
An event to execute a script at a specified time. More...
#include <WsfScriptContext.hpp>


Public Member Functions | |
| ExecuteTimedEventScript () | |
| ExecuteTimedEventScript (double aSimTime, double aTimeInterval, WsfPlatform *aPlatformPtr, WsfScriptContext *aContextPtr, WsfStringId aScriptName) | |
| 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. | |
Additional Inherited Members | |
| Public Types inherited from WsfEvent | |
| enum | EventDisposition { cDELETE , cRESCHEDULE } |
An event to execute a script at a specified time.
|
inline |
| WsfScriptContext::ExecuteTimedEventScript::ExecuteTimedEventScript | ( | double | aSimTime, |
| double | aTimeInterval, | ||
| WsfPlatform * | aPlatformPtr, | ||
| WsfScriptContext * | aContextPtr, | ||
| WsfStringId | aScriptName ) |
References WsfPlatform::GetIndex(), WsfEvent::WsfEvent(), and WsfScriptContext::WsfScriptContext().
|
overridevirtual |
Execute the specified event.
Implements WsfEvent.
References WsfEvent::cDELETE, WsfEvent::cRESCHEDULE, WsfScriptContext::GetSimulation(), WsfEvent::GetTime(), WsfEvent::SetTime(), and simTime.