public class GTUGeneratorIndividual extends AbstractGTUGenerator implements Serializable
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
numberGTUslistenersFIRST_POSITION, LAST_POSITION| Constructor and Description |
|---|
GTUGeneratorIndividual(String name,
OTSSimulatorInterface 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,
LaneBasedStrategicalPlannerFactory<? extends LaneBasedStrategicalPlanner> strategicalPlannerFactory,
RouteGenerator routeGenerator,
OTSNetwork network) |
| Modifier and Type | Method and Description |
|---|---|
ContinuousDistDoubleScalar.Rel<Length,LengthUnit> |
getLengthDist() |
ContinuousDistDoubleScalar.Rel<Speed,SpeedUnit> |
getMaximumSpeedDist() |
OTSSimulatorInterface |
getSimulator() |
ContinuousDistDoubleScalar.Rel<Length,LengthUnit> |
getWidthDist() |
String |
toString() |
checkCarBuilderList, enoughSpace, generate, getBounds, getEndTime, getGtuClass, getGtuType, getInitialSpeedDist, getInterarrivelTimeDist, getLocation, getMaxGTUs, getName, getQueueLengths, getStartTime, getStrategicalPlannerFactory, headwayaddListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, removeAllListeners, removeAllListeners, removeListenerpublic GTUGeneratorIndividual(String name, OTSSimulatorInterface 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, LaneBasedStrategicalPlannerFactory<? extends LaneBasedStrategicalPlanner> strategicalPlannerFactory, RouteGenerator routeGenerator, OTSNetwork network) throws SimRuntimeException
name - String; the name of the generatorgtuType - GTUType; the type of GTU to generategtuClass - Class<?>; the gtu class to instantiateinitialSpeedDist - ContinuousDistDoubleScalar.Rel<Speed,SpeedUnit>; distribution of the initial speed of the
GTUinterarrivelTimeDist - ContinuousDistDoubleScalar.Rel<Duration,DurationUnit>; distribution of the interarrival
timemaxGTUs - long; maximum number of GTUs to generatestartTime - Time; start time of generation (delayed start)endTime - Time; end time of generationsimulator - OTSSimulatorInterface; simulator to schedule next arrival eventslengthDist - ContinuousDistDoubleScalar.Rel<Length,LengthUnit>; distribution of the length of the GTUwidthDist - ContinuousDistDoubleScalar.Rel<Length,LengthUnit>; distribution of the width of the GTUmaximumSpeedDist - ContinuousDistDoubleScalar.Rel<Speed,SpeedUnit>; distribution of the maximum speed of the
GTUlane - Lane; Lane on which newly GTUs are placedposition - Length; position on the lane, relative to the design line of the linkdirection - GTUDirectionality; the direction on the lane in which the GTU has to be generated (DIR_PLUS, or
DIR_MINUS)strategicalPlannerFactory - LaneBasedStrategicalPlannerFactory<? extends LaneBasedStrategicalPlanner>; the
lane-based strategical planner factory to userouteGenerator - RouteGenerator; route generatornetwork - OTSNetwork; the network to register the GTU intoSimRuntimeException - when simulation scheduling failspublic final OTSSimulatorInterface getSimulator()
getSimulator in class AbstractGTUGeneratorpublic final ContinuousDistDoubleScalar.Rel<Length,LengthUnit> getLengthDist()
getLengthDist in class AbstractGTUGeneratorpublic final ContinuousDistDoubleScalar.Rel<Length,LengthUnit> getWidthDist()
getWidthDist in class AbstractGTUGeneratorpublic final ContinuousDistDoubleScalar.Rel<Speed,SpeedUnit> getMaximumSpeedDist()
getMaximumSpeedDist in class AbstractGTUGeneratorCopyright © 2014–2019 Delft University of Technology. All rights reserved.