|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.nott.cs.g54dia.library.Tanker uk.ac.nott.cs.g54dia.demo.DemoTanker
public class DemoTanker
A simple example tanker that chooses actions.
Field Summary |
---|
Fields inherited from class uk.ac.nott.cs.g54dia.library.Tanker |
---|
FUEL_PUMP_LOCATION, MAX_FUEL, MAX_WATER, VIEW_RANGE |
Constructor Summary | |
---|---|
DemoTanker()
|
Method Summary | |
---|---|
Action |
senseAndAct(Cell[][] view,
long timestep)
Sub-classes must implement this method to provide the "brains" for the Tanker. |
Methods inherited from class uk.ac.nott.cs.g54dia.library.Tanker |
---|
getCompletedCount, getCurrentCell, getFuelLevel, getPosition, getScore, getWaterLevel, incCompleted, useFuel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DemoTanker()
Method Detail |
---|
public Action senseAndAct(Cell[][] view, long timestep)
Tanker
senseAndAct
in class Tanker
view
- the cells the Tanker can currently seetimestep
- The current timestep
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |