class RoadTag 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) org.opentrafficsim.core.geometry.OTSLine3D |
designLine
the calculated designLine.
|
(package private) ElevationProfileTag |
elevationProfileTag
ElevationProfile Tag containing a list of elevations.
|
(package private) org.opentrafficsim.core.network.OTSNode |
endNode
the calculated endNode.
|
(package private) String |
id
unique ID within database (preferably an integer number, uint32_t).
|
(package private) String |
junctionId
ID of the junction to which the road belongs as a connecting road (= -1 for none).
|
(package private) LanesTag |
lanesTag
lanes Tag containing a list of laneSections.
|
(package private) static LaneType |
LANETYPE_ALL
the lanetype that allows all traffic.
|
(package private) LateralProfileTag |
lateralProfileTag
lateralProfile Tag containing a list of superElevations.
|
(package private) org.djunits.value.vdouble.scalar.Length.Rel |
length
total length of the reference line in the xy-plane, as indicated in the XML document.
|
(package private) CrossSectionLink |
link
the calculated Link.
|
(package private) LinkTag |
linkTag
Link Tag containing predecessor, successor and neighbor info.
|
(package private) String |
name
name of the road.
|
(package private) PlanViewTag |
planViewTag
PlanView Tag containing a list of geometries.
|
(package private) SignalsTag |
signalsTag
signals Tag containing a list of signals.
|
(package private) org.opentrafficsim.core.network.OTSNode |
startNode
the calculated startNode.
|
(package private) List<CrossSectionLink> |
subLinks
the calculated Link.
|
(package private) TypeTag |
typeTag
Type Tags containing road type and maximum speed information for stretches of road.
|
Constructor and Description |
---|
RoadTag() |
Modifier and Type | Method and Description |
---|---|
static void |
buildLink(RoadTag roadTag,
OpenDriveNetworkLaneParser openDriveNetworkLaneParser) |
(package private) static RoadTag |
parseRoad(Node node,
OpenDriveNetworkLaneParser parser)
Parse the attributes of the road tag.
|
(package private) static void |
showLanes(RoadTag roadTag,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
OpenDriveNetworkLaneParser openDriveNetworkLaneParser) |
String id
String name
org.djunits.value.vdouble.scalar.Length.Rel length
String junctionId
LinkTag linkTag
PlanViewTag planViewTag
ElevationProfileTag elevationProfileTag
LateralProfileTag lateralProfileTag
LanesTag lanesTag
SignalsTag signalsTag
TypeTag typeTag
CrossSectionLink link
org.opentrafficsim.core.geometry.OTSLine3D designLine
org.opentrafficsim.core.network.OTSNode startNode
org.opentrafficsim.core.network.OTSNode endNode
List<CrossSectionLink> subLinks
static LaneType LANETYPE_ALL
static RoadTag parseRoad(Node node, OpenDriveNetworkLaneParser parser) throws SAXException, org.opentrafficsim.core.network.NetworkException
node
- the top-level road nodeparser
- the parser with the lists of informationSAXException
- when parsing of the tag failsorg.opentrafficsim.core.network.NetworkException
- when parsing of the tag failsstatic void showLanes(RoadTag roadTag, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator, OpenDriveNetworkLaneParser openDriveNetworkLaneParser) throws org.opentrafficsim.core.geometry.OTSGeometryException, org.opentrafficsim.core.network.NetworkException, NamingException
roadTag
- simulator
- openDriveNetworkLaneParser
- org.opentrafficsim.core.network.NetworkException
org.opentrafficsim.core.geometry.OTSGeometryException
NamingException
public static void buildLink(RoadTag roadTag, OpenDriveNetworkLaneParser openDriveNetworkLaneParser)
roadTag
- openDriveNetworkLaneParser
- Copyright © 2014–2015 Delft University of Technology. All rights reserved.