class JunctionTag 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.
$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) Map<String,ConnectionTag> |
connectionTags
a map of connections in the junction
|
(package private) Map<String,ControllerTag> |
controllerTags
a map of controller in the junction
|
(package private) String |
id
unique ID within database.
|
(package private) String |
name
name of the junction.
|
| Constructor and Description |
|---|
JunctionTag() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createController(JunctionTag juncTag,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
OpenDriveNetworkLaneParser openDriveNetworkLaneParser) |
(package private) static void |
parseJunction(Node node,
OpenDriveNetworkLaneParser parser)
Parse the attributes of the junction tag.
|
String name
String id
Map<String,ConnectionTag> connectionTags
Map<String,ControllerTag> controllerTags
static void parseJunction(Node node, OpenDriveNetworkLaneParser parser) throws SAXException, org.opentrafficsim.core.network.NetworkException
node - the junction node to parseparser - the parser with the lists of informationSAXException - when parsing of the tag failsorg.opentrafficsim.core.network.NetworkException - when parsing of the tag failspublic static void createController(JunctionTag juncTag, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator, OpenDriveNetworkLaneParser openDriveNetworkLaneParser) throws org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.network.NetworkException, NamingException
juncTag - junction tagsimulator - the simulatoropenDriveNetworkLaneParser - the parserNamingException - when an animation registration failsorg.opentrafficsim.core.network.NetworkException - when the network is inconsistentorg.opentrafficsim.core.gtu.GTUException - when the traffic light (a GTU at the moment) has an errorCopyright © 2014–2016 Delft University of Technology. All rights reserved.