|
WSF
|
An event associated with communications (transfer complete, etc). More...
#include <WsfCommEvent.hpp>


Public Member Functions | |
| Event (double aSimTime, Comm *aXmtrPtr) | |
| ~Event () override | |
| 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. | |
Static Public Member Functions | |
| static void | ScheduleDeliverMessageEvent (double aSimTime, Comm *aXmtrPtr, Comm *aRcvrPtr, Message *aCommMessagePtr) |
Additional Inherited Members | |
| Public Types inherited from WsfEvent | |
| enum | EventDisposition { cDELETE , cRESCHEDULE } |
An event associated with communications (transfer complete, etc).
| wsf::comm::Event::Event | ( | double | aSimTime, |
| Comm * | aXmtrPtr ) |
Create a Comm event.
| aSimTime | Time at which the event should dispatch. |
| aXmtrPtr | If aEventType == cDELIVER_MESSAGE, this must be the pointer to the transmitting comm device. For all other events this must be the pointer to the comm device to which the event applies. |
References WsfEvent::WsfEvent().
|
override |
|
overridevirtual |
Execute the specified event.
Implements WsfEvent.
References WsfEvent::cDELETE, wsf::comm::layer::cUP_NACK_SEND(), WsfSimulation::GetPlatformByIndex(), WsfEvent::GetSimulation(), WsfEvent::GetTime(), and simTime.