class RoadLayoutTag extends Object implements Serializable
<xsd:element name="ROADLAYOUT">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="SPEEDLIMIT" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:attribute name="GTUTYPE" type="xsd:string" use="required" />
<xsd:attribute name="LEGALSPEEDLIMIT" type="SPEEDTYPE" use="optional" />
</xsd:complexType>
</xsd:element>
<xsd:choice minOccurs="1" maxOccurs="unbounded">
<xsd:element name="LANE" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence minOccurs="0" maxOccurs="unbounded">
<xsd:element name="SPEEDLIMIT" minOccurs="1" maxOccurs="unbounded">
<xsd:complexType>
<xsd:attribute name="GTUTYPE" type="xsd:string" use="required" />
<xsd:attribute name="LEGALSPEEDLIMIT" type="SPEEDTYPE" use="optional" />
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="NAME" type="xsd:string" use="required" />
<xsd:attribute name="LANETYPE" type="xsd:string" use="optional" />
<xsd:attribute name="OFFSET" type="SIGNEDLENGTHTYPE" use="required" />
<xsd:attribute name="WIDTH" type="LENGTHTYPE" use="optional" />
<xsd:attribute name="DIRECTION" type="DIRECTIONTYPE" use="required" />
<xsd:attribute name="COLOR" type="COLORTYPE" use="optional" />
<xsd:attribute name="OVERTAKING" type="OVERTAKINGTYPE" use="optional" />
</xsd:complexType>
</xsd:element>
<xsd:element name="NOTRAFFICLANE" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:attribute name="NAME" type="xsd:string" use="optional" />
<xsd:attribute name="OFFSET" type="SIGNEDLENGTHTYPE" use="required" />
<xsd:attribute name="WIDTH" type="LENGTHTYPE" use="optional" />
<xsd:attribute name="COLOR" type="COLORTYPE" use="optional" />
</xsd:complexType>
</xsd:element>
<xsd:element name="SHOULDER" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:attribute name="NAME" type="xsd:string" use="optional" />
<xsd:attribute name="OFFSET" type="SIGNEDLENGTHTYPE" use="required" />
<xsd:attribute name="WIDTH" type="LENGTHTYPE" use="optional" />
<xsd:attribute name="COLOR" type="COLORTYPE" use="optional" />
</xsd:complexType>
</xsd:element>
<xsd:element name="STRIPE" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:attribute name="NAME" type="xsd:string" use="optional" />
<xsd:attribute name="TYPE" type="STRIPETYPE" use="required" />
<xsd:attribute name="OFFSET" type="SIGNEDLENGTHTYPE" use="required" />
<xsd:attribute name="WIDTH" type="LENGTHTYPE" use="optional" />
<xsd:attribute name="COLOR" type="COLORTYPE" use="optional" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:sequence>
<xsd:attribute name="NAME" type="xsd:string" use="required" />
<xsd:attribute name="ROADTYPE" type="xsd:string" use="required" />
<xsd:attribute name="WIDTH" type="LENGTHTYPE" use="optional" />
<xsd:attribute name="LANEKEEPING" type="LANEKEEPINGTYPE" use="optional" />
<xsd:attribute name="OVERTAKING" type="OVERTAKINGTYPE" use="optional" />
<xsd:attribute ref="xml:base" />
</xsd:complexType>
</xsd:element>
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) Map<String,CrossSectionElementTag> |
cseTags
CrossSectionElementTags, order is important, so a LinkedHashMap.
|
(package private) org.djunits.value.vdouble.scalar.Length |
defaultLaneWidth
Default lane width.
|
(package private) org.opentrafficsim.road.network.lane.changing.LaneKeepingPolicy |
laneKeepingPolicy
The lane keeping policy, i.e., keep left, keep right or keep lane.
|
(package private) Map<org.opentrafficsim.core.gtu.GTUType,org.djunits.value.vdouble.scalar.Speed> |
legalSpeedLimits
Speed limits.
|
(package private) String |
name
Name.
|
(package private) org.opentrafficsim.road.network.lane.changing.OvertakingConditions |
overtakingConditions
The overtaking conditions for the lanes of this road type.
|
(package private) RoadTypeTag |
roadTypeTag
Road Type.
|
| Constructor and Description |
|---|
RoadLayoutTag() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static RoadLayoutTag |
parseRoadType(Node node,
VissimNetworkLaneParser parser)
Parse the ROADLAYOUT tags.
|
(package private) static void |
parseRoadTypes(NodeList nodeList,
VissimNetworkLaneParser parser)
Parse the ROADLAYOUT tags.
|
String |
toString() |
String name
RoadTypeTag roadTypeTag
Map<org.opentrafficsim.core.gtu.GTUType,org.djunits.value.vdouble.scalar.Speed> legalSpeedLimits
org.opentrafficsim.road.network.lane.changing.LaneKeepingPolicy laneKeepingPolicy
org.opentrafficsim.road.network.lane.changing.OvertakingConditions overtakingConditions
org.djunits.value.vdouble.scalar.Length defaultLaneWidth
Map<String,CrossSectionElementTag> cseTags
static void parseRoadTypes(NodeList nodeList, VissimNetworkLaneParser parser) throws SAXException, org.opentrafficsim.core.network.NetworkException
nodeList - nodeList the top-level nodes of the XML-fileparser - the parser with the lists of informationSAXException - when parsing of the tag failsorg.opentrafficsim.core.network.NetworkException - when parsing of the tag failsstatic RoadLayoutTag parseRoadType(Node node, VissimNetworkLaneParser parser) throws SAXException, org.opentrafficsim.core.network.NetworkException
node - the ROADLAYOUT nodes of the XML-fileparser - the parser with the lists of informationSAXException - when parsing of the tag failsorg.opentrafficsim.core.network.NetworkException - when parsing of the tag failsCopyright © 2014–2017 Delft University of Technology. All rights reserved.