Class ActuatorEvent

Defined in Program listing for file control/src/utils/ActuatorEvent.hpp

class ActuatorEvent : public Event

Events when sensor data capture is done.

Public Functions

ActuatorEvent(double time, int name)

constructor with time value as a parameter

Parameters
  • time: the time of the Event
  • name: the type of Event

~ActuatorEvent()

destructor

SP::Actuator actuator() const

get the Actuator linked to this Event

Return
a pointer to Actuator

void process(Simulation &sim)

Call the actuate method of the Actuator.

Parameters
  • sim: ignored argument.

void setActuatorPtr(SP::Actuator newActuator)

set the Actuator linked to this ActuatorEvent

Parameters
  • newActuator: the Actuator associated with this Event.