Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

BasicData.h File Reference

#include <dos.h>
#include "BasicStrings.h"

Include dependency graph for BasicData.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Classes

struct  EDICtable

Enumerations

enum  enumIrrigationFactorType {
  typeIrrig_cropWat2WasimIrrigationTable, typeIrrig_externalInflow2LiterPerSecond, typeIrrig_cropWatGross2LiterPerSecond, typeIrrig_cropWatExpected2LiterPerSecond,
  typeIrrig_activityKey2LiterPerSecond, typeIrrig_activityKey2mmPerDay, typeIrrig_CropKey2mmPerDay, typeIrrig_MAX,
  typeIrrig_ErrorOutput
}

Functions

void zeitdifferenz (struct time *t2, struct time *t1)
double getTimeDiffInSecWIN (struct time *t2, struct time *t1)
void exitfun ()
int NUM_CATCHMENTS ()
void setNUM_CATCHMENTS (int numC)
int NUM_SECTORS ()
void setNUM_SECTORS (int numS)
int NUMINFLOWS (void)
void setNUMINFLOWS (int numInflows)
int MONATE ()
int NW_ANZAHL ()
int SEG_ANZAHL ()
int POP_ANZAHL ()
int CLU_ANZAHL ()
int MAXLOOP ()
double SHARE_DEMAND_MET ()
void setSHARE_DEMAND_MET (double share)
void NODATAVAL_def (int)
int NODATAVAL ()
void set_MONATE (int maxM)
void setWATER_RIGHTS (int flag)
int WATER_RIGHTS ()
int MAXINVEST ()
int HOECHSTALTER ()
int MINDESTALTER ()
int KOMM ()
int KUMM ()
double LAMBDA ()
double MARGE ()
double MINUMFANG ()
double OVERLAP ()
double RESERVE ()
int SYM_ANZAHL ()
double WAEHRUNG ()
double MINPACHT ()
double PACHTABSCHLAG ()
double PACHTZUSCHLAG ()
int BONUSALTER ()
int BONUSDAUER ()
int IRRIGATIONPROJECTS ()
int CONS_MDL ()
int CROPG_MDL ()
void setCROPG_MDL (int _crop_mdl)
int HYDRO_MDL ()
void setHYDRO_MDL (int _hydro_mdl)
int LIVST_MDL ()
int PERMC_MDL ()
int LANDM_MDL ()
int INPUT_GIS ()
int SPECL_MDL ()
double PLOTSIZE ()
void setPLOTSIZE (double _plotsize)
double CELLLENGTH ()
double DIST_COSTS ()
int TYPEN ()
int KLASSEN ()
int DBG_INFOS ()
 Switches for debugging purposes.
