Properties
Properties are data stored on agents and the model. In the generated code, they become instance variables.
Agent Properties
Define properties on each archetype in the left panel. Each property has:
- Name — The variable name (e.g., "energy")
- Type — int, float, bool, or str
- Default value — Initial value when the agent is created
Reading and Writing
Inside behavior graphs, use these nodes:
- Get Property — Reads a property value. Select the property name from the dropdown. The output port carries the value.
- Set Property — Writes a new value. Has an exec input (when to write) and a data input (what value to write).
Scenario Parameters
Scenario parameters are model-level values that appear as sliders in the visualization. Define them in the model settings panel.
Use Get Property with scope set to "model" to read scenario parameters inside agent behaviors. This lets agents respond to global settings like "temperature" or "food_rate".