ID - the ID of the GTU type, e.g. String or Integer.public class GTUGeneratorIndividual<ID> extends AbstractGTUGenerator<ID>
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,
OTSDEVSSimulatorInterface simulator,
GTUType<ID> gtuType,
Class<?> gtuClass,
GTUFollowingModel gtuFollowingModel,
LaneChangeModel laneChangeModel,
DistContinuousDoubleScalar.Abs<SpeedUnit> initialSpeedDist,
DistContinuousDoubleScalar.Rel<TimeUnit> interarrivelTimeDist,
DistContinuousDoubleScalar.Rel<LengthUnit> lengthDist,
DistContinuousDoubleScalar.Rel<LengthUnit> widthDist,
DistContinuousDoubleScalar.Abs<SpeedUnit> maximumSpeedDist,
long maxGTUs,
DoubleScalar.Abs<TimeUnit> startTime,
DoubleScalar.Abs<TimeUnit> endTime,
Lane<?,?> lane,
DoubleScalar.Rel<LengthUnit> position,
LaneBasedRouteGenerator routeGenerator,
GTUColorer gtuColorer) |
| Modifier and Type | Method and Description |
|---|---|
DistContinuousDoubleScalar.Rel<LengthUnit> |
getLengthDist() |
DistContinuousDoubleScalar.Abs<SpeedUnit> |
getMaximumSpeedDist() |
OTSDEVSSimulatorInterface |
getSimulator() |
DistContinuousDoubleScalar.Rel<LengthUnit> |
getWidthDist() |
checkCarBuilderList, enoughSpace, generate, getEndTime, getGtuClass, getGtuColorer, getGtuFollowingModel, getGtuType, getInitialSpeedDist, getInterarrivelTimeDist, getLaneChangeModel, getMaxGTUs, getName, getRouteGenerator, getStartTime, headway, setRouteGeneratorpublic GTUGeneratorIndividual(String name, OTSDEVSSimulatorInterface simulator, GTUType<ID> gtuType, Class<?> gtuClass, GTUFollowingModel gtuFollowingModel, LaneChangeModel laneChangeModel, DistContinuousDoubleScalar.Abs<SpeedUnit> initialSpeedDist, DistContinuousDoubleScalar.Rel<TimeUnit> interarrivelTimeDist, DistContinuousDoubleScalar.Rel<LengthUnit> lengthDist, DistContinuousDoubleScalar.Rel<LengthUnit> widthDist, DistContinuousDoubleScalar.Abs<SpeedUnit> maximumSpeedDist, long maxGTUs, DoubleScalar.Abs<TimeUnit> startTime, DoubleScalar.Abs<TimeUnit> endTime, Lane<?,?> lane, DoubleScalar.Rel<LengthUnit> position, LaneBasedRouteGenerator routeGenerator, GTUColorer gtuColorer) throws RemoteException, 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 useSimRuntimeException - 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.