public class GTUGeneratorIndividual extends AbstractGTUGenerator implements Serializable
 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.
 
numberGTUs| Constructor and Description | 
|---|
GTUGeneratorIndividual(String name,
                      org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
                      org.opentrafficsim.core.gtu.GTUType gtuType,
                      Class<?> gtuClass,
                      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.Duration,org.djunits.unit.TimeUnit> interarrivelTimeDist,
                      org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length,org.djunits.unit.LengthUnit> lengthDist,
                      org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length,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 startTime,
                      org.djunits.value.vdouble.scalar.Time endTime,
                      Lane lane,
                      org.djunits.value.vdouble.scalar.Length position,
                      org.opentrafficsim.core.gtu.GTUDirectionality direction,
                      org.opentrafficsim.core.gtu.animation.GTUColorer gtuColorer,
                      LaneBasedStrategicalPlannerFactory<? extends LaneBasedStrategicalPlanner> strategicalPlannerFactory,
                      org.opentrafficsim.core.network.route.RouteGenerator routeGenerator,
                      org.opentrafficsim.core.network.OTSNetwork network)  | 
| Modifier and Type | Method and Description | 
|---|---|
org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length,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,org.djunits.unit.LengthUnit> | 
getWidthDist()  | 
String | 
toString() | 
checkCarBuilderList, enoughSpace, generate, getEndTime, getGtuClass, getGtuColorer, getGtuType, getInitialSpeedDist, getInterarrivelTimeDist, getMaxGTUs, getName, getStartTime, getStrategicalPlannerFactory, headwaypublic GTUGeneratorIndividual(String name, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator, org.opentrafficsim.core.gtu.GTUType gtuType, Class<?> gtuClass, 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.Duration,org.djunits.unit.TimeUnit> interarrivelTimeDist, org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length,org.djunits.unit.LengthUnit> lengthDist, org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length,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 startTime, org.djunits.value.vdouble.scalar.Time endTime, Lane lane, org.djunits.value.vdouble.scalar.Length position, org.opentrafficsim.core.gtu.GTUDirectionality direction, org.opentrafficsim.core.gtu.animation.GTUColorer gtuColorer, LaneBasedStrategicalPlannerFactory<? extends LaneBasedStrategicalPlanner> strategicalPlannerFactory, org.opentrafficsim.core.network.route.RouteGenerator routeGenerator, org.opentrafficsim.core.network.OTSNetwork network) throws nl.tudelft.simulation.dsol.SimRuntimeException
name - the name of the generatorgtuType - the type of GTU to generategtuClass - the gtu class to instantiateinitialSpeedDist - 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 linkdirection - the direction on the lane in which the GTU has to be generated (DIR_PLUS, or DIR_MINUS)gtuColorer - the GTUColorer to usestrategicalPlannerFactory - the lane-based strategical planner factory to userouteGenerator - route generatornetwork - the network to register the GTU intonl.tudelft.simulation.dsol.SimRuntimeException - when simulation scheduling failspublic final org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface getSimulator()
getSimulator in class AbstractGTUGeneratorpublic final org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length,org.djunits.unit.LengthUnit> getLengthDist()
getLengthDist in class AbstractGTUGeneratorpublic final org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length,org.djunits.unit.LengthUnit> getWidthDist()
getWidthDist in class AbstractGTUGeneratorpublic final org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Speed,org.djunits.unit.SpeedUnit> getMaximumSpeedDist()
getMaximumSpeedDist in class AbstractGTUGeneratorCopyright © 2014–2017 Delft University of Technology. All rights reserved.