42 virtual void Print(ofstream& outfile) = 0;
84 const char* givenname,
Keeper*
const keeper);
97 void Print(ofstream& outfile);
134 void setMatrixName(
char* name);
140 int useMatrix(
char* name);
144 void checkMatrixIndex();
188 const char* givenname,
Keeper*
const keeper);
201 void Print(ofstream& outfile);
224 int updateVariables(
const TimeClass*
const TimeInfo);
227 double f1x(
double w,
double u,
double D,
double beta);
228 double f2x(
double w,
double u,
double D,
double beta);
This is the class used to store information about the areas used for the current model.
Definition: areatime.h:18
This class implements a dynamic vector of char values.
Definition: charptrvector.h:8
This class implements a dynamic vector of DoubleMatrix values.
Definition: doublematrixptrvector.h:10
This class implements a dynamic vector of DoubleVector values.
Definition: doublematrix.h:11
This class implements a dynamic vector of double values.
Definition: doublevector.h:11
This is the base class for any object that has a name.
Definition: hasname.h:10
This class implements a dynamic vector of IntVector values.
Definition: intmatrix.h:10
This class implements a dynamic vector of int values.
Definition: intvector.h:11
This is the class used to store information about the variables that are used in model simulation.
Definition: keeper.h:17
This is the class used to store information about the areas an object is defined on for the current m...
Definition: livesonareas.h:10
IntVector areas
This is the IntVector of internal areas that the object is defined on.
Definition: livesonareas.h:51
This class implements a dynamic vector of MigrationArea values.
Definition: migrationareaptrvector.h:10
This is the class used to calculate the migration of a stock within the model based on a migration fu...
Definition: migration.h:175
virtual int isMigrationStep(const TimeClass *const TimeInfo)
This will check if the migration process will take place on the current timestep.
Definition: migration.cc:581
~MigrationFunction()
This is the default MigrationFunction destructor.
Definition: migration.cc:508
MigrationFunction(CommentStream &infile, const IntVector &areas, const AreaClass *const Area, const TimeClass *const TimeInfo, const char *givenname, Keeper *const keeper)
This is the MigrationFunction constructor.
Definition: migration.cc:424
const DoubleMatrix & getMigrationMatrix(const TimeClass *const TimeInfo)
This will return the migration matrix that has been calculated.
Definition: migration.cc:525
void Print(ofstream &outfile)
This function will print the migration data.
Definition: migration.cc:514
void Reset()
This function will reset the migration data.
Definition: migration.cc:574
This is the class used to calculate the migration of a stock within the model based on migration rati...
Definition: migration.h:71
virtual int isMigrationStep(const TimeClass *const TimeInfo)
This will check if the migration process will take place on the current timestep.
Definition: migration.cc:415
void Reset()
This function will reset the migration data.
Definition: migration.cc:354
const DoubleMatrix & getMigrationMatrix(const TimeClass *const TimeInfo)
This will return the migration matrix that has been calculated.
Definition: migration.cc:337
MigrationNumbers(CommentStream &infile, const IntVector &areas, const AreaClass *const Area, const TimeClass *const TimeInfo, const char *givenname, Keeper *const keeper)
This is the MigrationNumbers constructor.
Definition: migration.cc:23
~MigrationNumbers()
This is the default MigrationNumbers destructor.
Definition: migration.cc:68
void Print(ofstream &outfile)
This function will print the migration data.
Definition: migration.cc:319
This is the base class used to calculate the migration of a stock within the model.
Definition: migration.h:22
const DoubleVector & getPenalty() const
This will return the penalty that has been calculated due to invalid migration.
Definition: migration.h:53
virtual int isMigrationStep(const TimeClass *const TimeInfo)=0
This will check if the migration process will take place on the current timestep.
virtual void Reset()=0
This function will reset the migration data.
DoubleVector penalty
This is the DoubleVector used to store the migration penalty information.
Definition: migration.h:64
virtual ~Migration()
This is the default Migration destructor.
Definition: migration.h:33
Migration(const IntVector &areas, const char *givenname)
This is the default Migration constructor.
Definition: migration.cc:13
virtual const DoubleMatrix & getMigrationMatrix(const TimeClass *const TimeInfo)=0
This will return the migration matrix that has been calculated.
virtual void Print(ofstream &outfile)=0
This function will print the migration data.
This is the base class used to calculate the value of variables used in the model simulation that are...
Definition: modelvariable.h:19
This is the class used to store the co-ordinates and size of an area, used when calculating the migra...
Definition: rectangle.h:11
This is the class used to store information about the timesteps used for the current model.
Definition: areatime.h:87