|
WSF
|
An event scheduled to execute a script on a given platform or processor. More...
#include <WsfScriptEvent.hpp>


Public Member Functions | |
| WsfScriptEvent ()=default | |
| WsfScriptEvent (double aSimTime, WsfPlatform *aPlatformPtr, WsfStringId aScriptName, const UtScriptDataList &aScriptArgs) | |
| WsfScriptEvent (double aSimTime, WsfScriptProcessor *aProcessorPtr, WsfStringId aScriptName, const UtScriptDataList &aScriptArgs) | |
| WsfScriptEvent (double aSimTime, WsfSimulation *aSimulationPtr, WsfStringId aScriptName, const UtScriptDataList &aScriptArgs) | |
| Create an event to run a script at a specified in the simulation context. | |
| 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 scheduled to execute a script on a given platform or processor.
|
default |
References WsfScriptEvent().
Referenced by WsfScriptEvent().
| WsfScriptEvent::WsfScriptEvent | ( | double | aSimTime, |
| WsfPlatform * | aPlatformPtr, | ||
| WsfStringId | aScriptName, | ||
| const UtScriptDataList & | aScriptArgs ) |
Create an event to run a script at a specified time from a specified platform context.
| aSimTime | The simulation time when the script is to be executed. |
| aPlatformPtr | The platform containing the context containing the script to execute. |
| aScriptName | The name (ID) of the script to execute. |
| aScriptArgs | The script arguments. |
References WsfSimulation::GetSimTime(), WsfPlatform::GetSimulation(), WsfEvent::SetTime(), simTime, and WsfEvent::WsfEvent().
| WsfScriptEvent::WsfScriptEvent | ( | double | aSimTime, |
| WsfScriptProcessor * | aProcessorPtr, | ||
| WsfStringId | aScriptName, | ||
| const UtScriptDataList & | aScriptArgs ) |
Create an event to run a script at a specified time from a specified processor context.
| aSimTime | The simulation time when the script is to be executed. |
| aProcessorPtr | The platform containing the context containing the script to execute. |
| aScriptName | The name (ID) of the script to execute. |
| aScriptArgs | The script arguments. |
References WsfSimulation::GetSimTime(), WsfPlatformPart::GetSimulation(), WsfEvent::SetTime(), simTime, and WsfEvent::WsfEvent().
| WsfScriptEvent::WsfScriptEvent | ( | double | aSimTime, |
| WsfSimulation * | aSimulationPtr, | ||
| WsfStringId | aScriptName, | ||
| const UtScriptDataList & | aScriptArgs ) |
Create an event to run a script at a specified in the simulation context.
References WsfSimulation::GetSimTime(), WsfEvent::SetTime(), simTime, and WsfEvent::WsfEvent().
|
overridevirtual |
Execute the specified event.
Implements WsfEvent.
References WsfEvent::cDELETE, WsfScriptContext::ExecuteScript(), WsfScriptProcessor::ExecuteScript(), WsfSimulation::GetPlatformByIndex(), WsfSimulation::GetScriptContext(), WsfEvent::GetSimulation(), WsfEvent::GetTime(), and platformPtr.