#include <Init.h>
Inheritance diagram for Init:
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). |
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.
Definition at line 44 of file Init.h.
Init | ( | ThreadManager * | MTHREAD_h | ) |
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.
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:
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().