int DYNAMICS_OFF_ALL ()
int DYNAMICS_OFF_HOUSEHOLDS ()
int DYNAMICS_OFF_LIVESTOCK ()
int DYNAMICS_OFF_ASSETS ()
int DYNAMICS_OFF_SOIL_PROCESSES ()
int get_NUMBER_SPIN_UP_ROUNDS ()
void set_NUMBER_SPIN_UP_ROUNDS (int numSpinUpRounds)
double MIN_OBJV ()
int SAVE_MILP (int IdOfMilp)
int SAVE_AGENT (int farmsteadID)
int OSL_TUNE ()
double MAX_TIME ()
void SET_MAX_TIME (double max_time_)
int MAX_ITER ()
int MAX_NODE ()
int totMonth2actMonth (int mTot)
void setDYNAMICINFLOWS (bool)
int DYNAMICINFLOWS ()
bool SPATIAL_ON ()
void set_SPATIAL_ON (bool b)
bool DOPOSTPROCESSING ()
void set_DOPOSTPROCESSING (bool)
int WASIM_DELTAMONTH ()
void ReadWasimFilenames ()
void PrintWasimFilenames ()
void readBasicData ()
void writeBasicData (char *filename)
void readAllDefaults (string fn)
bool TestFun (int testNr)
bool TestFunDestr (int testNr)
void TestFunInit (int max)
int TestFun_getMax ()
void TestFun_setFalse (int testNr)
void TestFun_setTrue (int testNr)
void TestFun_printAllActive ()
bool SpatialExport (int v_)
void SpatialExportDealloc ()
void SpatialExportInit ()
int SpatialExport_getMax ()
void SpatialExport_setFalse (int v_)
void SpatialExport_setTrue (int v_)
void SpatialExport_printAllActive ()
void getReturnIf99 ()
void getReturnIf99 (int)
string getCONTSTR (Content contIn)
void printContString (Content cont)
string returnContString (Content cont)
string cont2string (Content cont)
string exptp2string (ExportType tp)
bool FilterFun (int filterNr)
void FilterFunInit (int max)
void FilterFunDealloc ()
int FilterFun_getMax ()
void FilterFun_setFalse (int filterNr)
void FilterFun_setTrue (int filterNr)
void FilterFun_printAllActive ()
char * const2char (const char *exp)
void const2char (const char *exp, char *out)
string getOnlyNums (string &fn)
string getOneToken (string &fn, string &rest)
string getOneToken (string &fn)
void makeCharFrom3Int (char *irrigIDstr, int crA, int irrTech, int clusterNum)
bool ExportViaTDT (ExportType tp)
void ExportViaTDT_readFromFile (string fn)
int ExportViaTDT_getMax ()
void ExportViaTDT_setFalse (ExportType testNr)
void ExportViaTDT_setTrue (ExportType testNr)
void ExportViaTDT_printToScreen ()
bool ExportTable (ExportType tp)
void ExportTable_printToScreen ()
int ExportTable_getMax ()
void ExportTable_setFalse (ExportType testNr)
void ExportTable_setTrue (ExportType testNr)
int ExportType_firstAdditional ()
void setIRRIGMETHOD (int in)
int IRRIGMETHOD ()
string FILENAME_InflowKey ()
void setFILENAME_InflowKey (string s)
void irrigationFactors_printOptions ()
void irrigationFactors_printCurrentSetting ()
void setIrrigationDefaults ()
int readIrrigationFactors (string fn)
void setIRRIGFACTOR (int unitType, enumIrrigationFactorType conversionType)
double IRRIGFACTOR (enumIrrigationFactorType conversionType)
int getIrrigationUnitType (enumIrrigationFactorType conversionType)
int getIrrigUnitForWasimUnit (int conversionID)
double getFactorFromUnitType (int conversionID)
string irrigationUnitToString (int conversionID)
string getIrrigationFactorDescription (enumIrrigationFactorType)
void deallocateUtilities ()
void TestFunDealloc ()
void ExportTable_readFromFile (string fn)
void setINFLOWINFO (int pos, int val, string name)
int readInflowKey (string fn)
string INFLOW_val2name (int val)
string INFLOW_pos2name (int pos)
int INFLOW_pos2val (int pos)
int INFLOW_val2pos (int pos)
void printINFLOWS (void)
bool checkClassCorrespondsWithType (int cl, int tp)
int soilClassOrder (int priority)
void set_soilClassOrder ()
void readSoilclass (FILE *bdata)
void writeSoilClass (FILE *bdata)
string getFullMpmasFilename (EnumFileType fileTypeEnum_, Content cont, int CatchmentID, int year, int month)
string getTestFilename (string s, int CatchmentID)
int SEED ()
void setSEED (int seed_)
void setSTOPYEAR (int stopyear_)
int STOPYEAR ()
void setIDUM (long idum_)
long IDUM ()
int MAXPERIODIN ()
void setMAXPERIODIN (int maxPeriodIn_)
string getTDTConfigFilename (TypeDataExchangeChannel, TypeDataExchangeType)
string filenameConfigFile (TypeRoleInCoupling roleInCoupling)
void printAllIrrigationMethods ()
string getStringIrrigationMethods (typeIrrigationMethod)
void setCANAL_MODEL (int _canalModelType)
int CANAL_MODEL ()
void setCANAL_INTERNAL_REUSE (int _canalModelType)
int getCANAL_INTERNAL_REUSE ()
void setCANAL_BETA_SHARE (double _betaShare)
double getCANAL_BETA_SHARE ()
void setCANAL_LOSSFACTOR (double _canalLosses)
double getCANAL_LOSSFACTOR ()
void setCANAL_LAMBDA (double _canalLambda)
double getCANAL_LAMBDA ()
void initializeCanalDefault ()
void readCanalFile (string fn)
void setCanalFilename (string fn)
string getCanalFilename ()
void setWASIM_SPINUP (string fn)
string WASIM_SPINUP ()


