public class HeadwayGeneratorDemand extends Object implements org.opentrafficsim.core.distributions.Generator<org.djunits.value.vdouble.scalar.Duration>
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 |
---|
HeadwayGeneratorDemand(org.djunits.value.vdouble.vector.TimeVector timeVector,
org.djunits.value.vdouble.vector.FrequencyVector demandVector,
org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator) |
HeadwayGeneratorDemand(org.djunits.value.vdouble.vector.TimeVector timeVector,
org.djunits.value.vdouble.vector.FrequencyVector demandVector,
org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator,
Interpolation interpolation) |
public HeadwayGeneratorDemand(org.djunits.value.vdouble.vector.TimeVector timeVector, org.djunits.value.vdouble.vector.FrequencyVector demandVector, org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator)
timeVector
- a time vectordemandVector
- the corresponding demand vectorsimulator
- the simulatorpublic HeadwayGeneratorDemand(org.djunits.value.vdouble.vector.TimeVector timeVector, org.djunits.value.vdouble.vector.FrequencyVector demandVector, org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator, Interpolation interpolation)
timeVector
- a time vectordemandVector
- the corresponding demand vectorsimulator
- the simulatorinterpolation
- interpolation typepublic org.djunits.value.vdouble.scalar.Duration 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.Duration>
org.opentrafficsim.core.distributions.ProbabilityException
org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
Copyright © 2014–2017 Delft University of Technology. All rights reserved.