class WorldObj extends java.lang.Object implements World
Modifier and Type | Field and Description |
---|---|
private static int |
MAXX |
private static int |
MAXY |
private java.lang.Object[][] |
space |
private TimeServer |
time |
Constructor and Description |
---|
WorldObj() |
Modifier and Type | Method and Description |
---|---|
void |
addObserver(java.util.Observer o) |
double |
currentTime() |
void |
deleteObserver(java.util.Observer o) |
void |
enqueue(double t,
Agent a) |
java.lang.Object |
get(int x,
int y) |
int |
maxx() |
int |
maxy() |
void |
run(double d) |
void |
set(int x,
int y,
java.lang.Object a) |
private static final int MAXX
private static final int MAXY
private TimeServer time
private java.lang.Object[][] space
WorldObj()
public double currentTime()
currentTime
in interface TimeServer
public void enqueue(double t, Agent a)
enqueue
in interface TimeServer
public void run(double d)
run
in interface TimeServer
public void addObserver(java.util.Observer o)
addObserver
in interface TimeServer
public void deleteObserver(java.util.Observer o)
deleteObserver
in interface TimeServer