edu.sc.ants
Class Map

java.lang.Object
  |
  +--edu.sc.ants.Map

public class Map
extends java.lang.Object

Maps are sent in messages. They contain a vector of observations along witht the ID of the Thing (probably an agent) that made the observation.


Field Summary
 java.util.Vector observations
          Vector of observations
 java.util.Vector owner
          ID of agent who made Observation
 
Constructor Summary
Map()
           
 
Method Summary
 void addObservation(Observation ob, int a)
          Add an observation to the map.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

observations

public java.util.Vector observations
Vector of observations

owner

public java.util.Vector owner
ID of agent who made Observation
Constructor Detail

Map

public Map()
Method Detail

addObservation

public void addObservation(Observation ob,
                           int a)
Add an observation to the map.
Parameters:
ob - the observation to add.
a - the ID of the agent that made the observation.