A B D E G L M N O P R S T U W

A

AHEAD - Static variable in class alpiv.trucks.Road
 
alpiv.trucks - package alpiv.trucks
 

B

block() - Method in class alpiv.trucks.BlockSupportMuster
 
block() - Method in class alpiv.trucks.BlockSupport
Belegt das Objekt.
blocking() - Method in class alpiv.trucks.BlockSupportMuster
 
blocking() - Method in class alpiv.trucks.BlockSupport
Liefert den Thread, der gerade das Objekt belegt hat, oder null.
BlockSupport - class alpiv.trucks.BlockSupport.
Erlaubt das Belegen eines Objekts durch einen Thread.
BlockSupport() - Constructor for class alpiv.trucks.BlockSupport
 
BlockSupportMuster - class alpiv.trucks.BlockSupportMuster.
 
BlockSupportMuster() - Constructor for class alpiv.trucks.BlockSupportMuster
 

D

DIRECTIONS - Static variable in class alpiv.trucks.Road
Constants for the directions of exits.
DIRNAMES - Static variable in class alpiv.trucks.Road
Names for the directions.

E

EAST - Static variable in class alpiv.trucks.Road
 

G

getDirection() - Method in class alpiv.trucks.TruckMuster
Get the direction this truck is moving in.
getExit(int) - Method in class alpiv.trucks.Road
Get the road reachable in the given direction.
getName() - Method in class alpiv.trucks.Road
Get the name of the road object.
getStart(int) - Method in class alpiv.trucks.RoadMap
Get the indicated start Road of the map.
getStarts() - Method in class alpiv.trucks.RoadMap
Get the number of start positions in the map.
getTraffic() - Method in class alpiv.trucks.Road
Get the current traffic on this road.
getType() - Method in class alpiv.trucks.Road
Get the type of the road object.
getX() - Method in class alpiv.trucks.Road
Get the X coordinate for map layout.
getY() - Method in class alpiv.trucks.Road
Get the Y coordinate for map layout.
GOAL - Static variable in class alpiv.trucks.Road
 

L

LEFT - Static variable in class alpiv.trucks.Road
Constants for direction changes.
link(Road, int, Road) - Static method in class alpiv.trucks.RoadMap
A helper method to bidirectionally link two road sections.

M

Main - class alpiv.trucks.Main.
 
Main() - Constructor for class alpiv.trucks.Main
 
main(String[]) - Static method in class alpiv.trucks.TestMuster
The main method for test runs.
main(String[]) - Static method in class alpiv.trucks.Main
The main method for the demonstration run.

N

nextDirection(int, int) - Static method in class alpiv.trucks.Road
A helper method to calculate direction changes.
NORTH - Static variable in class alpiv.trucks.Road
 
NORTHEAST - Static variable in class alpiv.trucks.Road
 
NORTHWEST - Static variable in class alpiv.trucks.Road
 
NOWHERE - Static variable in class alpiv.trucks.Road
 

O

offsetX(int) - Static method in class alpiv.trucks.RoadMap
A helper method to determine the X offset of the given direction.
offsetY(int) - Static method in class alpiv.trucks.RoadMap
A helper method to determine the Y offset of the given direction.
oppositeDirection(int) - Static method in class alpiv.trucks.Road
A helper method to calculate the opposite of a direction.

P

paint(Graphics) - Method in class alpiv.trucks.RoadMap
Draw the map in the main display canvas.

R

REGULAR - Static variable in class alpiv.trucks.Road
Constants for the road types.
RIGHT - Static variable in class alpiv.trucks.Road
 
Road - class alpiv.trucks.Road.
Objects of this class represent sections of a road map.
Road(String, RoadObserver) - Constructor for class alpiv.trucks.Road
Convenience constructor with name and observer.
Road(String, RoadObserver, int) - Constructor for class alpiv.trucks.Road
Convenience constructor with name, observer, and type.
Road(String, RoadObserver, int, int, int) - Constructor for class alpiv.trucks.Road
Full constructor.
roadChanged() - Method in class alpiv.trucks.RoadMap
Callback method for observing traffic changes.
RoadMap - class alpiv.trucks.RoadMap.
Objects of this class represent a map of connected roads.
RoadMap(String) - Constructor for class alpiv.trucks.RoadMap
Main constructor.
run() - Method in class alpiv.trucks.TruckMuster
The driving routine.

S

setExit(int, Road) - Method in class alpiv.trucks.Road
Link this road to another one in the given direction.
setLocation(int, int) - Method in class alpiv.trucks.Road
Set this roads location for layout purposes.
setSpeed(int) - Static method in class alpiv.trucks.TruckMuster
Set the speed at which all trucks move.
setTraffic(Truck) - Method in class alpiv.trucks.Road
Place or remove some traffic on the road.
SOUTH - Static variable in class alpiv.trucks.Road
 
SOUTHEAST - Static variable in class alpiv.trucks.Road
 
SOUTHWEST - Static variable in class alpiv.trucks.Road
 
START - Static variable in class alpiv.trucks.Road
 

T

TestMuster - class alpiv.trucks.TestMuster.
 
TestMuster() - Constructor for class alpiv.trucks.TestMuster
 
TruckMuster - class alpiv.trucks.TruckMuster.
Objects of this class represent trucks driving on the road.
TruckMuster(String, int, Road) - Constructor for class alpiv.trucks.TruckMuster
Main constructor.

U

unblock() - Method in class alpiv.trucks.BlockSupportMuster
 
unblock() - Method in class alpiv.trucks.BlockSupport
Gibt das Objekt wieder frei.

W

WEST - Static variable in class alpiv.trucks.Road
 

A B D E G L M N O P R S T U W