1 #ifndef modelvariable_h
2 #define modelvariable_h
40 operator double()
const {
return value; };
This is the class used to store information about the variables that are used in model simulation.
Definition: keeper.h:17
This is the base class used to calculate the value of variables used in the model simulation that are...
Definition: modelvariable.h:19
int didChange(const TimeClass *const TimeInfo)
This function will check to see if the ModelVariable value has changed.
Definition: modelvariable.cc:85
~ModelVariable()
This is the default ModelVariable destructor.
Definition: modelvariable.h:28
void Update(const TimeClass *const TimeInfo)
This function will update the ModelVariable value.
Definition: modelvariable.cc:106
MVType getMVType() const
This will return the type of model variable to be used.
Definition: modelvariable.h:72
virtual void read(CommentStream &infile, const TimeClass *const TimeInfo, Keeper *const keeper)
This function will read ModelVariable data from file.
Definition: modelvariable.cc:20
void Interchange(ModelVariable &newMV, Keeper *const keeper) const
This function will swap the ModelVariable value for a new value.
Definition: modelvariable.cc:136
void setValue(double newValue)
This function will update the ModelVariable value.
Definition: modelvariable.cc:12
ModelVariable()
This is the default ModelVariable constructor.
Definition: modelvariable.cc:7
void Delete(Keeper *const keeper) const
This function will delete a ModelVariable value.
Definition: modelvariable.cc:128
This is the class used to calculate the value of the stock-dependent variables used in the model simu...
Definition: stockvariable.h:14
This is the class used to store information about the timesteps used for the current model.
Definition: areatime.h:87
This is the class used to calculate the value of the time-dependent variables used in the model simul...
Definition: timevariable.h:12
MVType
Definition: modelvariable.h:11
@ MVTIME
Definition: modelvariable.h:11
@ MVFORMULA
Definition: modelvariable.h:11
@ MVSTOCK
Definition: modelvariable.h:11