Agilla uses seven types of variables. They are listed in the table below:
Type | Size (Bytes) |
Description |
Value | 2 |
A 16-bit signed variable |
Reading | 4 |
A sensor reading. The first two bytes specifies the type, the second two bytes is the actual reading. |
String | 2 |
A three-character string matching the following regular expression: [a-z][a-z][a-z,0-9] |
Type | 2 |
A variable that matches another by type, used for tuple pattern matching. This variable matches everything except reading. |
RType | 2 |
A variable that matches by sensor type. |
AgentID | 2 |
A unique identifier for each agent. |
Location | 4 |
A (x,y) location where x and y are each unsigned 16-bit integers. |