This is the base class used to calculate the value of variables used in the model simulation that are based on other values within the model. This can be used to calculate values that can change due to time (using the TimeVariable class) or values that are based on stock population (using the StockVariable class).
More...
#include <modelvariable.h>
This is the base class used to calculate the value of variables used in the model simulation that are based on other values within the model. This can be used to calculate values that can change due to time (using the TimeVariable class) or values that are based on stock population (using the StockVariable class).
- Note
- This will always be overridden by the derived classes that actually calculate the model values
◆ ModelVariable()
ModelVariable::ModelVariable |
( |
| ) |
|
◆ ~ModelVariable()
ModelVariable::~ModelVariable |
( |
| ) |
|
|
inline |
◆ Delete()
void ModelVariable::Delete |
( |
Keeper *const |
keeper | ) |
const |
This function will delete a ModelVariable value.
- Parameters
-
keeper | is the Keeper for the current model |
◆ didChange()
int ModelVariable::didChange |
( |
const TimeClass *const |
TimeInfo | ) |
|
This function will check to see if the ModelVariable value has changed.
- Parameters
-
TimeInfo | is the TimeClass for the current model |
- Returns
- 1 if the values have changed, 0 otherwise
◆ getMVType()
MVType ModelVariable::getMVType |
( |
| ) |
const |
|
inline |
This will return the type of model variable to be used.
- Returns
- sitype
◆ Interchange()
This function will swap the ModelVariable value for a new value.
- Parameters
-
◆ operator double()
ModelVariable::operator double |
( |
| ) |
const |
|
inline |
◆ read()
◆ setValue()
void ModelVariable::setValue |
( |
double |
newValue | ) |
|
◆ Update()
void ModelVariable::Update |
( |
const TimeClass *const |
TimeInfo | ) |
|
The documentation for this class was generated from the following files: