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

MpmasWasimInterface.h File Reference

#include <string>
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <dos.h>

Include dependency graph for MpmasWasimInterface.h:

Include dependency graph

Go to the source code of this file.

Enumerations

enum  enumActivityKeyNames {
  typeAKeyActivityID, typeAKeyLPCOL, typeAKeyPRICECOL, typeAKeyLPROW,
  typeAKeySOILCLASS, typeAKeyIPG, typeAKeyKRTYPE, typeAKeyKY,
  typeAKeyCROPTYPE, typeAKeyIRRMETHOD, typeAKeyYIELDMAX, typeAKeyIrrigEfficiency,
  typeAKeyLanduseMpmas, typeAKeyLanduseWasim, typeAKeyCropID, typeAKeyEND,
  matrixTypeAKeyMonthlyDemand, matrixTypeAKeyExpectations, finalAKey
}

Functions

void readActivityKey (ifstream &stream, string *&colNamesActivityKey, classInputTable &activityKey, MatrixDouble &matrixMonthlyWaterDemand, MatrixDouble &matrixMonthlyWaterExpectations)
void readActivityKey (string fn, string *&colNamesActivityKey, classInputTable &activityKey, MatrixDouble &matrixMonthlyWaterDemand, MatrixDouble &matrixMonthlyWaterExpectations)
void getKeyfileColumnNames (string *&colNamesActivityKey)
int readTable_ActivityKey_Lookup (MatrixDouble &lookup_CroppingActivity2WasimLanduse, string fnActivityKey)
int readTable_CropKey_Lookup (MatrixDouble &lookupMatrix_LuMpmas_2_LuWASIM, string fnCropKey)
void addToLookup_CropKey (MatrixDouble &lookup_CroppingActivity2WasimLanduse, MatrixDouble &lookupMatrix_LuMpmas_2_LuWASIM)
void translateIrrigQuant2WASIM (Raster2D &irrigIDs, Raster2D &gisCropAct, Raster2D &gisIrrigQuant, MatrixDouble &MAT_IRRIGID, int maxExpansion)
int rescale_CREATEMAP (Raster2D &C, Raster2D &f, Raster2D &gisLink_g2G, Raster2D &g, Raster2D &G, int &shift_f2g_row, int &shift_f2g_col)
void rescale_G2f_old (Raster2D &G, Raster2D &gisLink_g2G, int shift_f2g_row, int shift_f2g_col, int ratio, Raster2D &gisTarget)
int rescale_CREATEMAP_f2G (Raster2D &C, Raster2D &f, Raster2D &G, Raster2D &gis_Link_f2G, MatrixDouble &mSHIFT)
void rescale_C2f (Raster2D &C, Raster2D &gisLink_f2G, int Y_shift_C2G, int X_shift_C2G, Raster2D &gisTarget)
void rescale_f2G (Raster2D &gis_f, Raster2D &gis_L, Raster2D &gis_Gorig, Raster2D &gis_G)
void rescale_saveAll (string dirOut, Raster2D &gis_L, Raster2D &gis_G, Raster2D &gis_C, int Y_shift_C2G, int X_shift_C2G, int ratio)
void rescale_loadAll (string dirOut, Raster2D &gis_L, Raster2D &gis_G, int C_ycoord, int C_xcoord, int Y_shift_C2G, int X_shift_C2G, int ratio)
int ratio_getAndCheck (double nom, double div)
int ratio_getAndCheck (int nom, int div)
void MAS_initCoupling ()
int DOWASIM_loadKeyFile (string fn, MatrixDouble &keyMat)
void initTDTvariables ()
void receiveInflowMat_andExtract (MatrixDouble &medianMat)
void receiveRaster3D_couplingData (Raster3D &gis3D, bool RECEIVE_TDT, bool doprocessing, bool isIrrig)
void sendViaTDT_Raster3D_couplingData (bool RECEIVE_TDT, bool doprocessing, bool isIrrig)
int receiveIntFromController (void)
void sendIntToController (int val)
string updateraster3D_filenames (Raster3D &gis3D, string irrigYN)
void readMAS2WASIM_byKey (int expandFact, MatrixDouble &MAT_IRRIGID)
void readActivityKey (ifstream &stream, classInputTable &activityKey, MatrixDouble &matrixMonthlyWaterDemand, MatrixDouble &indexMonthlyWaterDemand, MatrixDouble &matrixMonthlyWaterExpectations, MatrixDouble &indexMonthlyWaterExpectations)
void readActivityKey (string fn, classInputTable &activityKey, MatrixDouble &matrixMonthlyWaterDemand, MatrixDouble &indexMonthlyWaterDemand, MatrixDouble &matrixMonthlyWaterExpectations, MatrixDouble &indexMonthlyWaterExpectations)
string getKeyfileColumnNames (enumActivityKeyNames type)
int readTable_ActivityKey_MAS2WASIM (MatrixDouble &MAS2WASIM, string fnActivityKey)
int readTable_CropID2WasimLU (MatrixDouble &LUmas2Wasim, string fnCropKey)
void addToMas2Wasim_LU_mas2wasim (MatrixDouble &MAS2WASIM, MatrixDouble &LUmas2Wasim)


Enumeration Type Documentation

enum enumActivityKeyNames
 

