Class ControlSensor

Defined in Program listing for file control/src/Sensor/ControlSensor.hpp

class ControlSensor : public Sensor

Generic control Sensor to get the output of the system.

Subclassed by LinearSensor

Public Functions

virtual void initialize(const NonSmoothDynamicalSystem &nsds)

initialize sensor data.

Parameters

nsds – the Model

unsigned int getYDim() const

Get the dimension of the output.

Returns

an unsigned int

inline const SiconosVector &y() const

Get a pointer to the output.

Returns

SP::SiconosVector to the output

virtual void capture() = 0

capture data when the SensorEvent is processed => set data[SensorEvent]=…