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

inline 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

inline ~ObserverEvent()

destructor

inline SP::Observer observer() const

get the Observer linked to this Event

Returns:

a SP::Observer to the Observer

inline void setObserverPtr(SP::Observer newObserver)

set the Observer linked to this Event

Parameters:

newObserver – the SP::Observer

void process(Simulation &sim)

Call the capture method of the linked Observer.

Parameters:

sim – a SP::Simulation (ignored).

Private Functions

ACCEPT_SERIALIZATION(ObserverEvent)#
inline ObserverEvent()#

Default constructor.

Private Members

SP::Observer _observer#

The observer linked to the present event.