Class SensorEvent

Defined in Program listing for file control/src/utils/SensorEvent.hpp

class SensorEvent : public Event

Events when sensor data capture is done.

Public Functions

SensorEvent(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

~SensorEvent()

destructor

void process(Simulation &sim)

Call the capture method of the linked Sensor.

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

SP::Sensor sensor() const

get the Sensor linked to this Event

Return
a pointer to the Sensor

void setSensorPtr(SP::Sensor newSensor)

set the Sensor linked to this Event

Parameters
  • newSensor: the SP::Sensor