public class SpeedGenerator extends Object implements org.opentrafficsim.core.distributions.Generator<org.djunits.value.vdouble.scalar.Speed>
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
SpeedGenerator(org.djunits.value.vdouble.scalar.Speed minSpeed,
org.djunits.value.vdouble.scalar.Speed maxSpeed,
nl.tudelft.simulation.jstats.streams.StreamInterface stream) |
public SpeedGenerator(org.djunits.value.vdouble.scalar.Speed minSpeed,
org.djunits.value.vdouble.scalar.Speed maxSpeed,
nl.tudelft.simulation.jstats.streams.StreamInterface stream)
minSpeed - min speedmaxSpeed - max speedstream - random streampublic org.djunits.value.vdouble.scalar.Speed draw()
throws org.opentrafficsim.core.distributions.ProbabilityException,
org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
draw in interface org.opentrafficsim.core.distributions.Generator<org.djunits.value.vdouble.scalar.Speed>org.opentrafficsim.core.distributions.ProbabilityExceptionorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterExceptionCopyright © 2014–2017 Delft University of Technology. All rights reserved.