A C D E F G H I L M N O P R S T U V W X Y

A

accept() - Method in class uk.ac.nott.cs.g54dia.library.Task
 
accepted - Variable in class uk.ac.nott.cs.g54dia.library.Task
 
Action - Interface in uk.ac.nott.cs.g54dia.library
Interface implemented by all actions.
ActionFailedException - Exception in uk.ac.nott.cs.g54dia.library
Thrown when a tanker attempts to perform an illegal action.
ActionFailedException(String) - Constructor for exception uk.ac.nott.cs.g54dia.library.ActionFailedException
 

C

Cell - Interface in uk.ac.nott.cs.g54dia.library
Interface implemented by items in the Environment.
CellFactory - Interface in uk.ac.nott.cs.g54dia.library
Interface allowing the generation of new cells when the environment is resized.
cells - Variable in class uk.ac.nott.cs.g54dia.library.TankerViewer
 
cfactory - Variable in class uk.ac.nott.cs.g54dia.library.Environment
CellFactory which is called to generate new environment.
clone() - Method in class uk.ac.nott.cs.g54dia.library.Point
 
completed - Variable in class uk.ac.nott.cs.g54dia.library.TankerViewer
 
completed - Variable in class uk.ac.nott.cs.g54dia.library.Task
 
completedCount - Variable in class uk.ac.nott.cs.g54dia.library.Tanker
The initial number of tasks completed
createImageIcon(String) - Static method in class uk.ac.nott.cs.g54dia.library.DefaultTankerViewerIconFactory
 

D

DEFAULT_STATION_DENSITY - Static variable in class uk.ac.nott.cs.g54dia.library.DefaultCellFactory
Default well density.
DEFAULT_WELL_DENSITY - Static variable in class uk.ac.nott.cs.g54dia.library.DefaultCellFactory
 
DefaultCell - Class in uk.ac.nott.cs.g54dia.library
An abstract implementation of the Cell interface.
DefaultCell(Point) - Constructor for class uk.ac.nott.cs.g54dia.library.DefaultCell
 
DefaultCellFactory - Class in uk.ac.nott.cs.g54dia.library
A default CellFactory which populates the environment with stations and wells.
DefaultCellFactory() - Constructor for class uk.ac.nott.cs.g54dia.library.DefaultCellFactory
Create a DefaultCellFactory.
DefaultTankerViewerIconFactory - Class in uk.ac.nott.cs.g54dia.library
A default implementation of the TankerViewerIconFactory interface.
DefaultTankerViewerIconFactory() - Constructor for class uk.ac.nott.cs.g54dia.library.DefaultTankerViewerIconFactory
 
DELAY - Static variable in class uk.ac.nott.cs.g54dia.demo.DemoSimulator
Time for which execution pauses so that GUI can update.
delivered - Variable in class uk.ac.nott.cs.g54dia.library.TankerViewer
 
DeliverWaterAction - Class in uk.ac.nott.cs.g54dia.library
Action which delivers water from the tanker to a station.
DeliverWaterAction(Task) - Constructor for class uk.ac.nott.cs.g54dia.library.DeliverWaterAction
 
demand - Variable in class uk.ac.nott.cs.g54dia.library.Task
 
DemoSimulator - Class in uk.ac.nott.cs.g54dia.demo
An example of how to simulate execution of a tanker agent in the sample (task) environment.
DemoSimulator() - Constructor for class uk.ac.nott.cs.g54dia.demo.DemoSimulator
 
DemoTanker - Class in uk.ac.nott.cs.g54dia.demo
A simple example tanker that chooses actions.
DemoTanker() - Constructor for class uk.ac.nott.cs.g54dia.demo.DemoTanker
 
direction - Variable in class uk.ac.nott.cs.g54dia.library.MoveAction
Direction to move in.
DIRECTION - Static variable in class uk.ac.nott.cs.g54dia.library.MoveAction
 
DURATION - Static variable in class uk.ac.nott.cs.g54dia.demo.DemoSimulator
Number of timesteps to execute

E

EAST - Static variable in class uk.ac.nott.cs.g54dia.library.MoveAction
 
EmptyCell - Class in uk.ac.nott.cs.g54dia.library
A environment cell which contains nothing.
EmptyCell(Point) - Constructor for class uk.ac.nott.cs.g54dia.library.EmptyCell
 
Environment - Class in uk.ac.nott.cs.g54dia.library
An infinite grid of cells representing the current state of the environment at a given timestep.
Environment(int, CellFactory) - Constructor for class uk.ac.nott.cs.g54dia.library.Environment
Initialises the Tanker environment.
Environment(int) - Constructor for class uk.ac.nott.cs.g54dia.library.Environment
 
