public class ListGTUGenerator extends Object
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.
| Constructor and Description |
|---|
ListGTUGenerator(String name,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
org.opentrafficsim.core.gtu.GTUType gtuType,
GTUFollowingModel gtuFollowingModel,
LaneChangeModel laneChangeModel,
org.djunits.value.vdouble.scalar.Speed initialSpeed,
Lane lane,
org.djunits.value.vdouble.scalar.Length.Rel position,
LaneBasedRouteGenerator routeGenerator,
org.opentrafficsim.core.gtu.animation.GTUColorer gtuColorer,
String fileName)
Construct a GTU generator that takes the times to generate another GTU from an external source.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
generateCar()
Generate one car and re-schedule this method.
|
public ListGTUGenerator(String name, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator, org.opentrafficsim.core.gtu.GTUType gtuType, GTUFollowingModel gtuFollowingModel, LaneChangeModel laneChangeModel, org.djunits.value.vdouble.scalar.Speed initialSpeed, Lane lane, org.djunits.value.vdouble.scalar.Length.Rel position, LaneBasedRouteGenerator routeGenerator, org.opentrafficsim.core.gtu.animation.GTUColorer gtuColorer, String fileName) throws SimRuntimeException, org.opentrafficsim.core.network.NetworkException
name - String; name if this generatorsimulator - OTSDEVSSimulatorInterface; the simulatorgtuType - GTUType<ID>; the GTUType of the generated GTUsgtuFollowingModel - GTUFollowingModel; the GTU following model of the generated GTUslaneChangeModel - LaneChangeModel; the lane change model of the generated GTUsinitialSpeed - DoubleScalar.Abs<SpeedUnit>; the initial speed of the generated GTUslane - Lane; the lane on which the generated GTUs are placedposition - DoubleScalar.Rel<LengthUnit>; the position on the lane where the generated GTUs are placedrouteGenerator - RouteGenerator; the route generator that generates the routes of the generated GTUsgtuColorer - GTUColorere; the GTUColorer of the generated GTUsfileName - String; name of file with the times when another GTU is to be generated (XXXX STUB)SimRuntimeException - onorg.opentrafficsim.core.network.NetworkException - onCopyright © 2014–2015 Delft University of Technology. All rights reserved.