Enumeration Type Documentation

enum enumIrrigationFactorType
 

Enumeration values:
typeIrrig_cropWat2WasimIrrigationTable 
typeIrrig_externalInflow2LiterPerSecond 
typeIrrig_cropWatGross2LiterPerSecond 
typeIrrig_cropWatExpected2LiterPerSecond 
typeIrrig_activityKey2LiterPerSecond 
typeIrrig_activityKey2mmPerDay 
typeIrrig_CropKey2mmPerDay 
typeIrrig_MAX 
typeIrrig_ErrorOutput 


Function Documentation

int BONUSALTER  ) 
 

int BONUSDAUER  ) 
 

int CANAL_MODEL  ) 
 

double CELLLENGTH  ) 
 

bool checkClassCorrespondsWithType int  cl,
int  tp
 

int CLU_ANZAHL  ) 
 

int CONS_MDL  ) 
 

void const2char const char *  exp,
char *  out
 

char* const2char const char *  exp  ) 
 

string cont2string Content  cont  ) 
 

int CROPG_MDL  ) 
 

int DBG_INFOS  ) 
 

Switches for debugging purposes.

void deallocateUtilities  ) 
 

double DIST_COSTS  ) 
 

bool DOPOSTPROCESSING  ) 
 

int DYNAMICINFLOWS  ) 
 

int DYNAMICS_OFF_ALL  ) 
 

int DYNAMICS_OFF_ASSETS  ) 
 

int DYNAMICS_OFF_HOUSEHOLDS  ) 
 

int DYNAMICS_OFF_LIVESTOCK  ) 
 

int DYNAMICS_OFF_SOIL_PROCESSES  ) 
 

void exitfun  ) 
 

bool ExportTable ExportType  tp  ) 
 

int ExportTable_getMax  ) 
 

void ExportTable_printToScreen  ) 
 

void ExportTable_readFromFile string  fn  ) 
 

void ExportTable_setFalse ExportType  testNr  ) 
 

void ExportTable_setTrue ExportType  testNr  ) 
 

int ExportType_firstAdditional  ) 
 

bool ExportViaTDT ExportType  tp  ) 
 

int ExportViaTDT_getMax  ) 
 

void ExportViaTDT_printToScreen  ) 
 

void ExportViaTDT_readFromFile string  fn  ) 
 

void ExportViaTDT_setFalse ExportType  testNr  ) 
 

void ExportViaTDT_setTrue ExportType  testNr  ) 
 

string exptp2string ExportType  tp  ) 
 

string FILENAME_InflowKey  ) 
 

string filenameConfigFile TypeRoleInCoupling  roleInCoupling  ) 
 

bool FilterFun int  filterNr  ) 
 

int FilterFun_getMax  ) 
 

void FilterFun_printAllActive  ) 
 

void FilterFun_setFalse int  filterNr  ) 
 

void FilterFun_setTrue int  filterNr  ) 
 

void FilterFunDealloc  ) 
 

void FilterFunInit int  max  ) 
 