equals(Object) - Method in class uk.ac.nott.cs.g54dia.library.Point
 
execute(Environment, Tanker) - Method in interface uk.ac.nott.cs.g54dia.library.Action
Execute the action for this Tanker in this Environment.
execute(Environment, Tanker) - Method in class uk.ac.nott.cs.g54dia.library.DeliverWaterAction
 
execute(Environment, Tanker) - Method in class uk.ac.nott.cs.g54dia.library.LoadWaterAction
 
execute(Environment, Tanker) - Method in class uk.ac.nott.cs.g54dia.library.MoveAction
 
execute(Environment, Tanker) - Method in class uk.ac.nott.cs.g54dia.library.MoveTowardsAction
 
execute(Environment, Tanker) - Method in class uk.ac.nott.cs.g54dia.library.RefuelAction
 

F

fuel - Variable in class uk.ac.nott.cs.g54dia.library.TankerViewer
 
FUEL_PUMP_LOCATION - Static variable in class uk.ac.nott.cs.g54dia.library.Tanker
Location of fuel pump
FUEL_YIELD - Static variable in class uk.ac.nott.cs.g54dia.library.FuelPump
 
fuelLevel - Variable in class uk.ac.nott.cs.g54dia.library.Tanker
The initial level of fuel in the tanker
FuelPump - Class in uk.ac.nott.cs.g54dia.library
A fuel pump.
FuelPump(Point) - Constructor for class uk.ac.nott.cs.g54dia.library.FuelPump
 
fuelpumpIcon - Static variable in class uk.ac.nott.cs.g54dia.library.DefaultTankerViewerIconFactory
 

G

generateCell(Environment, Point) - Method in interface uk.ac.nott.cs.g54dia.library.CellFactory
Generate a grid of cells for the environment.
generateCell(Environment, Point) - Method in class uk.ac.nott.cs.g54dia.library.DefaultCellFactory
Create new cells and wells in the environment.
generateTask() - Method in class uk.ac.nott.cs.g54dia.library.Station
 
generateTasks() - Method in class uk.ac.nott.cs.g54dia.library.Environment
 
getCell(Point) - Method in class uk.ac.nott.cs.g54dia.library.Environment
Get the cell at a specified location
getCompletedCount() - Method in class uk.ac.nott.cs.g54dia.library.Tanker
Get the number of tasks completed
getCurrentCell(Cell[][]) - Method in class uk.ac.nott.cs.g54dia.library.Tanker
Get the cell currently occupied by the Tanker.
getFuelLevel() - Method in class uk.ac.nott.cs.g54dia.library.Tanker
How much fuel does this tanker have?
getIconForCell(Cell) - Method in class uk.ac.nott.cs.g54dia.library.DefaultTankerViewerIconFactory
 
getIconForCell(Cell) - Method in interface uk.ac.nott.cs.g54dia.library.TankerViewerIconFactory
Select a suitable icon for the given cell.
getIconForTanker(Tanker) - Method in class uk.ac.nott.cs.g54dia.library.DefaultTankerViewerIconFactory
 
getIconForTanker(Tanker) - Method in interface uk.ac.nott.cs.g54dia.library.TankerViewerIconFactory
Select an icon for a tanker.
getPoint() - Method in interface uk.ac.nott.cs.g54dia.library.Cell
 
getPoint() - Method in class uk.ac.nott.cs.g54dia.library.DefaultCell
 
getPosition() - Method in class uk.ac.nott.cs.g54dia.library.Tanker
Get the Tanker's current position in the environment.
getRequired() - Method in class uk.ac.nott.cs.g54dia.library.Task
How much water is required to complete the task?
getScore() - Method in class uk.ac.nott.cs.g54dia.library.Tanker
 
getStationPosition() - Method in class uk.ac.nott.cs.g54dia.library.Task
Get the position of the station to which water should be delivered
getTask() - Method in class uk.ac.nott.cs.g54dia.library.Station
 
getTimestep() - Method in class uk.ac.nott.cs.g54dia.library.Environment
Get the current timestep.
getView(Point, int) - Method in class uk.ac.nott.cs.g54dia.library.Environment
Return the cells a Tanker can see.
getWaterDemand() - Method in class uk.ac.nott.cs.g54dia.library.Task
Get the amount of water to be delivered to the station
getWaterLevel() - Method in class uk.ac.nott.cs.g54dia.library.Tanker
How much water does this tanker have?

H

hashCode() - Method in class uk.ac.nott.cs.g54dia.library.Point
Override hashCode to make sure identical points produce identical hashes.

I

iconfactory - Variable in class uk.ac.nott.cs.g54dia.library.TankerViewer
 