Enumeration values:
typeAKeyActivityID 
typeAKeyLPCOL 
typeAKeyPRICECOL 
typeAKeyLPROW 
typeAKeySOILCLASS 
typeAKeyIPG 
typeAKeyKRTYPE 
typeAKeyKY 
typeAKeyCROPTYPE 
typeAKeyIRRMETHOD 
typeAKeyYIELDMAX 
typeAKeyIrrigEfficiency 
typeAKeyLanduseMpmas 
typeAKeyLanduseWasim 
typeAKeyCropID 
typeAKeyEND 
matrixTypeAKeyMonthlyDemand 
matrixTypeAKeyExpectations 
finalAKey 


Function Documentation

void addToLookup_CropKey MatrixDouble lookup_CroppingActivity2WasimLanduse,
MatrixDouble lookupMatrix_LuMpmas_2_LuWASIM
 

void addToMas2Wasim_LU_mas2wasim MatrixDouble MAS2WASIM,
MatrixDouble LUmas2Wasim
 

int DOWASIM_loadKeyFile string  fn,
MatrixDouble keyMat
 

string getKeyfileColumnNames enumActivityKeyNames  type  ) 
 

void getKeyfileColumnNames string *&  colNamesActivityKey  ) 
 

void initTDTvariables  ) 
 

void MAS_initCoupling  ) 
 

int ratio_getAndCheck int  nom,
int  div
 

int ratio_getAndCheck double  nom,
double  div
 

void readActivityKey string  fn,
classInputTable activityKey,
MatrixDouble matrixMonthlyWaterDemand,
MatrixDouble indexMonthlyWaterDemand,
MatrixDouble matrixMonthlyWaterExpectations,
MatrixDouble indexMonthlyWaterExpectations
 

void readActivityKey ifstream &  stream,
classInputTable activityKey,
MatrixDouble matrixMonthlyWaterDemand,
MatrixDouble indexMonthlyWaterDemand,
MatrixDouble matrixMonthlyWaterExpectations,
MatrixDouble indexMonthlyWaterExpectations
 

void readActivityKey string  fn,
string *&  colNamesActivityKey,
classInputTable activityKey,
MatrixDouble matrixMonthlyWaterDemand,
MatrixDouble matrixMonthlyWaterExpectations
 

void readActivityKey ifstream &  stream,
string *&  colNamesActivityKey,
classInputTable activityKey,
MatrixDouble matrixMonthlyWaterDemand,
MatrixDouble matrixMonthlyWaterExpectations
 

void readMAS2WASIM_byKey int  expandFact,
MatrixDouble MAT_IRRIGID
 

int readTable_ActivityKey_Lookup MatrixDouble lookup_CroppingActivity2WasimLanduse,
string  fnActivityKey
 

int readTable_ActivityKey_MAS2WASIM MatrixDouble MAS2WASIM,
string  fnActivityKey
 

int readTable_CropID2WasimLU MatrixDouble LUmas2Wasim,
string  fnCropKey
 

int readTable_CropKey_Lookup MatrixDouble lookupMatrix_LuMpmas_2_LuWASIM,
string  fnCropKey
 

void receiveInflowMat_andExtract MatrixDouble medianMat  ) 
 

int receiveIntFromController void   ) 
 

void receiveRaster3D_couplingData Raster3D gis3D,
bool  RECEIVE_TDT,
bool  doprocessing,
bool  isIrrig
 

void rescale_C2f Raster2D C,
Raster2D gisLink_f2G,
int  Y_shift_C2G,
int  X_shift_C2G,
Raster2D gisTarget
 

int rescale_CREATEMAP Raster2D C,
Raster2D f,
Raster2D gisLink_g2G,
Raster2D g,
Raster2D G,
int &  shift_f2g_row,
int &  shift_f2g_col
 

int rescale_CREATEMAP_f2G Raster2D C,
Raster2D f,
Raster2D G,
Raster2D gis_Link_f2G,
MatrixDouble mSHIFT
 

void rescale_f2G Raster2D gis_f,
Raster2D gis_L,
Raster2D gis_Gorig,
Raster2D gis_G
 

void rescale_G2f_old Raster2D G,
Raster2D gisLink_g2G,
int  shift_f2g_row,
int  shift_f2g_col,
int  ratio,
Raster2D gisTarget
 

void rescale_loadAll string  dirOut,
Raster2D gis_L,
Raster2D gis_G,
int  C_ycoord,
int  C_xcoord,
int  Y_shift_C2G,
int  X_shift_C2G,
int  ratio
 

void rescale_saveAll string  dirOut,
Raster2D gis_L,
Raster2D gis_G,
Raster2D gis_C,
int  Y_shift_C2G,
int  X_shift_C2G,
int  ratio
 

void sendIntToController int  val  ) 
 

void sendViaTDT_Raster3D_couplingData bool  RECEIVE_TDT,
bool  doprocessing,
bool  isIrrig
 

void translateIrrigQuant2WASIM Raster2D irrigIDs,
Raster2D gisCropAct,
Raster2D gisIrrigQuant,
MatrixDouble MAT_IRRIGID,
int  maxExpansion
 

string updateraster3D_filenames Raster3D gis3D,
string  irrigYN
 


Generated on Thu Aug 28 12:39:18 2008 for MPMAS by  doxygen 1.3.9.1