public class TurnBasedDestinationSelector extends Object implements DestinationSelector
Constructor and Description |
---|
TurnBasedDestinationSelector(BasicMap layout)
Create a new identity destination selector 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 TurnBasedDestinationSelector(BasicMap layout)
layout
- the layout from which to create the new
identity destination selectorpublic 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.