incCompleted() - Method in class uk.ac.nott.cs.g54dia.library.Tanker
Increment Completed count
isComplete() - Method in class uk.ac.nott.cs.g54dia.library.Task
Is this task completed?

L

LoadWaterAction - Class in uk.ac.nott.cs.g54dia.library
Action which loads water into the tanker.
LoadWaterAction() - Constructor for class uk.ac.nott.cs.g54dia.library.LoadWaterAction
 

M

main(String[]) - Static method in class uk.ac.nott.cs.g54dia.demo.DemoSimulator
 
map - Variable in class uk.ac.nott.cs.g54dia.library.Environment
Mapping from an (x,y) point to a Cell.
MAX_DEMAND - Static variable in class uk.ac.nott.cs.g54dia.library.Task
The maximum size of a demand for water
MAX_FUEL - Static variable in class uk.ac.nott.cs.g54dia.library.Tanker
The maximum amount of fuel a Tanker can have.
MAX_WATER - Static variable in class uk.ac.nott.cs.g54dia.library.Tanker
The maximum amount of water a Tanker can have.
MoveAction - Class in uk.ac.nott.cs.g54dia.library
Action which moves the tanker one cell in a specified direction.
MoveAction(int) - Constructor for class uk.ac.nott.cs.g54dia.library.MoveAction
 
MoveTowardsAction - Class in uk.ac.nott.cs.g54dia.library
Action which moves the tanker towards a given Point in the environment.
MoveTowardsAction(Point) - Constructor for class uk.ac.nott.cs.g54dia.library.MoveTowardsAction
 

N

NEW_TASK_PROBABILITY - Static variable in class uk.ac.nott.cs.g54dia.library.Station
 
NORTH - Static variable in class uk.ac.nott.cs.g54dia.library.MoveAction
 
NORTHEAST - Static variable in class uk.ac.nott.cs.g54dia.library.MoveAction
 
NORTHWEST - Static variable in class uk.ac.nott.cs.g54dia.library.MoveAction
 

O

OutOfFuelException - Exception in uk.ac.nott.cs.g54dia.library
Exception thrown to signal that a tanker runs out of fuel.
OutOfFuelException(String) - Constructor for exception uk.ac.nott.cs.g54dia.library.OutOfFuelException
 

P

point - Variable in class uk.ac.nott.cs.g54dia.library.DefaultCell
 
Point - Class in uk.ac.nott.cs.g54dia.library
A 2D position in the Environment.
Point(int, int) - Constructor for class uk.ac.nott.cs.g54dia.library.Point
 
pos - Variable in class uk.ac.nott.cs.g54dia.library.TankerViewer
 
position - Variable in class uk.ac.nott.cs.g54dia.library.Tanker
The Tanker's current position in the environment.
putCell(Cell) - Method in class uk.ac.nott.cs.g54dia.library.Environment
Add a cell to the environment.

R

RefuelAction - Class in uk.ac.nott.cs.g54dia.library
Action which replenishes the fuel in the tanker.
RefuelAction() - Constructor for class uk.ac.nott.cs.g54dia.library.RefuelAction
 
removeTask() - Method in class uk.ac.nott.cs.g54dia.library.Station
 

S

score - Variable in class uk.ac.nott.cs.g54dia.library.TankerViewer
 
senseAndAct(Cell[][], long) - Method in class uk.ac.nott.cs.g54dia.demo.DemoTanker
 
senseAndAct(Cell[][], long) - Method in class uk.ac.nott.cs.g54dia.library.Tanker
Sub-classes must implement this method to provide the "brains" for the Tanker.
serialVersionUID - Static variable in exception uk.ac.nott.cs.g54dia.library.ActionFailedException
 
serialVersionUID - Static variable in exception uk.ac.nott.cs.g54dia.library.OutOfFuelException
 
serialVersionUID - Static variable in class uk.ac.nott.cs.g54dia.library.TankerViewer
 
setTanker(Tanker) - Method in class uk.ac.nott.cs.g54dia.library.TankerViewer
 
setWaterDemand(int) - Method in class uk.ac.nott.cs.g54dia.library.Task
 
SIZE - Static variable in class uk.ac.nott.cs.g54dia.library.TankerViewer
 
SOUTH - Static variable in class uk.ac.nott.cs.g54dia.library.MoveAction
 
SOUTHEAST - Static variable in class uk.ac.nott.cs.g54dia.library.MoveAction
 
SOUTHWEST - Static variable in class uk.ac.nott.cs.g54dia.library.MoveAction
 
Station - Class in uk.ac.nott.cs.g54dia.library
A environment cell which contains a water station.
Station(Point) - Constructor for class uk.ac.nott.cs.g54dia.library.Station
 
