Allows to simulate the behaviour of actuators within the Process. More...
#include <actuator.hpp>

Protected Attributes | |
| uint | nP |
| uint | nU |
Protected Attributes inherited from TransferDevice | |
| Noise ** | additiveNoise |
| DVector | deadTimes |
| VariablesGrid | lastSignal |
| DVector | noiseSamplingTimes |
Protected Attributes inherited from SimulationBlock | |
| BlockName | name |
| RealClock | realClock |
| double | samplingTime |
Protected Attributes inherited from UserInteraction | |
| BlockStatus | status |
Protected Attributes inherited from Options | |
| std::vector< OptionsList > | lists |
Protected Attributes inherited from Logging | |
| std::vector< LogRecord > | logCollection |
| int | logIdx |
Protected Attributes inherited from Plotting | |
| PlotCollection | plotCollection |
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.
| BEGIN_NAMESPACE_ACADO Actuator::Actuator | ( | ) |
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.
@param[in] _nU Number of control inputs to the process. @param[in] _nP Number of parameter inputs to the process. @param[in] _samplingTime Sampling time.
Definition at line 53 of file actuator.cpp.
| Actuator::Actuator | ( | const Actuator & | rhs | ) |
Copy constructor (deep copy).
@param[in] rhs Right-hand side object.
Definition at line 63 of file actuator.cpp.
|
virtual |
Destructor.
Definition at line 70 of file actuator.cpp.
|
protected |
Adds noise to given signals.
@param[in,out] _u Actuator control signal to be noised. @param[in,out] _p Actuator parameter signal to be noised.
Definition at line 498 of file actuator.cpp.
|
protected |
Checks whether the two actuator signal are valid and compatible.
@param[in] _u Actuator control signal. @param[in] _p Actuator parameter signal.
Definition at line 340 of file actuator.cpp.
|
protected |
Delays given signals according to the internal dead times.
@param[in,out] _u Actuator control signal to be delayed. @param[in,out] _p Actuator parameter signal to be delayed.
Definition at line 375 of file actuator.cpp.
|
inline |
Returns dead time of given component of the actuator control signal.
@param[in] idx Index of component.
|
inline |
Returns dead times of the actuator control signal.
Returns pointer to additive noise of given component of the actuator control signal.
@param[in] idx Index of component.
|
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.
|
inline |
Returns number of actuator parameter signal components.
\return Number of actuator parameter signal components.
|
inline |
Returns number of actuator control signal components.
\return Number of actuator control signal components.
|
inline |
Returns dead time of given component of the actuator parameter signal.
@param[in] idx Index of component.
|
inline |
Returns dead times of the actuator parameter signal.
Returns pointer to additive noise of given component of the actuator parameter signal.
@param[in] idx Index of component.
|
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).
@param[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.
@param[in] idx Index of component. @param[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.
@param[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.
@param[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.
@param[in] idx Index of component. @param[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.
@param[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.
@param[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.
|
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.
|
protected |
Number of actuator parameter signal components.
Definition at line 390 of file actuator.hpp.
|
protected |
Number of actuator control signal components.
Definition at line 389 of file actuator.hpp.