public class GTUGeneratorIndividual extends AbstractGTUGenerator implements Serializable
Copyright (c) 2013-2018 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,
DEVSSimulatorInterface.TimeDoubleUnit simulator,
GTUType gtuType,
Class<?> gtuClass,
ContinuousDistDoubleScalar.Rel<Speed,SpeedUnit> initialSpeedDist,
ContinuousDistDoubleScalar.Rel<Duration,DurationUnit> interarrivelTimeDist,
ContinuousDistDoubleScalar.Rel<Length,LengthUnit> lengthDist,
ContinuousDistDoubleScalar.Rel<Length,LengthUnit> widthDist,
ContinuousDistDoubleScalar.Rel<Speed,SpeedUnit> maximumSpeedDist,
long maxGTUs,
Time startTime,
Time endTime,
Lane lane,
Length position,
GTUDirectionality direction,
GTUColorer gtuColorer,
LaneBasedStrategicalPlannerFactory<? extends LaneBasedStrategicalPlanner> strategicalPlannerFactory,
RouteGenerator routeGenerator,
OTSNetwork network) |
Modifier and Type | Method and Description |
---|---|
ContinuousDistDoubleScalar.Rel<Length,LengthUnit> |
getLengthDist() |
ContinuousDistDoubleScalar.Rel<Speed,SpeedUnit> |
getMaximumSpeedDist() |
DEVSSimulatorInterface.TimeDoubleUnit |
getSimulator() |
ContinuousDistDoubleScalar.Rel<Length,LengthUnit> |
getWidthDist() |
String |
toString() |
checkCarBuilderList, enoughSpace, generate, getBounds, getEndTime, getGtuClass, getGtuColorer, getGtuType, getInitialSpeedDist, getInterarrivelTimeDist, getLocation, getMaxGTUs, getName, getQueueLengths, getStartTime, getStrategicalPlannerFactory, headway
public GTUGeneratorIndividual(String name, DEVSSimulatorInterface.TimeDoubleUnit simulator, GTUType gtuType, Class<?> gtuClass, ContinuousDistDoubleScalar.Rel<Speed,SpeedUnit> initialSpeedDist, ContinuousDistDoubleScalar.Rel<Duration,DurationUnit> interarrivelTimeDist, ContinuousDistDoubleScalar.Rel<Length,LengthUnit> lengthDist, ContinuousDistDoubleScalar.Rel<Length,LengthUnit> widthDist, ContinuousDistDoubleScalar.Rel<Speed,SpeedUnit> maximumSpeedDist, long maxGTUs, Time startTime, Time endTime, Lane lane, Length position, GTUDirectionality direction, GTUColorer gtuColorer, LaneBasedStrategicalPlannerFactory<? extends LaneBasedStrategicalPlanner> strategicalPlannerFactory, RouteGenerator routeGenerator, OTSNetwork network) throws 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 intoSimRuntimeException
- when simulation scheduling failspublic final DEVSSimulatorInterface.TimeDoubleUnit getSimulator()
getSimulator
in class AbstractGTUGenerator
public final ContinuousDistDoubleScalar.Rel<Length,LengthUnit> getLengthDist()
getLengthDist
in class AbstractGTUGenerator
public final ContinuousDistDoubleScalar.Rel<Length,LengthUnit> getWidthDist()
getWidthDist
in class AbstractGTUGenerator
public final ContinuousDistDoubleScalar.Rel<Speed,SpeedUnit> getMaximumSpeedDist()
getMaximumSpeedDist
in class AbstractGTUGenerator
Copyright © 2014–2018 Delft University of Technology. All rights reserved.