Eclipse SUMO - Simulation of Urban MObility
MSPModel_Remote::Event Class Reference

#include <MSPModel_Remote.h>

Inheritance diagram for MSPModel_Remote::Event:
Collaboration diagram for MSPModel_Remote::Event:

Public Member Functions

 Event (MSPModel_Remote *remoteModel)
 
SUMOTime execute (SUMOTime currentTime) override
 Executes the command. More...
 

Private Attributes

MSPModel_RemotemyRemoteModel
 

Detailed Description

Definition at line 40 of file MSPModel_Remote.h.

Constructor & Destructor Documentation

◆ Event()

MSPModel_Remote::Event::Event ( MSPModel_Remote remoteModel)
inlineexplicit

Definition at line 42 of file MSPModel_Remote.h.

Member Function Documentation

◆ execute()

SUMOTime MSPModel_Remote::Event::execute ( SUMOTime  currentTime)
inlineoverridevirtual

Executes the command.

The implementations should return 0 if the command shall not be repeated, or a value larger than 0 that describe the time after which the command shall be executed again. Values below 0 must not be returned.

Parameters
[in]currentTimeThe current simulation time
Returns
The time after which the command shall be executed again, 0 if this command shall be descheduled.
Exceptions
ProcessErrorDerived actions may throw this exception

Implements Command.

Definition at line 44 of file MSPModel_Remote.h.

References MSPModel_Remote::execute(), and myRemoteModel.

Field Documentation

◆ myRemoteModel

MSPModel_Remote* MSPModel_Remote::Event::myRemoteModel
private

Definition at line 48 of file MSPModel_Remote.h.

Referenced by execute().


The documentation for this class was generated from the following file: