public abstract class Manager
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Class and Description |
---|---|
static class |
Manager.Notification
Message options from a truck to a manager include the following.
|
Modifier and Type | Method and Description |
---|---|
Board |
getBoard()
Return the Board for this Game.
|
java.util.HashSet<Edge> |
getEdges()
Return the Edges in this Game,
|
Game |
getGame()
Return the Game to which this Manager belongs.
|
java.util.HashSet<Node> |
getNodes()
Return the Nodes in this Game.
|
java.util.Set<Parcel> |
getParcels()
Return the undelivered Parcels in this Game.
|
int |
getScore()
Return the current value of the score.
|
int |
getScoreValue()
Return the current value of the score.
|
java.util.ArrayList<Truck> |
getTrucks()
Return the Trucks in this Game.
|
abstract void |
run() |
void |
setGame(Game g)
Set the game this manager is watching to g.
|
abstract void |
truckNotification(Truck t,
Manager.Notification message)
Called by Truck t to notify the manager that something has occurred.
|
public abstract void run()
run
in interface java.lang.Runnable
public abstract void truckNotification(Truck t, Manager.Notification message)
public final int getScore()
public final int getScoreValue()
public final Game getGame()
public final Board getBoard()
public final java.util.HashSet<Node> getNodes()
public final java.util.HashSet<Edge> getEdges()
public final java.util.ArrayList<Truck> getTrucks()
public final java.util.Set<Parcel> getParcels()
public final void setGame(Game g)