public class RatioDestinationSelector extends Object implements DestinationSelector
| Constructor and Description |
|---|
RatioDestinationSelector(BasicMap map,
TrafficVolume trafficVolume)
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 RatioDestinationSelector(BasicMap map, TrafficVolume trafficVolume)
map - the Layout from which to create the
RandomDestinationSelectortrafficVolume - the traffic volumepublic 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.