Output Class Reference

Output methods More...

#include <Output.h>

Inheritance diagram for Output:

Inheritance graph
[legend]
Collaboration diagram for Output:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Output (ThreadManager *MTHREAD_h)
 Constructor.
 ~Output ()
void initOutput ()
void initOutputAggregatedData ()
void initOutputMaps ()
void initOutputDetailedData ()
void initOutputLeavingAgents ()
void collectData ()
void print ()
void printAggregatedData ()
void printMaps ()
void printDetailedData ()
void printDebugMatrices ()
char getOutputFieldDelimiter ()
void printLeavingAgent (Agent_base *agent, int cause)
void cleanScenario (string fileName, string scenarioName, char d)
double getSurveyActivityByName (const AgentSurvey &survey, const string &actName)
double getSurveyUnusedLand (const AgentSurvey &survey)

Private Attributes

vector< AgentSurveysurveys
vector< int > abandonedAgrLandByType
 abandoned land is those land that is unowned, unrented or - even if with a possession title- unused
vector< int > unpossessedAgrLandByType
 unpossessed land is just those unowned and unrented
vector< int > idleAgrLandByType

Detailed Description

Output methods

Class responsable to output the data, both as all kind of log as well as georeferenciated one.

Author:
Antonello Lobianco

Definition at line 38 of file Output.h.


Constructor & Destructor Documentation

Output ( ThreadManager MTHREAD_h  ) 

Constructor.

Definition at line 29 of file Output.cpp.

~Output (  ) 

Definition at line 33 of file Output.cpp.


Member Function Documentation

void initOutput (  ) 

Definition at line 96 of file Output.cpp.

Referenced by Init::setInitLevel3().

Here is the caller graph for this function:

void initOutputAggregatedData (  ) 

Definition at line 104 of file Output.cpp.

Referenced by initOutput().

Here is the caller graph for this function:

void initOutputMaps (  ) 

Resetting the list of printed layers and the scenario name..
Printing scenario name for post-processing scripts

Definition at line 290 of file Output.cpp.

Referenced by initOutput().

Here is the caller graph for this function:

void initOutputDetailedData (  ) 

Definition at line 316 of file Output.cpp.

Referenced by initOutput().

Here is the caller graph for this function:

void initOutputLeavingAgents (  ) 

Definition at line 464 of file Output.cpp.

Referenced by initOutput().

Here is the caller graph for this function:

void collectData (  ) 

Definition at line 39 of file Output.cpp.

Referenced by Scheduler::run().

Here is the caller graph for this function:

void print (  ) 

Definition at line 501 of file Output.cpp.

Referenced by Scheduler::run().

Here is the caller graph for this function:

void printAggregatedData (  ) 

Definition at line 513 of file Output.cpp.

Referenced by print().

Here is the caller graph for this function:

void printMaps (  ) 

Definition at line 711 of file Output.cpp.

Referenced by print().

Here is the caller graph for this function:

void printDetailedData (  ) 

Definition at line 720 of file Output.cpp.

Referenced by print().

Here is the caller graph for this function:

void printDebugMatrices (  ) 

Definition at line 849 of file Output.cpp.

Referenced by print().

Here is the caller graph for this function:

char getOutputFieldDelimiter (  ) 

Definition at line 929 of file Output.cpp.

Referenced by initOutputAggregatedData(), initOutputDetailedData(), initOutputLeavingAgents(), printAggregatedData(), printDetailedData(), and printLeavingAgent().

Here is the caller graph for this function:

void printLeavingAgent ( Agent_base agent,
int  cause 
)

Definition at line 858 of file Output.cpp.

Referenced by Manager_farmers::planNext().

Here is the caller graph for this function:

void cleanScenario ( string  fileName,
string  scenarioName,
char  d 
)

This routine clean the output scenario from previous outputs of the defined scenario. Other scenarios are untouched. The scenarioName must be in the first row.

Parameters:
filename Filename of the output file to clean
scenarioName Name of the scenario we are replacing
d Field delimiter. It must not be changed in the meantime (between the various scenarios)

Definition at line 961 of file Output.cpp.

Referenced by initOutputAggregatedData(), initOutputDetailedData(), and initOutputLeavingAgents().

Here is the caller graph for this function:

double getSurveyActivityByName ( const AgentSurvey survey,
const string &  actName 
)

Definition at line 1015 of file Output.cpp.

Referenced by printAggregatedData(), and printDetailedData().

Here is the caller graph for this function:

double getSurveyUnusedLand ( const AgentSurvey survey  ) 

Definition at line 1028 of file Output.cpp.

Referenced by printAggregatedData(), and printDetailedData().

Here is the caller graph for this function:


Member Data Documentation

vector<AgentSurvey> surveys [private]

Definition at line 62 of file Output.h.

Referenced by collectData(), print(), printAggregatedData(), and printDetailedData().

vector<int> abandonedAgrLandByType [private]

abandoned land is those land that is unowned, unrented or - even if with a possession title- unused

Definition at line 63 of file Output.h.

Referenced by collectData(), and printAggregatedData().

vector<int> unpossessedAgrLandByType [private]

unpossessed land is just those unowned and unrented

Definition at line 64 of file Output.h.

Referenced by collectData(), and printAggregatedData().

vector<int> idleAgrLandByType [private]

Definition at line 65 of file Output.h.

Referenced by collectData(), and printAggregatedData().


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