Chapter 6: Read-Only Variables
FRED includes several read-only variables that cannot be directly modified by an agent. Read-only variables can be either shared or agent-specific in scope.
Agent Read-Only Variables
Agent read-only variables may evaluate to different quantities depending on the agent. These read-only variables fall into the following categories:
id– evaluates to an agent’s unique integer ID.
age– evaluates to the integer part of an agent’s age.
birth_year– evaluates to the four digit year of the agent’s birth.
age_in_days– evaluates to integer number of days since an agent’s assigned the agent’s assigned birthdate.
age_in_years– evaluates to an agent’s age in years computed as
age_in_days / 365.25).
real_age– a synonym for
<group_name>– evaluates to the agent’s mixing group ID for the given group type name or
-1if no such group exists.