 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
18 #ifndef UTILS_COMMON_PARAMETRISEDWRAPPINGCOMMAND_H_
19 #define UTILS_COMMON_PARAMETRISEDWRAPPINGCOMMAND_H_
32 template<
class T,
class S >
S myParameter
The parameter.
SUMOTime(T::* Operation)(SUMOTime, S)
Type of the function to execute. (with parameter)
SUMOTime execute(SUMOTime currentTime)
Executes the command.
bool isDescheduled()
whether this command has been descheduled
ParametrisedWrappingCommand(T *receiver, const S ¶m, Operation operation)
Constructor.
T * myReceiver
The object the action is directed to.
void deschedule()
Marks this Command as being descheduled.
~ParametrisedWrappingCommand()
Destructor.
Base (microsim) event class.
A wrapper for a Command function with parameter.
bool myAmDescheduledByParent
Whether this command was descheduled (is invalid) and shall not be executed.
Operation myOperation
The object's operation to perform.