int get_NUMBER_SPIN_UP_ROUNDS  ) 
 

double getCANAL_BETA_SHARE  ) 
 

int getCANAL_INTERNAL_REUSE  ) 
 

double getCANAL_LAMBDA  ) 
 

double getCANAL_LOSSFACTOR  ) 
 

string getCanalFilename  ) 
 

string getCONTSTR Content  contIn  ) 
 

double getFactorFromUnitType int  conversionID  ) 
 

string getFullMpmasFilename EnumFileType  fileTypeEnum_,
Content  cont,
int  CatchmentID,
int  year,
int  month
 

string getIrrigationFactorDescription enumIrrigationFactorType   ) 
 

int getIrrigationUnitType enumIrrigationFactorType  conversionType  ) 
 

int getIrrigUnitForWasimUnit int  conversionID  ) 
 

string getOneToken string &  fn  ) 
 

string getOneToken string &  fn,
string &  rest
 

string getOnlyNums string &  fn  ) 
 

void getReturnIf99 int   ) 
 

void getReturnIf99  ) 
 

string getStringIrrigationMethods typeIrrigationMethod   ) 
 

string getTDTConfigFilename TypeDataExchangeChannel  ,
TypeDataExchangeType 
 

string getTestFilename string  s,
int  CatchmentID
 

double getTimeDiffInSecWIN struct time *  t2,
struct time *  t1
 

int HOECHSTALTER  ) 
 

int HYDRO_MDL  ) 
 

long IDUM  ) 
 

string INFLOW_pos2name int  pos  ) 
 

int INFLOW_pos2val int  pos  ) 
 

string INFLOW_val2name int  val  ) 
 

int INFLOW_val2pos int  pos  ) 
 

void initializeCanalDefault  ) 
 

int INPUT_GIS  ) 
 

void irrigationFactors_printCurrentSetting  ) 
 

void irrigationFactors_printOptions  ) 
 

int IRRIGATIONPROJECTS  ) 
 

string irrigationUnitToString int  conversionID  ) 
 

double IRRIGFACTOR enumIrrigationFactorType  conversionType  ) 
 

int IRRIGMETHOD  ) 
 

int KLASSEN  ) 
 

int KOMM  ) 
 

int KUMM  ) 
 

double LAMBDA  ) 
 

int LANDM_MDL  ) 
 

int LIVST_MDL  ) 
 

void makeCharFrom3Int char *  irrigIDstr,
int  crA,
int  irrTech,
int  clusterNum
 

double MARGE  ) 
 

int MAX_ITER  ) 
 

int MAX_NODE  ) 
 

double MAX_TIME  ) 
 

int MAXINVEST  ) 
 

int MAXLOOP  ) 
 

int MAXPERIODIN  ) 
 

double MIN_OBJV  ) 
 

int MINDESTALTER  ) 
 

double MINPACHT  ) 
 

double MINUMFANG  ) 
 

int MONATE  ) 
 

int NODATAVAL  ) 
 

void NODATAVAL_def int   ) 
 

int NUM_CATCHMENTS  ) 
 

int NUM_SECTORS  ) 
 

int NUMINFLOWS void   ) 
 

int NW_ANZAHL  ) 
 

int OSL_TUNE  ) 
 

double OVERLAP  ) 
 

double PACHTABSCHLAG  ) 
 

double PACHTZUSCHLAG  ) 
 

int PERMC_MDL  ) 
 

double PLOTSIZE  ) 
 

int POP_ANZAHL  ) 
 

void printAllIrrigationMethods  ) 
 

void printContString Content  cont  ) 
 

void printINFLOWS void   ) 
 

void PrintWasimFilenames  ) 
 

void readAllDefaults string  fn  ) 
 

void readBasicData  ) 
 

void readCanalFile string  fn  ) 
 

int readInflowKey string  fn  ) 
 

int readIrrigationFactors string  fn  ) 
 

