public class UniqueDestinationSelector extends Object implements DestinationSelector
| Constructor and Description |
|---|
UniqueDestinationSelector(Road endRoad)
Create a unique destination selector.
|
| Modifier and Type | Method and Description |
|---|---|
Road |
selectDestination(Lane currentLane)
Select the Road which the given Vehicle should use as its destination.
|
public UniqueDestinationSelector(Road endRoad)
endRoad - the destinationpublic Road selectDestination(Lane currentLane)
selectDestination in interface DestinationSelectorcurrentLane - the lane the Vehicle is currently on, usually also
the lane the vehicle spawned onCopyright © 2013. All rights reserved.