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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef ActuatorEvent_H
#define ActuatorEvent_H

#include "Event.hpp"
#include "SiconosControlFwd.hpp"
#include "ControlTypeDef.hpp"


class ActuatorEvent : public Event
{

private:

  ACCEPT_SERIALIZATION(ActuatorEvent);


  SP::Actuator _actuator;


  ActuatorEvent(): Event(0.0, ACTUATOR_EVENT, true) {};

public:


  ActuatorEvent(double time, int name): Event(time, name, true) {};


  ~ActuatorEvent() {};


  inline SP::Actuator actuator() const
  {
    return _actuator;
  };


  void setActuatorPtr(SP::Actuator newActuator)
  {
    _actuator = newActuator;
  };


  void process(Simulation& sim);

};

#endif