Init Class Reference

Init the environment, the objects and the agents of the model More...

#include <Init.h>

Inheritance diagram for Init:

Inheritance graph
[legend]
Collaboration diagram for Init:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Init (ThreadManager *MTHREAD_h)
 ~Init ()
void setInitLevel (int level_h)
 Wrapper to the correct setInitLevelX().
void setInitLevel0 ()
 Unused, reserver for future use.
void setInitLevel1 ()
 Setting up the space, the model objects and the agents (definitions only).
void setInitLevel2 ()
 Unused, reserver for future use.
void setInitLevel3 ()
 Linking object to agents and assigning space proprieties to objects and agents.
void setInitLevel4 ()
 Unused, reserver for future use.
void setInitLevel5 ()
 Simulation start.
void setInitLevel6 ()
 End of simulation (e.g. print summary statistics).
int getInitState ()

Private Attributes

int InitState
 One of the 7 possible init states (0..6).

Detailed Description

Init the environment, the objects and the agents of the model

The Init class is responsable to ask to the various objects to Init themself, in a 7-steps procedures.
The basic idea is to first init the environment: options, settings and space.
Then objects and agents are mould up, objects are assigned to agents and finally agents and objects are collocated in the space.

Author:
Antonello Lobianco

Definition at line 44 of file Init.h.


Constructor & Destructor Documentation

Init ( ThreadManager MTHREAD_h  ) 

Definition at line 31 of file Init.cpp.

~Init (  ) 

Definition at line 36 of file Init.cpp.


Member Function Documentation

void setInitLevel ( int  level_h  ) 

Wrapper to the correct setInitLevelX().

Definition at line 41 of file Init.cpp.

Referenced by MainProgram::run().

Here is the caller graph for this function:

void setInitLevel0 (  ) 

Unused, reserver for future use.

Definition at line 71 of file Init.cpp.

Referenced by setInitLevel().

Here is the caller graph for this function:

void setInitLevel1 (  ) 

Setting up the space, the model objects and the agents (definitions only).

Setting up the space, the model objects and the agents (definitions only)
Level 1 :

************************ ADD HERE YOUR MANAGERS *****************

Definition at line 90 of file Init.cpp.

Referenced by setInitLevel().

Here is the caller graph for this function:

void setInitLevel2 (  ) 

Unused, reserver for future use.

Definition at line 125 of file Init.cpp.

Referenced by setInitLevel().

Here is the caller graph for this function:

void setInitLevel3 (  ) 

Linking object to agents and assigning space proprieties to objects and agents.

Init 3 assign objects to the agents and finally locate both objects and agents along the space dimension.

See also:
Manager_farmers::assignObjectsToAgents

Definition at line 134 of file Init.cpp.

Referenced by setInitLevel().

Here is the caller graph for this function:

void setInitLevel4 (  ) 

Unused, reserver for future use.

Definition at line 145 of file Init.cpp.

Referenced by setInitLevel().

Here is the caller graph for this function:

void setInitLevel5 (  ) 

Simulation start.

Init level 5 pass the controll to the Scheduler object for the running of the simulations.

Definition at line 154 of file Init.cpp.

Referenced by setInitLevel().

Here is the caller graph for this function:

void setInitLevel6 (  ) 

End of simulation (e.g. print summary statistics).

Definition at line 166 of file Init.cpp.

Referenced by setInitLevel().

Here is the caller graph for this function:

int getInitState (  )  [inline]

Definition at line 66 of file Init.h.

Referenced by Manager_farmers::assignPlot(), and Pixel::setRandomRenting().

Here is the caller graph for this function:


Member Data Documentation

int InitState [private]

One of the 7 possible init states (0..6).

Definition at line 66 of file Init.h.

Referenced by Init(), setInitLevel0(), setInitLevel1(), setInitLevel2(), setInitLevel3(), setInitLevel4(), setInitLevel5(), and setInitLevel6().


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