Gadget
|
This is the class used to store information about the areas used for the current model. More...
#include <areatime.h>
Public Member Functions | |
AreaClass (CommentStream &infile, Keeper *const keeper, const TimeClass *const TimeInfo) | |
This is the AreaClass constructor. More... | |
~AreaClass () | |
This is the default AreaClass destructor. More... | |
int | numAreas () const |
This will return the number of areas for the current model. More... | |
double | getSize (int area) const |
This will return the size of an area. More... | |
double | getTemperature (int area, int time) const |
This will return the temperature of an area on a timestep. More... | |
int | getInnerArea (int area) const |
This will return the internal identifier of an area. More... | |
int | getModelArea (int area) const |
This will return the external identifier of an area. More... | |
const IntVector & | getAllModelAreas () const |
This will return the the IntVector of all the areas in the current model. More... | |
Protected Attributes | |
IntVector | modelAreas |
This is the IntVector of the areas in the current model. More... | |
FormulaVector | size |
This is the FormulaVector of the size of the areas in the current model. More... | |
DoubleMatrix | temperature |
This is the DoubleMatrix of the temperature, for each timestep, of the areas in the current model. More... | |
This is the class used to store information about the areas used for the current model.
This class keeps an index of the areas in the model. The areas are read in with a numerical identifier, which is stored along with an internal identifier for the areas, which is a simple index starting from 0.
AreaClass::AreaClass | ( | CommentStream & | infile, |
Keeper *const | keeper, | ||
const TimeClass *const | TimeInfo | ||
) |
This is the AreaClass constructor.
infile | is the CommentStream to read the area data from |
keeper | is the Keeper for the current model |
TimeInfo | is the TimeClass for the current model |
|
inline |
This is the default AreaClass destructor.
|
inline |
This will return the the IntVector of all the areas in the current model.
int AreaClass::getInnerArea | ( | int | area | ) | const |
This will return the internal identifier of an area.
area | is the identifier for the required area |
|
inline |
This will return the external identifier of an area.
area | is the identifier for the required area |
|
inline |
This will return the size of an area.
area | is the identifier for the required area |
|
inline |
This will return the temperature of an area on a timestep.
area | is the identifier for the required area |
time | is the identifier for the required timestep |
|
inline |
This will return the number of areas for the current model.
|
protected |
This is the FormulaVector of the size of the areas in the current model.
|
protected |
This is the DoubleMatrix of the temperature, for each timestep, of the areas in the current model.