Package casa.lepton.walk
Class BusWalker
java.lang.Object
casa.lepton.walk.BusWalker
- All Implemented Interfaces:
Walker
A
Walker
for a bus that follows a given journey with fixed times at
some bus stops.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncasa.util.geom.CoordCar
getPosition
(long time) Returns aCoordCar
object that defines the position of thisWalker
at the specified time.getStep()
getWalk()
nextStep()
-
Constructor Details
-
BusWalker
Constructor- Parameters:
walk
- the walkjourney
- the bus journeypauseSeed
- the seed to generate random pause durations
-
-
Method Details
-
getWalk
Description copied from interface:Walker
-
getPosition
public casa.util.geom.CoordCar getPosition(long time) Description copied from interface:Walker
Returns aCoordCar
object that defines the position of thisWalker
at the specified time.- Specified by:
getPosition
in interfaceWalker
- Parameters:
time
- the time for which the position is requested- Returns:
- the position of this
Walker
at the specified time
-
getStep
Description copied from interface:Walker
-
nextStep
Description copied from interface:Walker
-