OpenWareLaboratory
|
TakeoverValue allows parameters to implement Takeover logic. More...
Public Member Functions | |
const float | DEFAULT_DELTA |
const int | DEFAULT_DELTA |
const float | DEFAULT_DELTA |
const int | DEFAULT_DELTA |
const float | DEFAULT_EXP_C |
const int | DEFAULT_EXP_C |
const float | DEFAULT_EXP_C |
const int | DEFAULT_EXP_C |
const float | DEFAULT_EXP_K |
const int | DEFAULT_EXP_K |
const float | DEFAULT_EXP_K |
const int | DEFAULT_EXP_K |
const float | DEFAULT_LAMBDA |
const int | DEFAULT_LAMBDA |
const float | DEFAULT_LAMBDA |
const int | DEFAULT_LAMBDA |
const float | DEFAULT_LOG_C |
const int | DEFAULT_LOG_C |
const float | DEFAULT_LOG_C |
const int | DEFAULT_LOG_C |
const float | DEFAULT_LOG_K |
const int | DEFAULT_LOG_K |
const float | DEFAULT_LOG_K |
const int | DEFAULT_LOG_K |
T | get () |
bool | isLocked () |
operator T () | |
TakeoverValue< T, Value > & | operator*= (const T &other) |
TakeoverValue< T, Value > & | operator+= (const T &other) |
TakeoverValue< T, Value > & | operator-= (const T &other) |
TakeoverValue< T, Value > & | operator/= (const T &other) |
TakeoverValue< T, Value > & | operator= (const T &x) |
void | reset (T x) |
void | setLocked (bool value) |
TakeoverValue () | |
TakeoverValue (const TakeoverValue< T > &other) | |
TakeoverValue (T threshold, T init) | |
TakeoverValue (T value) | |
void | update (T x) |
Static Public Attributes | |
static const T | DEFAULT_DELTA |
static const T | DEFAULT_EXP_C |
static const T | DEFAULT_EXP_K |
static const T | DEFAULT_LAMBDA |
static const T | DEFAULT_LOG_C |
static const T | DEFAULT_LOG_K |
Protected Attributes | |
bool | locked = false |
T | threshold = Value::DEFAULT_DELTA |
T | value |
TakeoverValue allows parameters to implement Takeover logic.
Takeover logic, also known as 'Match' or 'Soft Takeover', allows for controls to be multiplexed while avoiding sudden jumps in settings. Other common control modes are 'Relative' and 'Jump-to' or 'Skip'.
A TakeoverValue can be locked by calling setLocked(true)
. Further updates are then prevented, until either the TakeoverValue is manually unlocked (i.e. with setLocked(false)
), or the new value falls within a given threshold of the previously set value.
Definition at line 19 of file TakeoverValue.h.
|
inline |
Definition at line 24 of file TakeoverValue.h.
|
inline |
Definition at line 25 of file TakeoverValue.h.
|
inline |
Definition at line 26 of file TakeoverValue.h.
|
inline |
Definition at line 27 of file TakeoverValue.h.
|
inherited |
Definition at line 11 of file SimpleValue.cpp.
|
inherited |
Definition at line 17 of file SimpleValue.cpp.
|
inherited |
Definition at line 61 of file SimpleValue.h.
|
inherited |
Definition at line 67 of file SimpleValue.h.
|
inherited |
Definition at line 12 of file SimpleValue.cpp.
|
inherited |
Definition at line 18 of file SimpleValue.cpp.
|
inherited |
Definition at line 62 of file SimpleValue.h.
|
inherited |
Definition at line 68 of file SimpleValue.h.
|
inherited |
Definition at line 13 of file SimpleValue.cpp.
|
inherited |
Definition at line 19 of file SimpleValue.cpp.
|
inherited |
Definition at line 63 of file SimpleValue.h.
|
inherited |
Definition at line 69 of file SimpleValue.h.
|
inherited |
Definition at line 10 of file SimpleValue.cpp.
|
inherited |
Definition at line 16 of file SimpleValue.cpp.
|
inherited |
Definition at line 60 of file SimpleValue.h.
|
inherited |
Definition at line 66 of file SimpleValue.h.
|
inherited |
Definition at line 14 of file SimpleValue.cpp.
|
inherited |
Definition at line 20 of file SimpleValue.cpp.
|
inherited |
Definition at line 64 of file SimpleValue.h.
|
inherited |
Definition at line 70 of file SimpleValue.h.
|
inherited |
Definition at line 15 of file SimpleValue.cpp.
|
inherited |
Definition at line 21 of file SimpleValue.cpp.
|
inherited |
Definition at line 65 of file SimpleValue.h.
|
inherited |
Definition at line 71 of file SimpleValue.h.
|
inlineinherited |
Definition at line 19 of file SimpleValue.h.
References SimpleValue< T >::value.
Referenced by SimpleValue< T >::operator T().
|
inline |
Definition at line 31 of file TakeoverValue.h.
References TakeoverValue< T, Value >::locked.
|
inline |
Definition at line 40 of file TakeoverValue.h.
|
inline |
Definition at line 55 of file TakeoverValue.h.
References TakeoverValue< T, Value >::update().
|
inline |
Definition at line 47 of file TakeoverValue.h.
References TakeoverValue< T, Value >::update().
|
inline |
Definition at line 51 of file TakeoverValue.h.
References TakeoverValue< T, Value >::update().
|
inline |
Definition at line 59 of file TakeoverValue.h.
References TakeoverValue< T, Value >::update().
|
inline |
Definition at line 43 of file TakeoverValue.h.
References TakeoverValue< T, Value >::update().
|
inlineinherited |
Definition at line 22 of file SimpleValue.h.
References SimpleValue< T >::value.
|
inline |
Definition at line 28 of file TakeoverValue.h.
References TakeoverValue< T, Value >::locked, and SimpleValue< T >::value.
|
inline |
Definition at line 34 of file TakeoverValue.h.
References abs, TakeoverValue< T, Value >::locked, and TakeoverValue< T, Value >::threshold.
Referenced by TakeoverValue< T, Value >::operator*=(), TakeoverValue< T, Value >::operator+=(), TakeoverValue< T, Value >::operator-=(), TakeoverValue< T, Value >::operator/=(), and TakeoverValue< T, Value >::operator=().
|
staticinherited |
Definition at line 52 of file SimpleValue.h.
|
staticinherited |
Definition at line 53 of file SimpleValue.h.
|
staticinherited |
Definition at line 54 of file SimpleValue.h.
|
staticinherited |
Definition at line 51 of file SimpleValue.h.
|
staticinherited |
Definition at line 55 of file SimpleValue.h.
|
staticinherited |
Definition at line 56 of file SimpleValue.h.
|
protected |
Definition at line 21 of file TakeoverValue.h.
Referenced by TakeoverValue< T, Value >::isLocked(), TakeoverValue< T, Value >::setLocked(), and TakeoverValue< T, Value >::update().
|
protected |
Definition at line 22 of file TakeoverValue.h.
Referenced by TakeoverValue< T, Value >::update().
|
protectedinherited |
Definition at line 14 of file SimpleValue.h.
Referenced by SimpleValue< T >::get(), SimpleValue< T >::operator*=(), SimpleValue< T >::operator+=(), SimpleValue< T >::operator-=(), SimpleValue< T >::operator/=(), SimpleValue< T >::reset(), TakeoverValue< T, Value >::setLocked(), and SimpleValue< T >::update().