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,
OTSDEVSSimulatorInterface simulator,
GTUType gtuType,
GTUFollowingModel gtuFollowingModel,
LaneChangeModel laneChangeModel,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> initialSpeed,
Lane lane,
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> position,
LaneBasedRouteGenerator routeGenerator,
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, OTSDEVSSimulatorInterface simulator, GTUType gtuType, GTUFollowingModel gtuFollowingModel, LaneChangeModel laneChangeModel, org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.SpeedUnit> initialSpeed, Lane lane, org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> position, LaneBasedRouteGenerator routeGenerator, GTUColorer gtuColorer, String fileName) throws RemoteException, SimRuntimeException, 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)RemoteException - onSimRuntimeException - onNetworkException - onCopyright © 2014–2015 Delft University of Technology. All rights reserved.