File control/src/utils/ActuatorEvent.hpp

Go to the source code of this file

Actuator Events.

class ActuatorEvent : public Event
#include <ActuatorEvent.hpp>

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.

Private Functions

ActuatorEvent()

Default constructor.

ACCEPT_SERIALIZATION(ActuatorEvent)

serialization hooks

Private Members

SP::Actuator _actuator

The actuator linked to the present event.