Gadget
stockvariable.h
Go to the documentation of this file.
1 #ifndef stockvariable_h
2 #define stockvariable_h
3 
4 #include "formulavector.h"
5 #include "areatime.h"
6 #include "commentstream.h"
7 #include "charptrvector.h"
8 #include "stockptrvector.h"
9 
15 public:
19  StockVariable() { value = 0.0; };
28  void read(CommentStream& infile);
33  double getValue() const { return value; };
38  void Interchange(StockVariable& newSV) const;
42  void Update();
46  void Delete() const;
47 private:
51  double value;
56  int biomass;
60  CharPtrVector stocknames;
64  StockPtrVector stocks;
65 };
66 
67 #endif
This class implements a dynamic vector of char values.
Definition: charptrvector.h:8
This is the class used to strip comments (and whitespace) from any input stream.
Definition: commentstream.h:40
This class implements a dynamic vector of Stock values.
Definition: stockptrvector.h:10
This is the class used to calculate the value of the stock-dependent variables used in the model simu...
Definition: stockvariable.h:14
~StockVariable()
This is the default StockVariable destructor.
Definition: stockvariable.cc:38
void Delete() const
This function will delete a StockVariable value.
Definition: stockvariable.cc:77
void Interchange(StockVariable &newSV) const
This function will swap the StockVariable value for a new value.
Definition: stockvariable.cc:83
double getValue() const
This function will return the value of the StockVariable.
Definition: stockvariable.h:33
void read(CommentStream &infile)
This function will read StockVariable data from file.
Definition: stockvariable.cc:11
void Update()
This function will update the StockVariable value.
Definition: stockvariable.cc:44
StockVariable()
This is the default StockVariable constructor.
Definition: stockvariable.h:19