station - Variable in class uk.ac.nott.cs.g54dia.library.Task
 
stationIcon - Static variable in class uk.ac.nott.cs.g54dia.library.DefaultTankerViewerIconFactory
 
stations - Variable in class uk.ac.nott.cs.g54dia.library.Environment
List of stations
stationWithTaskIcon - Static variable in class uk.ac.nott.cs.g54dia.library.DefaultTankerViewerIconFactory
 
supplied - Variable in class uk.ac.nott.cs.g54dia.library.Task
 
supply(int) - Method in class uk.ac.nott.cs.g54dia.library.Task
 

T

tank - Variable in class uk.ac.nott.cs.g54dia.library.TankerViewer
 
Tanker - Class in uk.ac.nott.cs.g54dia.library
An abstract base class for Tankers in the standard Environment.
Tanker() - Constructor for class uk.ac.nott.cs.g54dia.library.Tanker
 
tankerIcon - Static variable in class uk.ac.nott.cs.g54dia.library.DefaultTankerViewerIconFactory
 
TankerViewer - Class in uk.ac.nott.cs.g54dia.library
A simple user interface for watching an individual Tanker.
TankerViewer(Tanker) - Constructor for class uk.ac.nott.cs.g54dia.library.TankerViewer
 
TankerViewer(Tanker, TankerViewerIconFactory) - Constructor for class uk.ac.nott.cs.g54dia.library.TankerViewer
 
TankerViewerIconFactory - Interface in uk.ac.nott.cs.g54dia.library
Interface allowing customisation of the TankerViewer icons used to depict objects in the environment different types of Tankers and cells.
target - Variable in class uk.ac.nott.cs.g54dia.library.MoveTowardsAction
 
task - Variable in class uk.ac.nott.cs.g54dia.library.DeliverWaterAction
 
task - Variable in class uk.ac.nott.cs.g54dia.library.Station
 
Task - Class in uk.ac.nott.cs.g54dia.library
A environment cell which contains an task
Task(Station) - Constructor for class uk.ac.nott.cs.g54dia.library.Task
 
taskIcon - Static variable in class uk.ac.nott.cs.g54dia.library.DefaultTankerViewerIconFactory
 
tick() - Method in class uk.ac.nott.cs.g54dia.library.Environment
Increase timestep.
tick(Environment) - Method in class uk.ac.nott.cs.g54dia.library.TankerViewer
 
timestep - Variable in class uk.ac.nott.cs.g54dia.library.Environment
Current timestep of the simulation.
toString() - Method in class uk.ac.nott.cs.g54dia.library.DeliverWaterAction
 
toString() - Method in class uk.ac.nott.cs.g54dia.library.LoadWaterAction
 
toString() - Method in class uk.ac.nott.cs.g54dia.library.MoveAction
 
toString() - Method in class uk.ac.nott.cs.g54dia.library.MoveTowardsAction
 
toString() - Method in class uk.ac.nott.cs.g54dia.library.Point
 
toString() - Method in class uk.ac.nott.cs.g54dia.library.RefuelAction
 
tstep - Variable in class uk.ac.nott.cs.g54dia.library.TankerViewer
 

U

uk.ac.nott.cs.g54dia.demo - package uk.ac.nott.cs.g54dia.demo
 
uk.ac.nott.cs.g54dia.library - package uk.ac.nott.cs.g54dia.library
 
useFuel(int) - Method in class uk.ac.nott.cs.g54dia.library.Tanker
Use fuel - used by move actions/

V

VIEW_RANGE - Static variable in class uk.ac.nott.cs.g54dia.library.Tanker
The distance a Tanker can "see".

W

water - Variable in class uk.ac.nott.cs.g54dia.library.TankerViewer
 
WATER_YIELD - Static variable in class uk.ac.nott.cs.g54dia.library.Well
yield of well
waterDelivered - Variable in class uk.ac.nott.cs.g54dia.library.Tanker
The total amount of water delivered (completed tasks only)
waterLevel - Variable in class uk.ac.nott.cs.g54dia.library.Tanker
The initial level of water in the tanker
Well - Class in uk.ac.nott.cs.g54dia.library
A well is a source of water
Well(Point) - Constructor for class uk.ac.nott.cs.g54dia.library.Well
 
wellIcon - Static variable in class uk.ac.nott.cs.g54dia.library.DefaultTankerViewerIconFactory
 
WEST - Static variable in class uk.ac.nott.cs.g54dia.library.MoveAction
 

X

x - Variable in class uk.ac.nott.cs.g54dia.library.Point
 

Y

y - Variable in class uk.ac.nott.cs.g54dia.library.Point
 

A C D E F G H I L M N O P R S T U V W X Y