class GeneratorTag extends Object implements Serializable
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $,
initial version Jul 23, 2015
| Modifier and Type | Field and Description |
|---|---|
(package private) org.djunits.value.vdouble.scalar.Time |
endTime
End time of generation.
|
(package private) org.opentrafficsim.core.gtu.animation.GTUColorer |
gtuColorer
GTU colorer.
|
(package private) org.opentrafficsim.core.gtu.GTUDirectionality |
gtuDirection
Direction in which to generate the GTU, relative to the design line of the Link.
|
(package private) GTUMixTag |
gtuMixTag
GTU mix tag.
|
(package private) GTUTag |
gtuTag
GTU tag.
|
(package private) org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Duration,org.djunits.unit.DurationUnit> |
iatDist
Interarrival time.
|
(package private) org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Speed,org.djunits.unit.SpeedUnit> |
initialSpeedDist
Initial speed.
|
(package private) String |
laneName
Lane name.
|
(package private) int |
maxGTUs
Maximimum number of generated GTUs.
|
(package private) String |
positionStr
Position of the sink on the link, relative to the design line, stored as a string to parse when the length is known.
|
(package private) RouteMixTag |
routeMixTag
Route mix tag.
|
(package private) RouteTag |
routeTag
Route tag.
|
(package private) ShortestRouteMixTag |
shortestRouteMixTag
Shortest route mix tag.
|
(package private) ShortestRouteTag |
shortestRouteTag
Shortest route tag.
|
(package private) org.djunits.value.vdouble.scalar.Time |
startTime
Start time of generation.
|
(package private) String |
tacticalPlannerName
Tactical planner name.
|
| Constructor and Description |
|---|
GeneratorTag() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static void |
makeGenerator(GeneratorTag generatorTag,
XmlNetworkLaneParser parser,
LinkTag linkTag,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator)
Make a generator.
|
(package private) static void |
makeGenerators(LinkTag linkTag,
XmlNetworkLaneParser parser,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator)
Make the generators for this link, if available.
|
(package private) static org.opentrafficsim.road.gtu.lane.tactical.LaneBasedTacticalPlannerFactory<?> |
makeTacticalPlannerFactory(GeneratorTag generatorTag,
nl.tudelft.simulation.jstats.streams.StreamInterface stream)
Factories are: IDM|MOBIL/IDM|DIRECTION/IDM|LMRS|TOLEDO.
|
(package private) static void |
parseGenerator(Node node,
XmlNetworkLaneParser parser,
LinkTag linkTag)
Parse the GENERATOR tag.
|
String |
toString() |
String laneName
String positionStr
org.opentrafficsim.core.gtu.GTUDirectionality gtuDirection
GTUTag gtuTag
GTUMixTag gtuMixTag
String tacticalPlannerName
org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Duration,org.djunits.unit.DurationUnit> iatDist
org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Speed,org.djunits.unit.SpeedUnit> initialSpeedDist
int maxGTUs
org.djunits.value.vdouble.scalar.Time startTime
org.djunits.value.vdouble.scalar.Time endTime
RouteTag routeTag
RouteMixTag routeMixTag
ShortestRouteTag shortestRouteTag
ShortestRouteMixTag shortestRouteMixTag
org.opentrafficsim.core.gtu.animation.GTUColorer gtuColorer
static void parseGenerator(Node node, XmlNetworkLaneParser parser, LinkTag linkTag) throws SAXException, org.opentrafficsim.core.network.NetworkException
node - the GENERATOR node to parseparser - the parser with the lists of informationlinkTag - the parent LINK tagSAXException - when parsing of the tag failsorg.opentrafficsim.core.network.NetworkException - when parsing of the tag failsstatic void makeGenerators(LinkTag linkTag, XmlNetworkLaneParser parser, nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator) throws nl.tudelft.simulation.dsol.SimRuntimeException, org.opentrafficsim.core.network.NetworkException, org.opentrafficsim.core.gtu.GTUException
linkTag - the parent LINK tagparser - the parser with the lists of informationsimulator - the simulator to schedule GTU generationnl.tudelft.simulation.dsol.SimRuntimeException - in case of simulation problems building the car generatororg.opentrafficsim.core.network.NetworkException - when route generator cannot be instantiatedorg.opentrafficsim.core.gtu.GTUException - when construction of the Strategical Planner failedstatic void makeGenerator(GeneratorTag generatorTag, XmlNetworkLaneParser parser, LinkTag linkTag, nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator) throws nl.tudelft.simulation.dsol.SimRuntimeException, org.opentrafficsim.core.network.NetworkException, org.opentrafficsim.core.gtu.GTUException
generatorTag - XML tag for the generator to buildparser - the parser with the lists of informationlinkTag - the parent LINK tagsimulator - the simulator to schedule GTU generationnl.tudelft.simulation.dsol.SimRuntimeException - in case of simulation problems building the car generatororg.opentrafficsim.core.network.NetworkException - when route generator cannot be instantiatedorg.opentrafficsim.core.gtu.GTUException - when construction of the Strategical Planner failedstatic org.opentrafficsim.road.gtu.lane.tactical.LaneBasedTacticalPlannerFactory<?> makeTacticalPlannerFactory(GeneratorTag generatorTag, nl.tudelft.simulation.jstats.streams.StreamInterface stream)
generatorTag - the tag to parsestream - random number streamCopyright © 2014–2018 Delft University of Technology. All rights reserved.