File control/src/utils/ActuatorEvent.hpp

Go to the source code of this file

Actuator Events.

class ActuatorEvent : public Event
#include <>

Events when sensor data capture is done.

Public Functions

inline ActuatorEvent(double time, int name)

constructor with time value as a parameter

Parameters
  • time – the time of the Event

  • name – the type of Event

inline ~ActuatorEvent()

destructor

inline SP::Actuator actuator() const

get the Actuator linked to this Event

Returns

a pointer to Actuator

inline void setActuatorPtr(SP::Actuator newActuator)

set the Actuator linked to this ActuatorEvent

Parameters

newActuator – the Actuator associated with this Event.

void process(Simulation &sim)

Call the actuate method of the Actuator.

Parameters

sim – ignored argument.

Private Functions

ACCEPT_SERIALIZATION(ActuatorEvent)
inline ActuatorEvent()

Default constructor.

Private Members

SP::Actuator _actuator

The actuator linked to the present event.