Getting Started with FLAME
85
Most models can represent one day in the calender or one week depending on
how modelers have designed them. The following depicts the use of time units
in a model description file to declare various time periods used in the model,
Within the environment tag:


daily
iteration
1


population-regenerate
iteration
100000


Time rules are defined by a time period and a phase, defined as a time
unit and an offset from start of a period. These can also be defined using a
value from agent memory:



Modelers can define a function to perform at particular iterations (or specific days of the calender). Time rules are defined as conditions. The parser
places these as rules in rules.c file. Example of a condition in agent function.

Actor_post_my_location
00
01

actor_location




Précédent

- 114/329

Suivant