ID
- the ID of the GTU type, e.g. String or Integer.public class GTUGeneratorIndividual<ID> extends AbstractGTUGenerator<ID>
Copyright (c) 2013-2014 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,
OTSDEVSSimulatorInterface simulator,
GTUType<ID> gtuType,
Class<GTU<ID>> gtuClass,
GTUFollowingModel gtuFollowingModel,
DistContinuousDoubleScalar.Abs<SpeedUnit> initialSpeedDist,
DistContinuousDoubleScalar.Rel<TimeUnit> interarrivelTimeDist,
DistContinuousDoubleScalar.Rel<LengthUnit> lengthDist,
DistContinuousDoubleScalar.Rel<LengthUnit> widthDist,
DistContinuousDoubleScalar.Abs<SpeedUnit> maximumSpeedDist,
long maxGTUs,
OTSSimTimeDouble startTime,
OTSSimTimeDouble endTime,
Lane lane) |
Modifier and Type | Method and Description |
---|---|
DistContinuousDoubleScalar.Rel<LengthUnit> |
getLengthDist() |
DistContinuousDoubleScalar.Abs<SpeedUnit> |
getMaximumSpeedDist() |
OTSDEVSSimulatorInterface |
getSimulator() |
DistContinuousDoubleScalar.Rel<LengthUnit> |
getWidthDist() |
generate, getEndTime, getGtuClass, getGtuFollowingModel, getGtuType, getInitialSpeedDist, getInterarrivelTimeDist, getMaxGTUs, getName, getStartTime
public GTUGeneratorIndividual(String name, OTSDEVSSimulatorInterface simulator, GTUType<ID> gtuType, Class<GTU<ID>> gtuClass, GTUFollowingModel gtuFollowingModel, DistContinuousDoubleScalar.Abs<SpeedUnit> initialSpeedDist, DistContinuousDoubleScalar.Rel<TimeUnit> interarrivelTimeDist, DistContinuousDoubleScalar.Rel<LengthUnit> lengthDist, DistContinuousDoubleScalar.Rel<LengthUnit> widthDist, DistContinuousDoubleScalar.Abs<SpeedUnit> maximumSpeedDist, long maxGTUs, OTSSimTimeDouble startTime, OTSSimTimeDouble endTime, Lane lane) throws RemoteException, nl.tudelft.simulation.dsol.SimRuntimeException
name
- the name of the generator.gtuType
- the type of GTU to generate.gtuClass
- the gtu class to instantiate.gtuFollowingModel
- the GTU following model to use.initialSpeedDist
- distribution of the initial speed of the GTU.interarrivelTimeDist
- distribution of the interarrival time.maxGTUs
- maximum number of GTUs to generate.startTime
- start time of generation (delayed start).endTime
- end time of generation.simulator
- simulator to schedule next arrival events.lengthDist
- distribution of the length of the GTU.widthDist
- distribution of the width of the GTU.maximumSpeedDist
- distribution of the maximum speed of the GTU.lane
- Lane on which newly GTUs are placed.nl.tudelft.simulation.dsol.SimRuntimeException
- when simulation scheduling failsRemoteException
- when remote simulator cannot be reachedpublic final OTSDEVSSimulatorInterface getSimulator()
getSimulator
in class AbstractGTUGenerator<ID>
public final DistContinuousDoubleScalar.Rel<LengthUnit> getLengthDist()
getLengthDist
in class AbstractGTUGenerator<ID>
public final DistContinuousDoubleScalar.Rel<LengthUnit> getWidthDist()
getWidthDist
in class AbstractGTUGenerator<ID>
public final DistContinuousDoubleScalar.Abs<SpeedUnit> getMaximumSpeedDist()
getMaximumSpeedDist
in class AbstractGTUGenerator<ID>
Copyright © 2014–2015 Delft University of Technology. All rights reserved.