A B D E G H I M N O R S T W
A
- action() -
Method in interface uwcse.sim.Thing
- Every Thing must implement some fundamental action.
- add(Thing) -
Method in class uwcse.sim.WorldModel
- Add the given thing to the world.
- addView(WorldView) -
Method in class uwcse.sim.WorldModel
- Add the given view.
B
- birth() -
Method in class uwcse.sim.WorldModel
- Add all items in the nursery to the world.
D
- DEFAULT_CELL_SIZE -
Static variable in class uwcse.sim.WorldModel
- The default cell size.
- displayOn(GWindow) -
Method in interface uwcse.sim.Thing
- Every Thing must be able to display itself on a GWindow.
- doTurn() -
Method in class uwcse.sim.WorldModel
- The basic turn of the simulation consists of calling birth(),
action(), reap(), and notifyViews().
- dx -
Variable in class uwcse.sim.Offset
-
- dy -
Variable in class uwcse.sim.Offset
-
E
- EAST -
Static variable in class uwcse.sim.WorldModel
- Often used offset representing the neighboring cell to the east.
G
- getThings() -
Method in class uwcse.sim.WorldModel
- Get all the things in the world.
- getThings(Thing) -
Method in class uwcse.sim.WorldModel
- Get the neighbors of this thing, that is, those Things that
inhabit the same cell.
- getThings(Thing, List) -
Method in class uwcse.sim.WorldModel
- Get the things that inhabit the cells that are in the given
list of directions from the cell inhabited by the given thing.
- getThings(Thing, Offset) -
Method in class uwcse.sim.WorldModel
- Get the things that inhabit the cell that is in the given
direction from the cell inhabited by the given thing.
- getX() -
Method in interface uwcse.sim.Thing
- Every Thing must have an x and y position.
- getY() -
Method in interface uwcse.sim.Thing
- Every Thing must have an x and y position.
- go() -
Method in class uwcse.sim.WorldModel
- Call init(), and then loop forever, calling doTurn() and sleeping
for the sleepTime.
- go(int) -
Method in class uwcse.sim.WorldModel
- Call init(), and then loop for the given number of cycles.
- GraphicsHistogram - class uwcse.sim.GraphicsHistogram.
- An extension of Histogram view that plots its results onto a GWindow.
- GraphicsHistogram(int, int, int) -
Constructor for class uwcse.sim.GraphicsHistogram
-
- gWindow -
Variable in class uwcse.sim.MapView
-
H
- HistogramView - class uwcse.sim.HistogramView.
- An abstract superclass of Histogram views.
- HistogramView() -
Constructor for class uwcse.sim.HistogramView
-
I
- init() -
Method in class uwcse.sim.WorldModel
- Initialize the world.
- isAlive() -
Method in interface uwcse.sim.Thing
- Every thing has a lifetime.
M
- map(WorldModel.CallBack) -
Method in class uwcse.sim.WorldModel
- Map this call back over the world.
- MapView - class uwcse.sim.MapView.
- A simple implementation of a view that just asks all Things to
display themselves onto its GWindow.
- MapView() -
Constructor for class uwcse.sim.MapView
-
N
- NORTH -
Static variable in class uwcse.sim.WorldModel
- Often used offset representing the neighboring cell to the north.
- NORTHEAST -
Static variable in class uwcse.sim.WorldModel
- Often used offset representing the neighboring cell to the northeast.
- NORTHWEST -
Static variable in class uwcse.sim.WorldModel
- Often used offset representing the neighboring cell to the northwest.
- notify(WorldModel) -
Method in class uwcse.sim.GraphicsHistogram
-
- notify(WorldModel) -
Method in class uwcse.sim.HistogramView
-
- notify(WorldModel) -
Method in class uwcse.sim.MapView
-
- notify(WorldModel) -
Method in class uwcse.sim.TextHistogram
-
- notify(WorldModel) -
Method in interface uwcse.sim.WorldView
-
- notifyViews() -
Method in class uwcse.sim.WorldModel
- Notify the views to let them do their thing.
O
- Offset - class uwcse.sim.Offset.
- Represents an extent in the x and y direction.
- Offset(int, int) -
Constructor for class uwcse.sim.Offset
-
R
- remove(Thing) -
Method in class uwcse.sim.WorldModel
- Remove a thing from the world map.
S
- setSleepTime(int) -
Method in class uwcse.sim.WorldModel
-
- size() -
Method in class uwcse.sim.WorldModel
- Answer the number of things in the world.
- SOUTH -
Static variable in class uwcse.sim.WorldModel
- Often used offset representing the neighboring cell to the south.
- SOUTHEAST -
Static variable in class uwcse.sim.WorldModel
- Often used offset representing the neighboring cell to the southeast.
- SOUTHWEST -
Static variable in class uwcse.sim.WorldModel
- Often used offset representing the neighboring cell to the southwest.
T
- TextHistogram - class uwcse.sim.TextHistogram.
- An extension of HistogramView which demonstrates that not all views
have to be graphical in nature.
- TextHistogram() -
Constructor for class uwcse.sim.TextHistogram
-
- Thing - interface uwcse.sim.Thing.
- The basic interface for an object in the simulation world.
- toString() -
Method in class uwcse.sim.WorldModel
-
W
- WEST -
Static variable in class uwcse.sim.WorldModel
- Often used offset representing the neighboring cell to the west.
- WorldModel - class uwcse.sim.WorldModel.
- A WorldModel is a relatively efficient representation of the
world.
- WorldModel() -
Constructor for class uwcse.sim.WorldModel
- Create a new, empty world model of default cell size.
- WorldModel(int) -
Constructor for class uwcse.sim.WorldModel
- Create a new, empty world model of the given cell size.
- WorldView - interface uwcse.sim.WorldView.
- The basic interface for world viewers.
A B D E G H I M N O R S T W