#include <variable.h>
Inheritance diagram for SPARK::Variable::TInterface:


Public Member Functions | |
Structors | |
| TInterface () | |
| Default constructor. | |
| TInterface (SPARK::TVariable *variable) | |
| Normal constructor using a pointer to a SPARK::TVariable object. | |
| TInterface (const TInterface &interf) | |
| Copy constructor. | |
| virtual | ~TInterface () throw () |
| Destructor. | |
Restricted access methods for variable properties | |
| unsigned | GetHandle () const |
| Returns the unique handle as unsigned. | |
| SPARK::VariableTypes | GetType () const |
| Returns the variable type as SPARK::VariableTypes. | |
| unsigned | GetFlag () const |
| Returns internal flag. | |
| double | GetPastValue (unsigned idx) const |
| Returns the past value from idx steps ago. | |
| double | operator[] (unsigned idx) const |
| Returns the past value from idx steps ago. | |
| const std::string & | GetName () const |
| Returns the variable name of the underlying SPARK::TVariable object as const std::string&. | |
| const std::string & | GetUnit () const |
| Returns the variable unit string of the underlying SPARK::TVariable object as const std::string&. | |
| void | SetUnit (const char *unit) |
| Sets the unit string for the underlying variable. | |
| double | GetInit () const |
| Returns the inital value of the underlying SPARK::TVariable object as double. | |
| void | SetInit (double init) |
| Sets the initial value to init. | |
| double | GetMin () const |
| Returns the minimum value of the underlying SPARK::TVariable object as double. | |
| void | SetMin (double min) |
| Sets the minimum value to min. | |
| double | GetMax () const |
| Returns the maximum value of the underlying SPARK::TVariable object as double. | |
| void | SetMax (double max) |
| Sets the maximum value to max. | |
| double | GetAbsTolerance () const |
| Returns the absolute tolerance of the underlying SPARK::TVariable object as double. | |
| void | SetAbsTolerance (double atol) |
| Sets the absolute tolerance to atol. | |
| double | GetScale () const |
| Returns the current scale. | |
| const char * | GetReadUrlString () const |
| Returns Read URL string. | |
| int | GetReadUrlHandle () const |
| Returns Read URL handle. | |
| const char * | GetWriteUrlString () const |
| Returns Write URL string. | |
| int | GetWriteUrlHandle () const |
| Returns Write URL handle. | |
Predicate methods | |
IO methods | |
| void | Write (std::ostream &os) const |
| Writes the variable name, unit and current value to the output stream os. | |
Protected Member Functions | |
| SPARK::TVariable * | GetVariable () |
| Returns underlying pointer. | |
| void | SetValue (double scalar) |
| Sets the current value to scalar. | |
| double | GetValue () const |
| Allows implicit conversion to double by returning the current value. | |
| void | SetTarget (double scalar) |
| Sets the current target value to scalar. | |
| double | GetTarget () const |
| Returns value from evaluating the matched object (used by TEquationSystem and TJacobian internally). | |
| double | GetArgument () const |
| Returns the current argument value as a double. | |
| double | GetInnerValue (unsigned innerStep) const |
| Returns the inner value for innerStep. | |
| void | Bind (SPARK::TVariable *variable) |
| Used by derived classes if required (see TUnknown). | |
|
|
Default constructor.
|
|
|
Normal constructor using a pointer to a SPARK::TVariable object.
|
|
|
Copy constructor.
|
|
|
Destructor.
|
|
|
Returns the unique handle as unsigned.
|
|
|
Returns the variable type as SPARK::VariableTypes.
|
|
|
Returns internal flag.
|
|
|
Returns the past value from idx steps ago.
|
|
|
Returns the past value from idx steps ago.
|
|
|
Returns the variable name of the underlying SPARK::TVariable object as const std::string&.
|
|
|
Returns the variable unit string of the underlying SPARK::TVariable object as const std::string&.
|
|
|
Sets the unit string for the underlying variable.
|
|
|
Returns the inital value of the underlying SPARK::TVariable object as double.
|
|
|
Sets the initial value to init.
|
|
|
Returns the minimum value of the underlying SPARK::TVariable object as double.
|
|
|
Sets the minimum value to min.
|
|
|
Returns the maximum value of the underlying SPARK::TVariable object as double.
|
|
|
Sets the maximum value to max.
|
|
|
Returns the absolute tolerance of the underlying SPARK::TVariable object as double.
|
|
|
Sets the absolute tolerance to atol.
|
|
|
Returns the current scale.
|
|
|
Returns Read URL string.
|
|
|
Returns Read URL handle.
|
|
|
Returns Write URL string.
|
|
|
Returns Write URL handle.
|
|
|
Writes the variable name, unit and current value to the output stream os.
|
|
|
Returns underlying pointer.
|
|
|
Sets the current value to scalar.
|
|
|
Allows implicit conversion to double by returning the current value.
|
|
|
Sets the current target value to scalar.
|
|
|
Returns value from evaluating the matched object (used by TEquationSystem and TJacobian internally).
Reimplemented in SPARK::TUnknown. |
|
|
Returns the current argument value as a double.
|
|
|
Returns the inner value for innerStep.
|
|
|
Used by derived classes if required (see TUnknown).
|