File control/src/utils/ObserverEvent.hpp

Go to the source code of this file

Observer Events.

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

Events when the observer updates the state estimate.

Public Functions

ObserverEvent(double time, int name)

constructor with time value as a parameter

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

~ObserverEvent()

destructor

SP::Observer observer() const

get the Observer linked to this Event

Return
a SP::Observer to the Observer

void process(Simulation &sim)

Call the capture method of the linked Observer.

Parameters
  • sim: a SP::Simulation (ignored).

void setObserverPtr(SP::Observer newObserver)

set the Observer linked to this Event

Parameters
  • newObserver: the SP::Observer

Private Functions

ObserverEvent()

Default constructor.

ACCEPT_SERIALIZATION(ObserverEvent)

serialization hooks

Private Members

SP::Observer _observer

The observer linked to the present event.