public class RandomDestinationSelector extends Object implements DestinationSelector
Constructor and Description |
---|
RandomDestinationSelector(BasicMap layout)
Create a new RandomDestinationSelector from the given Layout.
|
Modifier and Type | Method and Description |
---|---|
Road |
selectDestination(Lane currentLane)
Select the Road which the given Vehicle should use as its destination.
|
public RandomDestinationSelector(BasicMap layout)
layout
- the Layout from which to create the
RandomDestinationSelectorpublic Road selectDestination(Lane currentLane)
selectDestination
in interface DestinationSelector
currentLane
- the lane the Vehicle is currently on, usually also
the lane the vehicle spawned onCopyright © 2013. All rights reserved.