public class ListGTUGenerator extends Object implements Serializable
Copyright (c) 2013-2017 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,
org.djunits.value.vdouble.scalar.Speed initialSpeed,
Lane lane,
org.djunits.value.vdouble.scalar.Length position,
org.opentrafficsim.core.gtu.GTUDirectionality direction,
org.opentrafficsim.core.gtu.animation.GTUColorer gtuColorer,
LaneBasedStrategicalPlanner strategicalPlanner,
org.opentrafficsim.core.network.OTSNetwork network,
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.
|
String |
toString() |
public ListGTUGenerator(String name, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator, org.opentrafficsim.core.gtu.GTUType gtuType, org.djunits.value.vdouble.scalar.Speed initialSpeed, Lane lane, org.djunits.value.vdouble.scalar.Length position, org.opentrafficsim.core.gtu.GTUDirectionality direction, org.opentrafficsim.core.gtu.animation.GTUColorer gtuColorer, LaneBasedStrategicalPlanner strategicalPlanner, org.opentrafficsim.core.network.OTSNetwork network, 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 GTUsinitialSpeed - Speed; the initial speed of the generated GTUslane - Lane; the lane on which the generated GTUs are placedposition - Length; the position on the lane where the generated GTUs are placeddirection - the direction on the lane in which the GTU has to be generated (DIR_PLUS, or DIR_MINUS)gtuColorer - GTUColorere; the GTUColorer of the generated GTUsstrategicalPlanner - the lane-based strategical planner to usenetwork - the network to initially register the cars infileName - String; name of file with the times when another GTU is to be generated (XXXX STUB)SimRuntimeException - onorg.opentrafficsim.core.network.NetworkException - onCopyright © 2014–2017 Delft University of Technology. All rights reserved.