edu.sc.ants
Class Observation

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

public class Observation
extends java.lang.Object

An observation of a given object (Thing).


Field Summary
 int agentID
          The Thing's ID.
 double certainty
          How certain are we that this observation is true? Values between 0 and 1
 double heading
          The Thing's heading.
 long time
          The time the observation was made
 java.lang.String type
          The Thing's type.
 double xLocation
           
 double yLocation
          The Thing's x location
 
Constructor Summary
Observation()
           
Observation(int id, double x, double y, double h, java.lang.String t, double c)
           
Observation(Observation o)
          A copy constructor
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

agentID

public int agentID
The Thing's ID. This ID should uniquely identify all Things. It is -1 if unkonwn

xLocation

public double xLocation

yLocation

public double yLocation
The Thing's x location

heading

public double heading
The Thing's heading. Legal values are between 0 and PI/2. Note: First quadrant is bottom right, then it proceeds counterclockwise.

type

public java.lang.String type
The Thing's type. Current values include "good", "bad".

certainty

public double certainty
How certain are we that this observation is true? Values between 0 and 1

time

public long time
The time the observation was made
Constructor Detail

Observation

public Observation()

Observation

public Observation(int id,
                   double x,
                   double y,
                   double h,
                   java.lang.String t,
                   double c)

Observation

public Observation(Observation o)
A copy constructor