public static final class GeneratorPositions.LaneBiases extends Object
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
LaneBiases() |
Modifier and Type | Method and Description |
---|---|
GeneratorPositions.LaneBiases |
addBias(GTUType gtuType,
GeneratorPositions.LaneBias bias)
Adds a GTU bias for randomly drawing a lane.
|
boolean |
contains(GTUType gtuType)
Whether a bias is defined for the given type.
|
GeneratorPositions.LaneBias |
getBias(GTUType gtuType)
Returns the bias of given GTU type, or
Bias.None if none defined for the GTU type. |
String |
toString() |
public GeneratorPositions.LaneBiases addBias(GTUType gtuType, GeneratorPositions.LaneBias bias)
gtuType
- GTUType; gtu typebias
- Bias; biaspublic boolean contains(GTUType gtuType)
gtuType
- GTUType; GTU typepublic GeneratorPositions.LaneBias getBias(GTUType gtuType)
Bias.None
if none defined for the GTU type.gtuType
- GTUType; GTU typeCopyright © 2014–2018 Delft University of Technology. All rights reserved.