void readSoilclass FILE *  bdata  ) 
 

void ReadWasimFilenames  ) 
 

double RESERVE  ) 
 

string returnContString Content  cont  ) 
 

int SAVE_AGENT int  farmsteadID  ) 
 

int SAVE_MILP int  IdOfMilp  ) 
 

int SEED  ) 
 

int SEG_ANZAHL  ) 
 

void set_DOPOSTPROCESSING bool   ) 
 

void SET_MAX_TIME double  max_time_  ) 
 

void set_MONATE int  maxM  ) 
 

void set_NUMBER_SPIN_UP_ROUNDS int  numSpinUpRounds  ) 
 

void set_soilClassOrder  ) 
 

void set_SPATIAL_ON bool  b  ) 
 

void setCANAL_BETA_SHARE double  _betaShare  ) 
 

void setCANAL_INTERNAL_REUSE int  _canalModelType  ) 
 

void setCANAL_LAMBDA double  _canalLambda  ) 
 

void setCANAL_LOSSFACTOR double  _canalLosses  ) 
 

void setCANAL_MODEL int  _canalModelType  ) 
 

void setCanalFilename string  fn  ) 
 

void setCROPG_MDL int  _crop_mdl  ) 
 

void setDYNAMICINFLOWS bool   ) 
 

void setFILENAME_InflowKey string  s  ) 
 

void setHYDRO_MDL int  _hydro_mdl  ) 
 

void setIDUM long  idum_  ) 
 

void setINFLOWINFO int  pos,
int  val,
string  name
 

void setIrrigationDefaults  ) 
 

void setIRRIGFACTOR int  unitType,
enumIrrigationFactorType  conversionType
 

void setIRRIGMETHOD int  in  ) 
 

void setMAXPERIODIN int  maxPeriodIn_  ) 
 

void setNUM_CATCHMENTS int  numC  ) 
 

void setNUM_SECTORS int  numS  ) 
 

void setNUMINFLOWS int  numInflows  ) 
 

void setPLOTSIZE double  _plotsize  ) 
 

void setSEED int  seed_  ) 
 

void setSHARE_DEMAND_MET double  share  ) 
 

void setSTOPYEAR int  stopyear_  ) 
 

void setWASIM_SPINUP string  fn  ) 
 

void setWATER_RIGHTS int  flag  ) 
 

double SHARE_DEMAND_MET  ) 
 

int soilClassOrder int  priority  ) 
 

bool SPATIAL_ON  ) 
 

bool SpatialExport int  v_  ) 
 

int SpatialExport_getMax  ) 
 

void SpatialExport_printAllActive  ) 
 

void SpatialExport_setFalse int  v_  ) 
 

void SpatialExport_setTrue int  v_  ) 
 

void SpatialExportDealloc  ) 
 

void SpatialExportInit  ) 
 

int SPECL_MDL  ) 
 

int STOPYEAR  ) 
 

int SYM_ANZAHL  ) 
 

bool TestFun int  testNr  ) 
 

int TestFun_getMax  ) 
 

void TestFun_printAllActive  ) 
 

void TestFun_setFalse int  testNr  ) 
 

void TestFun_setTrue int  testNr  ) 
 

void TestFunDealloc  ) 
 

bool TestFunDestr int  testNr  ) 
 

void TestFunInit int  max  ) 
 

int totMonth2actMonth int  mTot  ) 
 

int TYPEN  ) 
 

double WAEHRUNG  ) 
 

int WASIM_DELTAMONTH  ) 
 

string WASIM_SPINUP  ) 
 

int WATER_RIGHTS  ) 
 

void writeBasicData char *  filename  ) 
 

void writeSoilClass FILE *  bdata  ) 
 

void zeitdifferenz struct time *  t2,
struct time *  t1
 


Generated on Thu Aug 28 12:38:55 2008 for MPMAS by  doxygen 1.3.9.1