Gadget
|
This is the class used to store information for the current model given from the command-line. More...
#include <maininfo.h>
Public Member Functions | |
MainInfo () | |
This is the MainInfo constructor. More... | |
~MainInfo () | |
This is the default MainInfo destructor. More... | |
void | showCorrectUsage (char *error) |
This function will print an error message, brief help information and then exit. More... | |
void | showUsage () |
This function will print help information and then exit. More... | |
void | checkUsage (const char *const inputdir, const char *const workingdir) |
This function will check the options that have been specified on the commandline. More... | |
void | read (int aNumber, char *const aVector[]) |
This function will read input from the command line. More... | |
void | setPrintInitialFile (char *filename) |
This function will store the filename that the initial model information will be written to. More... | |
void | setPrintFinalFile (char *filename) |
This function will store the filename that the final model information will be written to. More... | |
void | setInitialParamFile (char *filename) |
This function will store the filename that the initial values for the model parameters will be read from. More... | |
void | setMainGadgetFile (char *filename) |
This function will store the filename that the main model information will be read from. More... | |
void | setOptInfoFile (char *filename) |
This function will store the filename that the optimisation information will be read from. More... | |
int | runOptimise () const |
This function will return the flag used to determine whether the likelihood score should be optimised. More... | |
int | runStochastic () const |
This function will return the flag used to determine whether a simulation run should be performed. More... | |
int | runNetwork () const |
This function will return the flag used to determine whether the current simulation has been started using paramin. More... | |
int | runPrint () const |
This function will return the flag used to determine whether the current simulation should print the model output. More... | |
int | getOptInfoGiven () const |
This function will return the flag used to determine whether the optimisation parameters have been given. More... | |
int | getInitialParamGiven () const |
This function will return the flag used to determine whether the initial values for the model parameters have been given. More... | |
int | getForcePrint () const |
This function will return the flag used to force the model to print the model output to file. More... | |
PrintInfo | getPI () const |
This function will return the PrintInfo used to store printing information. More... | |
int | printInitial () const |
This function will return the flag used to determine whether the initial model information should be printed to file. More... | |
int | printFinal () const |
This function will return the flag used to determine whether the final model information should be printed to file. More... | |
char * | getInitialParamFile () const |
This function will return the filename that the initial values for the model parameters will be read from. More... | |
char * | getPrintInitialFile () const |
This function will return the filename that the initial model information will be written to. More... | |
char * | getPrintFinalFile () const |
This function will return the filename that the final model information will be written to. More... | |
char * | getMainGadgetFile () const |
This function will return the filename that the main model information will be read from. More... | |
char * | getOptInfoFile () const |
This function will return the filename that the optimisation information will be read from. More... | |
double | getMaxRatio () const |
This function will return the maximum ratio of a stock that can be consumed on any given timestep. More... | |
This is the class used to store information for the current model given from the command-line.
MainInfo::MainInfo | ( | ) |
This is the MainInfo constructor.
MainInfo::~MainInfo | ( | ) |
This is the default MainInfo destructor.
void MainInfo::checkUsage | ( | const char *const | inputdir, |
const char *const | workingdir | ||
) |
This function will check the options that have been specified on the commandline.
inputdir | is the name of the directory containing the input files to the model |
workingdir | is the name of the directory used for the output from the model |
|
inline |
This function will return the flag used to force the model to print the model output to file.
|
inline |
This function will return the filename that the initial values for the model parameters will be read from.
|
inline |
This function will return the flag used to determine whether the initial values for the model parameters have been given.
|
inline |
This function will return the filename that the main model information will be read from.
|
inline |
This function will return the maximum ratio of a stock that can be consumed on any given timestep.
|
inline |
This function will return the filename that the optimisation information will be read from.
|
inline |
This function will return the flag used to determine whether the optimisation parameters have been given.
|
inline |
|
inline |
This function will return the filename that the final model information will be written to.
|
inline |
This function will return the filename that the initial model information will be written to.
|
inline |
This function will return the flag used to determine whether the final model information should be printed to file.
|
inline |
This function will return the flag used to determine whether the initial model information should be printed to file.
void MainInfo::read | ( | int | aNumber, |
char *const | aVector[] | ||
) |
This function will read input from the command line.
aNumber | is the number of command line entries |
aVector | contains the command line entries |
|
inline |
This function will return the flag used to determine whether the current simulation has been started using paramin.
|
inline |
This function will return the flag used to determine whether the likelihood score should be optimised.
|
inline |
This function will return the flag used to determine whether the current simulation should print the model output.
|
inline |
This function will return the flag used to determine whether a simulation run should be performed.
void MainInfo::setInitialParamFile | ( | char * | filename | ) |
This function will store the filename that the initial values for the model parameters will be read from.
filename | is the name of the file |
void MainInfo::setMainGadgetFile | ( | char * | filename | ) |
This function will store the filename that the main model information will be read from.
filename | is the name of the file |
void MainInfo::setOptInfoFile | ( | char * | filename | ) |
This function will store the filename that the optimisation information will be read from.
filename | is the name of the file |
void MainInfo::setPrintFinalFile | ( | char * | filename | ) |
This function will store the filename that the final model information will be written to.
filename | is the name of the file |
void MainInfo::setPrintInitialFile | ( | char * | filename | ) |
This function will store the filename that the initial model information will be written to.
filename | is the name of the file |
void MainInfo::showCorrectUsage | ( | char * | error | ) |
This function will print an error message, brief help information and then exit.
error | is the error message |
void MainInfo::showUsage | ( | ) |
This function will print help information and then exit.