public class GTUTypeGenerator extends Object
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Class and Description |
|---|---|
class |
GTUTypeGenerator.GTUTypeInfo
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
|
| Constructor and Description |
|---|
GTUTypeGenerator(org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator) |
| Modifier and Type | Method and Description |
|---|---|
void |
addType(org.djunits.value.vdouble.scalar.Length length,
org.djunits.value.vdouble.scalar.Length width,
org.opentrafficsim.core.gtu.GTUType gtuType,
org.opentrafficsim.core.distributions.Generator<org.djunits.value.vdouble.scalar.Speed> maximumSpeed,
double probability) |
GTUTypeGenerator.GTUTypeInfo |
draw() |
public GTUTypeGenerator(org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator)
simulator - the simulator to usepublic void addType(org.djunits.value.vdouble.scalar.Length length,
org.djunits.value.vdouble.scalar.Length width,
org.opentrafficsim.core.gtu.GTUType gtuType,
org.opentrafficsim.core.distributions.Generator<org.djunits.value.vdouble.scalar.Speed> maximumSpeed,
double probability)
length - length of the GTUwidth - width of the GTUgtuType - GTU typemaximumSpeed - maximum speed of the GTUprobability - the probability to generate with these characteristicspublic GTUTypeGenerator.GTUTypeInfo draw()
Copyright © 2014–2017 Delft University of Technology. All rights reserved.