-
Notifications
You must be signed in to change notification settings - Fork 20
Variables
James Edmondson edited this page Nov 17, 2015
·
4 revisions
This page describes the keys used for referencing variables in the MADARA knowledge base. See MADARA for discussion of the syntax used in this article.
| Variable | Type | Purpose |
|---|---|---|
| .id | Integer | The ID for the agent. All positive integers and zero are valid |
| .processes | Integer | Number of agents participating |
| Prefix | Description |
|---|---|
| agent.{.id} | Device specific information |
| sim | Simulation purposes |
Each of these have agent.{.id}. as a prefix.
| Variable | Type | Purpose |
|---|---|---|
| battery | Integer | Battery life remaining |
| busy | Integer | 1 if this agent is executing an algorithm, 0 otherwise |
| command | String | Command for the agent to execute |
| command.size | Integer | Number of arguments passed to the command |
| command.{i} | Multi-Type Array | Arguments for the command. i goes from 0 to command.size
|
| source | Double[2] | Location that agent is moving from |
| dest | Double[2] | Location that agent is moving towards |
| home | Double[2] | Home location for the agent |
| location | Double[3] | Last known location of agent |
| mobile | Integer | Set to 1 if agent is mobile |