public class GTUGeneratorIndividual extends AbstractGTUGenerator
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
numberGTUs
Constructor and Description |
---|
GTUGeneratorIndividual(String name,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
org.opentrafficsim.core.gtu.GTUType gtuType,
Class<?> gtuClass,
GTUFollowingModel gtuFollowingModel,
LaneChangeModel laneChangeModel,
org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Speed,org.djunits.unit.SpeedUnit> initialSpeedDist,
org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Time.Rel,org.djunits.unit.TimeUnit> interarrivelTimeDist,
org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length.Rel,org.djunits.unit.LengthUnit> lengthDist,
org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length.Rel,org.djunits.unit.LengthUnit> widthDist,
org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Speed,org.djunits.unit.SpeedUnit> maximumSpeedDist,
long maxGTUs,
org.djunits.value.vdouble.scalar.Time.Abs startTime,
org.djunits.value.vdouble.scalar.Time.Abs endTime,
Lane lane,
org.djunits.value.vdouble.scalar.Length.Rel position,
LaneBasedRouteGenerator routeGenerator,
org.opentrafficsim.core.gtu.animation.GTUColorer gtuColorer) |
Modifier and Type | Method and Description |
---|---|
org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length.Rel,org.djunits.unit.LengthUnit> |
getLengthDist() |
org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Speed,org.djunits.unit.SpeedUnit> |
getMaximumSpeedDist() |
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface |
getSimulator() |
org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length.Rel,org.djunits.unit.LengthUnit> |
getWidthDist() |
checkCarBuilderList, enoughSpace, generate, getEndTime, getGtuClass, getGtuColorer, getGtuFollowingModel, getGtuType, getInitialSpeedDist, getInterarrivelTimeDist, getLaneChangeModel, getMaxGTUs, getName, getRouteGenerator, getStartTime, headway, setRouteGenerator
public GTUGeneratorIndividual(String name, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator, org.opentrafficsim.core.gtu.GTUType gtuType, Class<?> gtuClass, GTUFollowingModel gtuFollowingModel, LaneChangeModel laneChangeModel, org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Speed,org.djunits.unit.SpeedUnit> initialSpeedDist, org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Time.Rel,org.djunits.unit.TimeUnit> interarrivelTimeDist, org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length.Rel,org.djunits.unit.LengthUnit> lengthDist, org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length.Rel,org.djunits.unit.LengthUnit> widthDist, org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Speed,org.djunits.unit.SpeedUnit> maximumSpeedDist, long maxGTUs, org.djunits.value.vdouble.scalar.Time.Abs startTime, org.djunits.value.vdouble.scalar.Time.Abs endTime, Lane lane, org.djunits.value.vdouble.scalar.Length.Rel position, LaneBasedRouteGenerator routeGenerator, org.opentrafficsim.core.gtu.animation.GTUColorer gtuColorer) throws nl.tudelft.simulation.dsol.SimRuntimeException
name
- the name of the generatorgtuType
- the type of GTU to generategtuClass
- the gtu class to instantiategtuFollowingModel
- the GTU following model to uselaneChangeModel
- the lane change model to useinitialSpeedDist
- distribution of the initial speed of the GTUinterarrivelTimeDist
- distribution of the interarrival timemaxGTUs
- maximum number of GTUs to generatestartTime
- start time of generation (delayed start)endTime
- end time of generationsimulator
- simulator to schedule next arrival eventslengthDist
- distribution of the length of the GTUwidthDist
- distribution of the width of the GTUmaximumSpeedDist
- distribution of the maximum speed of the GTUlane
- Lane on which newly GTUs are placedposition
- position on the lane, relative to the design line of the linkrouteGenerator
- RouteGenerator; the route generator that will create a route for each newly constructed GTUgtuColorer
- the GTUColorer to usenl.tudelft.simulation.dsol.SimRuntimeException
- when simulation scheduling failspublic final org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface getSimulator()
getSimulator
in class AbstractGTUGenerator
public final org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length.Rel,org.djunits.unit.LengthUnit> getLengthDist()
getLengthDist
in class AbstractGTUGenerator
public final org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length.Rel,org.djunits.unit.LengthUnit> getWidthDist()
getWidthDist
in class AbstractGTUGenerator
public final org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Speed,org.djunits.unit.SpeedUnit> getMaximumSpeedDist()
getMaximumSpeedDist
in class AbstractGTUGenerator
Copyright © 2014–2015 Delft University of Technology. All rights reserved.