class GeneratorTag 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.
$LastChangedDate: 2017-04-29 13:29:16 +0200 (Sat, 29 Apr 2017) $, @version $Revision: 3573 $, 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,
VissimNetworkLaneParser parser,
LinkTag linkTag,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator)
Make a generator.
|
(package private) static void |
makeGenerators(LinkTag linkTag,
VissimNetworkLaneParser parser,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator)
Make the generators for this link, if available.
|
(package private) static org.opentrafficsim.road.gtu.lane.tactical.LaneBasedTacticalPlannerFactory<?> |
makeTacticalPlannerFactory(GeneratorTag generatorTag)
Factories are: IDM|MOBIL/IDM|DIRECTION/IDM|LMRS|TOLEDO.
|
(package private) static void |
parseGenerator(Node node,
VissimNetworkLaneParser parser,
LinkTag linkTag)
Parse the GENERATOR tag.
|
String |
toString() |
String laneName
String positionStr
org.opentrafficsim.core.gtu.GTUDirectionality gtuDirection
GTUTag gtuTag
GTUMixTag gtuMixTag
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
String tacticalPlannerName
org.opentrafficsim.core.gtu.animation.GTUColorer gtuColorer
static void parseGenerator(Node node, VissimNetworkLaneParser 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, VissimNetworkLaneParser parser, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) throws 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 generationSimRuntimeException - 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, VissimNetworkLaneParser parser, LinkTag linkTag, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) throws 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 generationSimRuntimeException - 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)
generatorTag - the tag to parseCopyright © 2014–2017 Delft University of Technology. All rights reserved.