Skip to content
James Edmondson edited this page Apr 5, 2018 · 4 revisions

Introduction

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.


Local

Variable Type Purpose
.id Integer The ID for the agent. All positive integers and zero are valid
.processes Integer Number of agents participating

Prefixes

Prefix Description
agent.{.id} Device specific information
sim Simulation purposes

Device Specific Variables

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[3] Location that agent is moving from
dest Double[3] Location that agent is moving towards
home Double[3] Home location for the agent
location Double[3] Last known location of agent
mobile Integer Set to 1 if agent is mobile

Clone this wiki locally