class CrossSectionElementTag extends Object implements Serializable
<xsd:element name="ROADLAYOUT">
<xsd:complexType>
<xsd:sequence>
...
<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:complexType>
</xsd:element>
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 | Class and Description |
|---|---|
(package private) static class |
CrossSectionElementTag.ElementType
Element types.
|
(package private) static class |
CrossSectionElementTag.StripeType
Stripe types.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) Color |
color
Animation color.
|
(package private) org.opentrafficsim.core.network.LongitudinalDirectionality |
direction
Direction.
|
(package private) CrossSectionElementTag.ElementType |
elementType
Type.
|
(package private) LaneTypeTag |
laneTypeTag
Lane type in case elementType is a 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.djunits.value.vdouble.scalar.Length |
offset
Offset.
|
(package private) org.opentrafficsim.road.network.lane.changing.OvertakingConditions |
overtakingConditions
Overtaking conditions.
|
(package private) CrossSectionElementTag.StripeType |
stripeType
Stripe type.
|
(package private) org.djunits.value.vdouble.scalar.Length |
width
Lane width.
|
| Constructor and Description |
|---|
CrossSectionElementTag() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static CrossSectionElementTag |
parseLane(Node node,
XmlNetworkLaneParser parser,
RoadLayoutTag roadLayoutTag)
Parse the ROADLAYOUT.LANE tag.
|
(package private) static CrossSectionElementTag |
parseNoTrafficLane(Node node,
XmlNetworkLaneParser parser,
RoadLayoutTag roadLayoutTag)
Parse the ROADLAYOUT.NOTRAFFICLANE tag.
|
(package private) static CrossSectionElementTag |
parseShoulder(Node node,
XmlNetworkLaneParser parser,
RoadLayoutTag roadLayoutTag)
Parse the ROADLAYOUT.SHOULDER tag.
|
(package private) static CrossSectionElementTag |
parseStripe(Node node,
XmlNetworkLaneParser parser,
RoadLayoutTag roadLayoutTag)
Parse the ROADLAYOUT.STRIPE tag.
|
String |
toString() |
CrossSectionElementTag.ElementType elementType
String name
LaneTypeTag laneTypeTag
CrossSectionElementTag.StripeType stripeType
org.djunits.value.vdouble.scalar.Length offset
Map<org.opentrafficsim.core.gtu.GTUType,org.djunits.value.vdouble.scalar.Speed> legalSpeedLimits
org.djunits.value.vdouble.scalar.Length width
org.opentrafficsim.core.network.LongitudinalDirectionality direction
Color color
org.opentrafficsim.road.network.lane.changing.OvertakingConditions overtakingConditions
static CrossSectionElementTag parseLane(Node node, XmlNetworkLaneParser parser, RoadLayoutTag roadLayoutTag) throws SAXException, org.opentrafficsim.core.network.NetworkException
node - the node of the XML-fileparser - the parser with the lists of informationroadLayoutTag - the tag with the enclosing informationSAXException - when parsing of the tag failsorg.opentrafficsim.core.network.NetworkException - when parsing of the tag failsstatic CrossSectionElementTag parseNoTrafficLane(Node node, XmlNetworkLaneParser parser, RoadLayoutTag roadLayoutTag) throws SAXException, org.opentrafficsim.core.network.NetworkException
node - the node of the XML-fileparser - the parser with the lists of informationroadLayoutTag - the tag with the enclosing informationSAXException - when parsing of the tag failsorg.opentrafficsim.core.network.NetworkException - when parsing of the tag failsstatic CrossSectionElementTag parseShoulder(Node node, XmlNetworkLaneParser parser, RoadLayoutTag roadLayoutTag) throws SAXException, org.opentrafficsim.core.network.NetworkException
node - the node of the XML-fileparser - the parser with the lists of informationroadLayoutTag - the tag with the enclosing informationSAXException - when parsing of the tag failsorg.opentrafficsim.core.network.NetworkException - when parsing of the tag failsstatic CrossSectionElementTag parseStripe(Node node, XmlNetworkLaneParser parser, RoadLayoutTag roadLayoutTag) throws SAXException, org.opentrafficsim.core.network.NetworkException
node - the node of the XML-fileparser - the parser with the lists of informationroadLayoutTag - the tag with the enclosing informationSAXException - when parsing of the tag failsorg.opentrafficsim.core.network.NetworkException - when parsing of the tag failsCopyright © 2014–2016 Delft University of Technology. All rights reserved.