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 TimeServerpublic void enqueue(double t, Agent a)
enqueue in interface TimeServerpublic void run(double d)
run in interface TimeServerpublic void addObserver(java.util.Observer o)
addObserver in interface TimeServerpublic void deleteObserver(java.util.Observer o)
deleteObserver in interface TimeServer