class RoadTag extends Object implements Serializable
Copyright (c) 2013-2016 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) LateralProfileTag |
lateralProfileTag
LateralProfile Tag containing a list of superElevations.
|
(package private) org.djunits.value.vdouble.scalar.Length |
length
Total length of the reference line in the xy-plane, as indicated in the XML document.
|
(package private) org.opentrafficsim.road.network.lane.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) ObjectsTag |
objectsTag
Objects Tag containing a list of objects.
|
(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<org.opentrafficsim.road.network.lane.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 void |
buildSubLinks(RoadTag roadTag,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
OpenDriveNetworkLaneParser openDriveNetworkLaneParser) |
(package private) static void |
generateRegularRoads(RoadTag roadTag,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
OpenDriveNetworkLaneParser openDriveNetworkLaneParser) |
static void |
generateTrafficLightsbySignal(RoadTag roadTag,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
OpenDriveNetworkLaneParser openDriveNetworkLaneParser) |
static void |
generateTrafficLightsbySignalReference(RoadTag roadTag,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
OpenDriveNetworkLaneParser openDriveNetworkLaneParser) |
(package private) static RoadTag |
parseRoad(Node node,
OpenDriveNetworkLaneParser parser)
Parse the attributes of the road tag.
|
String |
toString() |
String id
String name
org.djunits.value.vdouble.scalar.Length length
String junctionId
LinkTag linkTag
PlanViewTag planViewTag
ElevationProfileTag elevationProfileTag
LateralProfileTag lateralProfileTag
LanesTag lanesTag
SignalsTag signalsTag
ObjectsTag objectsTag
TypeTag typeTag
org.opentrafficsim.road.network.lane.CrossSectionLink link
org.opentrafficsim.core.geometry.OTSLine3D designLine
org.opentrafficsim.core.network.OTSNode startNode
org.opentrafficsim.core.network.OTSNode endNode
List<org.opentrafficsim.road.network.lane.CrossSectionLink> subLinks
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 buildSubLinks(RoadTag roadTag, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator, OpenDriveNetworkLaneParser openDriveNetworkLaneParser) throws org.opentrafficsim.core.geometry.OTSGeometryException, org.opentrafficsim.core.network.NetworkException, NamingException
roadTag - the road tagsimulator - the simulatoropenDriveNetworkLaneParser - the parserorg.opentrafficsim.core.network.NetworkException - on network errororg.opentrafficsim.core.geometry.OTSGeometryException - on geometry or position errorNamingException - on error registering the animationstatic void generateRegularRoads(RoadTag roadTag, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator, OpenDriveNetworkLaneParser openDriveNetworkLaneParser) throws org.opentrafficsim.core.geometry.OTSGeometryException, org.opentrafficsim.core.network.NetworkException, NamingException, RemoteException
roadTag - the road tagsimulator - the simulatoropenDriveNetworkLaneParser - the parserorg.opentrafficsim.core.network.NetworkException - on network errororg.opentrafficsim.core.geometry.OTSGeometryException - on geometry or position errorNamingException - on error registering the animationRemoteException - on error reaching the animation or simulatorpublic static void buildLink(RoadTag roadTag, OpenDriveNetworkLaneParser openDriveNetworkLaneParser) throws org.opentrafficsim.core.network.NetworkException
roadTag - the road tagopenDriveNetworkLaneParser - the parserorg.opentrafficsim.core.network.NetworkExceptionpublic static void generateTrafficLightsbySignal(RoadTag roadTag, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator, OpenDriveNetworkLaneParser openDriveNetworkLaneParser) throws org.opentrafficsim.core.network.NetworkException
roadTag - the road tagsimulator - the simulatoropenDriveNetworkLaneParser - the parserorg.opentrafficsim.core.network.NetworkException - on network errorpublic static void generateTrafficLightsbySignalReference(RoadTag roadTag, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator, OpenDriveNetworkLaneParser openDriveNetworkLaneParser) throws org.opentrafficsim.core.network.NetworkException
roadTag - the road tagsimulator - the simulatoropenDriveNetworkLaneParser - the parserorg.opentrafficsim.core.network.NetworkException - on network errorCopyright © 2014–2016 Delft University of Technology. All rights reserved.