Class ObjectPerception

java.lang.Object
  |
  +--ObjectPerception

public class ObjectPerception
extends java.lang.Object

This class is used to represent the perception of an object of the game. For every object the following information is stored:

Version:
1.0
Author:
Gerald Kuehne, Markus Beier

Field Summary
private  double direction
           
private  double distance
           
private  java.lang.String name
           
private  int time
           
 
Constructor Summary
(package private) ObjectPerception(int time, java.lang.String name, double distance, double direction)
           
 
Method Summary
 double direction()
          The direction in which the object was perceived
 double distance()
          The distance in which the object was perceived
 java.lang.String name()
          The name of the object
 int time()
          The time when the object has been perceived
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

time

private int time

name

private java.lang.String name

distance

private double distance

direction

private double direction
Constructor Detail

ObjectPerception

ObjectPerception(int time,
                 java.lang.String name,
                 double distance,
                 double direction)
Method Detail

time

public int time()
The time when the object has been perceived

name

public java.lang.String name()
The name of the object

distance

public double distance()
The distance in which the object was perceived

direction

public double direction()
The direction in which the object was perceived