Allows to simulate the behaviour of actuators within the Process. More...
#include <actuator.hpp>
Allows to simulate the behaviour of actuators within the Process.
The class Actuator allows to simulate the behaviour of actuators within the Process.
Definition at line 54 of file actuator.hpp.
Default constructor.
Definition at line 46 of file actuator.cpp.
Actuator::Actuator | ( | uint | _nU, |
uint | _nP = 0 , |
||
double | _samplingTime = DEFAULT_SAMPLING_TIME |
||
) |
Constructor which takes the number of process inputs and the sampling time.
[in] | _nU | Number of control inputs to the process. |
[in] | _nP | Number of parameter inputs to the process. |
[in] | _samplingTime | Sampling time. |
Definition at line 53 of file actuator.cpp.
Actuator::Actuator | ( | const Actuator & | rhs | ) |
Copy constructor (deep copy).
[in] | rhs | Right-hand side object. |
Definition at line 63 of file actuator.cpp.
Actuator::~Actuator | ( | ) | [virtual] |
Destructor.
Definition at line 70 of file actuator.cpp.
returnValue Actuator::addActuatorNoise | ( | VariablesGrid & | _u, |
VariablesGrid & | _p | ||
) | const [protected] |
Adds noise to given signals.
[in,out] | _u | Actuator control signal to be noised. |
[in,out] | _p | Actuator parameter signal to be noised. |
Definition at line 498 of file actuator.cpp.
returnValue Actuator::checkInputConsistency | ( | const VariablesGrid & | _u, |
const VariablesGrid & | _p | ||
) | const [protected] |
Checks whether the two actuator signal are valid and compatible.
Definition at line 340 of file actuator.cpp.
returnValue Actuator::delayActuatorInput | ( | VariablesGrid & | _u, |
VariablesGrid & | _p | ||
) | [protected] |
Delays given signals according to the internal dead times.
[in,out] | _u | Actuator control signal to be delayed. |
[in,out] | _p | Actuator parameter signal to be delayed. |
Definition at line 375 of file actuator.cpp.
double Actuator::getControlDeadTime | ( | uint | idx | ) | const [inline] |
Returns dead time of given component of the actuator control signal.
[in] | idx | Index of component. |
DVector Actuator::getControlDeadTimes | ( | ) | const [inline] |
Returns dead times of the actuator control signal.
Noise* Actuator::getControlNoise | ( | uint | idx | ) | const [inline] |
Returns pointer to additive noise of given component of the actuator control signal.
[in] | idx | Index of component. |
returnValue Actuator::getDelayedInputGrids | ( | const VariablesGrid & | _u, |
const VariablesGrid & | _p, | ||
VariablesGrid & | _uDelayed, | ||
VariablesGrid & | _pDelayed | ||
) | const [protected] |
Returns time grids for representing the given actuator signals in delayed form.
[in] | _u | Actuator control signal to be delayed. |
[in] | _p | Actuator parameter signal to be delayed. |
[out] | _uDelayed | Time grid for representing delayed actuator control signal. |
[out] | _pDelayed | Time grid for representing delayed actuator parameter signal. |
Definition at line 434 of file actuator.cpp.
uint Actuator::getNP | ( | ) | const [inline] |
Returns number of actuator parameter signal components.
uint Actuator::getNU | ( | ) | const [inline] |
Returns number of actuator control signal components.
double Actuator::getParameterDeadTime | ( | uint | idx | ) | const [inline] |
Returns dead time of given component of the actuator parameter signal.
[in] | idx | Index of component. |
DVector Actuator::getParameterDeadTimes | ( | ) | const [inline] |
Returns dead times of the actuator parameter signal.
Noise* Actuator::getParameterNoise | ( | uint | idx | ) | const [inline] |
Returns pointer to additive noise of given component of the actuator parameter signal.
[in] | idx | Index of component. |
returnValue Actuator::init | ( | double | _startTime = 0.0 , |
const DVector & | _startValueU = emptyConstVector , |
||
const DVector & | _startValueP = emptyConstVector |
||
) | [virtual] |
Initializes all components of the actuator and the lastSignal member based on the given start information.
[in] | _startTime | Start time. |
[in] | _startValueU | Initial value of the actuator control signal. |
[in] | _startValueP | Initial value of the actuator parameter signal. |
Definition at line 286 of file actuator.cpp.
Assignment operator (deep copy).
[in] | rhs | Right-hand side object. |
Definition at line 75 of file actuator.cpp.
returnValue Actuator::setControlDeadTime | ( | uint | idx, |
double | _deadTime | ||
) |
Assigns new dead time to given component of the actuator control signal.
[in] | idx | Index of component. |
[in] | _deadTimes | New dead time. |
Definition at line 211 of file actuator.cpp.
returnValue Actuator::setControlDeadTimes | ( | const DVector & | _deadTimes | ) |
Assigns new dead times to each component of the actuator control signal.
[in] | _deadTimes | New dead times. |
Definition at line 176 of file actuator.cpp.
returnValue Actuator::setControlDeadTimes | ( | double | _deadTime | ) |
Assigns new dead time to all components of the actuator control signal.
[in] | _deadTime | New dead time. |
Definition at line 195 of file actuator.cpp.
returnValue Actuator::setControlNoise | ( | const Noise & | _noise, |
double | _noiseSamplingTime | ||
) |
Assigns new additive noise with given sampling time to all components of the actuator control signal.
[in] | _noise | New additive noise. |
[in] | _noiseSamplingTime | New noise sampling time. |
Definition at line 89 of file actuator.cpp.
returnValue Actuator::setControlNoise | ( | uint | idx, |
const Noise & | _noise, | ||
double | _noiseSamplingTime | ||
) |
Assigns new additive noise with given sampling time to given component of the actuator control signal.
[in] | idx | Index of component. |
[in] | _noise | New additive noise. |
[in] | _noiseSamplingTime | New noise sampling time. |
Definition at line 110 of file actuator.cpp.
returnValue Actuator::setParameterDeadTime | ( | uint | idx, |
double | _deadTime | ||
) |
Assigns new dead time to given component of the actuator parameter signal.
[in] | idx | Index of component. |
[in] | _deadTimes | New dead time. |
Definition at line 266 of file actuator.cpp.
returnValue Actuator::setParameterDeadTimes | ( | const DVector & | _deadTimes | ) |
Assigns new dead times to each component of the actuator parameter signal.
[in] | _deadTimes | New dead times. |
Definition at line 231 of file actuator.cpp.
returnValue Actuator::setParameterDeadTimes | ( | double | _deadTime | ) |
Assigns new dead time to all components of the actuator parameter signal.
[in] | _deadTime | New dead time. |
Definition at line 250 of file actuator.cpp.
returnValue Actuator::setParameterNoise | ( | const Noise & | _noise, |
double | _noiseSamplingTime | ||
) |
Assigns new additive noise with given sampling time to all components of the actuator parameter signal.
[in] | _noise | New additive noise. |
[in] | _noiseSamplingTime | New noise sampling time. |
Definition at line 132 of file actuator.cpp.
returnValue Actuator::setParameterNoise | ( | uint | idx, |
const Noise & | _noise, | ||
double | _noiseSamplingTime | ||
) |
Assigns new additive noise with given sampling time to given component of the actuator parameter signal.
[in] | idx | Index of component. |
[in] | _noise | New additive noise. |
[in] | _noiseSamplingTime | New noise sampling time. |
Definition at line 153 of file actuator.cpp.
returnValue Actuator::step | ( | VariablesGrid & | _u, |
VariablesGrid & | _p = emptyVariablesGrid |
||
) | [virtual] |
Performs one step of the actuator transforming the given signals according to the internal actuator settings.
[in,out] | _u | Actuator control signal to be transformed. |
[in,out] | _p | Actuator parameter signal to be transformed. |
Definition at line 307 of file actuator.cpp.
uint Actuator::nP [protected] |
Number of actuator parameter signal components.
Definition at line 390 of file actuator.hpp.
uint Actuator::nU [protected] |
Number of actuator control signal components.
Definition at line 389 of file actuator.hpp.