RegActivities Class Reference

Regional level activities. More...

#include <RegData.h>

Inheritance diagram for RegActivities:

Inheritance graph
[legend]
Collaboration diagram for RegActivities:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RegActivities (ThreadManager *MTHREAD_h)
 ~RegActivities ()
string getName () const
string getComment () const
double getMatrixGrossMargin () const
map< string, double > getMatrixActRes () const
 Return the standard matrix.
vector< double > getMatrixCoefficients ()
 return the ordered list of coefficients for the matrix
double getMatrixCoefficientByName (string cname_h)
 Return a coefficient by its resource name.
bool getSpatiallyExplicit ()
vector< int > getRequiredLandUseCodes ()
string getRequiredObjectOnPlot ()
int getMapCode () const
int getMapRColor ()
int getMapGColor ()
int getMapBColor ()
double getDecouplingOption (int premiumIndex)
void setName (string activityName_h)
void setComment (string activityComment_h)

Private Attributes

string activityName
string activityComment
vector< double > matrixGrossMarginByYear
vector< map< string, double > > matrixActResByYear
vector< int > requiredLandUseCodes
 A vector of Corine land use codes where this activity can be made.
string requiredObjectOnPlot
 ID of object that need to be present on the plot to allow this activity.
bool spatiallyExplicit
int mapCode
 Code associated to each activity for map output.
int mapRColor
 Red color map output.
int mapGColor
 Green color map output.
int mapBColor
 Blue color map output.
vector< vector< double > > decouplingOptions
 Share of decoupling rights associated to the activity.

Friends

void RegData::setDefaultActivities ()
void RegData::setScenarioActivities ()

Detailed Description

Regional level activities.

Activities can be spatially explicit or implicit.
In the former case, they will depend on specific plots with a compatible land use type and eventually with the presence of certain objects (investments). Now the requirement can be only over ONE investment object, but it can be changed (see the feature wishes list on the doc)

Author:
Antonello Lobianco

Definition at line 204 of file RegData.h.


Constructor & Destructor Documentation

RegActivities ( ThreadManager MTHREAD_h  ) 

Definition at line 1066 of file RegData.cpp.

~RegActivities (  ) 

Definition at line 1071 of file RegData.cpp.


Member Function Documentation

string getName (  )  const [inline]

Definition at line 209 of file RegData.h.

string getComment (  )  const [inline]

Definition at line 210 of file RegData.h.

double getMatrixGrossMargin (  )  const

Definition at line 1103 of file RegData.cpp.

map< string, double > getMatrixActRes (  )  const

Return the standard matrix.

Definition at line 1108 of file RegData.cpp.

vector< double > getMatrixCoefficients (  ) 

return the ordered list of coefficients for the matrix

Definition at line 1076 of file RegData.cpp.

double getMatrixCoefficientByName ( string  cname_h  ) 

Return a coefficient by its resource name.

Definition at line 1092 of file RegData.cpp.

bool getSpatiallyExplicit (  )  [inline]

Definition at line 216 of file RegData.h.

vector<int> getRequiredLandUseCodes (  )  [inline]

Definition at line 217 of file RegData.h.

string getRequiredObjectOnPlot (  )  [inline]

Definition at line 218 of file RegData.h.

int getMapCode (  )  const [inline]

Definition at line 219 of file RegData.h.

Referenced by Agent_farmer::collectProductionEffects().

Here is the caller graph for this function:

int getMapRColor (  )  [inline]

Definition at line 220 of file RegData.h.

int getMapGColor (  )  [inline]

Definition at line 221 of file RegData.h.

int getMapBColor (  )  [inline]

Definition at line 222 of file RegData.h.

double getDecouplingOption ( int  premiumIndex  ) 

Definition at line 1113 of file RegData.cpp.

void setName ( string  activityName_h  )  [inline]

Definition at line 224 of file RegData.h.

void setComment ( string  activityComment_h  )  [inline]

Definition at line 225 of file RegData.h.


Friends And Related Function Documentation

void RegData::setDefaultActivities (  )  [friend]

void RegData::setScenarioActivities (  )  [friend]


Member Data Documentation

string activityName [private]

Definition at line 230 of file RegData.h.

Referenced by getName(), and setName().

string activityComment [private]

Definition at line 231 of file RegData.h.

Referenced by getComment(), and setComment().

vector<double> matrixGrossMarginByYear [private]

Definition at line 232 of file RegData.h.

Referenced by getMatrixGrossMargin().

vector< map<string,double> > matrixActResByYear [private]

Definition at line 233 of file RegData.h.

Referenced by getMatrixActRes(), getMatrixCoefficientByName(), and getMatrixCoefficients().

vector<int> requiredLandUseCodes [private]

A vector of Corine land use codes where this activity can be made.

Definition at line 234 of file RegData.h.

Referenced by getRequiredLandUseCodes().

string requiredObjectOnPlot [private]

ID of object that need to be present on the plot to allow this activity.

Definition at line 235 of file RegData.h.

Referenced by getRequiredObjectOnPlot().

bool spatiallyExplicit [private]

Definition at line 236 of file RegData.h.

Referenced by getSpatiallyExplicit().

int mapCode [private]

Code associated to each activity for map output.

Definition at line 237 of file RegData.h.

Referenced by getMapCode().

int mapRColor [private]

Red color map output.

Definition at line 238 of file RegData.h.

Referenced by getMapRColor().

int mapGColor [private]

Green color map output.

Definition at line 239 of file RegData.h.

Referenced by getMapGColor().

int mapBColor [private]

Blue color map output.

Definition at line 240 of file RegData.h.

Referenced by getMapBColor().

vector< vector<double> > decouplingOptions [private]

Share of decoupling rights associated to the activity.

Definition at line 241 of file RegData.h.

Referenced by getDecouplingOption().


The documentation for this class was generated from the following files: