84
X-Machines for Agent-Based Modeling: FLAME Perspectives
13.165019
Rabbit
2
0.208702
79.911496
4.8 Enhancing the Environment
The environment tag in the XML file hosts additional tags for information,
which may be required by the parser for efficient simulation of the model.
Following are tags that can be defined.
4.8.1 Constant Variables
Constant variables refer to global values used in the model. These can
be defined in separate header files which can then be included in one of the
functions. The header would look as follows:
**
* \file my library header.h
* \brief Header for user created library functions. */
#define fox_location_msg 100.0
#define application_msg 100.0
#define time_msg 100.0
#define message_range 100.0
void bubble_sort(int * id, double * wage, int length);
double random_no();
int calculate_random_agent();
The example header file ‘my library header.h’ is included in one of the
function file to compile it. Any global functions used by the model can also
be defined as prototypes here.
4.8.2 Time Rules
Time rules allow restricting functions to act during particular iterations.
An iteration refers to the smallest unit the model runs through in full cycle.
X-Machines for Agent-Based Modeling: FLAME Perspectives
4.8 Enhancing the Environment
The environment tag in the XML file hosts additional tags for information,
which may be required by the parser for efficient simulation of the model.
Following are tags that can be defined.
4.8.1 Constant Variables
Constant variables refer to global values used in the model. These can
be defined in separate header files which can then be included in one of the
functions. The header would look as follows:
**
* \file my library header.h
* \brief Header for user created library functions. */
#define fox_location_msg 100.0
#define application_msg 100.0
#define time_msg 100.0
#define message_range 100.0
void bubble_sort(int * id, double * wage, int length);
double random_no();
int calculate_random_agent();
The example header file ‘my library header.h’ is included in one of the
function file to compile it. Any global functions used by the model can also
be defined as prototypes here.
4.8.2 Time Rules
Time rules allow restricting functions to act during particular iterations.
An iteration refers to the smallest unit the model runs through in full cycle.
