class NodeTag extends Object implements Serializable
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: 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.djunits.value.vdouble.scalar.Direction |
angle
Absolute angle of the node.
|
(package private) org.opentrafficsim.core.geometry.OTSPoint3D |
coordinate
Coordinate (null at first, can be calculated later when connected to a link.
|
(package private) String |
name
Name.
|
(package private) org.opentrafficsim.core.network.OTSNode |
node
The calculated Node, either through a coordinate or after calculation.
|
(package private) org.djunits.value.vdouble.scalar.Angle |
slope
TODO slope as an angle.
|
| Constructor and Description |
|---|
NodeTag() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static org.opentrafficsim.core.network.OTSNode |
makeOTSNode(NodeTag nodeTag,
XmlNetworkLaneParser parser) |
(package private) static List<NodeTag> |
parseNodeList(String nodeNames,
XmlNetworkLaneParser parser)
Parse a list of Nodes, e.g.
|
(package private) static void |
parseNodes(NodeList nodeList,
XmlNetworkLaneParser parser) |
String |
toString() |
String name
org.opentrafficsim.core.geometry.OTSPoint3D coordinate
org.djunits.value.vdouble.scalar.Direction angle
org.djunits.value.vdouble.scalar.Angle slope
org.opentrafficsim.core.network.OTSNode node
static void parseNodes(NodeList nodeList, XmlNetworkLaneParser 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 GTU tag failsorg.opentrafficsim.core.network.NetworkException - when parsing of GTU tag failsstatic List<NodeTag> parseNodeList(String nodeNames, XmlNetworkLaneParser parser) throws SAXException, org.opentrafficsim.core.network.NetworkException
nodeNames - the space separated String with the node namesparser - the parser with the lists of informationSAXException - when parsing of the tag failsorg.opentrafficsim.core.network.NetworkException - when parsing of the tag failsstatic org.opentrafficsim.core.network.OTSNode makeOTSNode(NodeTag nodeTag, XmlNetworkLaneParser parser) throws org.opentrafficsim.core.network.NetworkException, NamingException
nodeTag - the tag with the info for the node.parser - the parser with the lists of informationorg.opentrafficsim.core.network.NetworkException - when point cannot be instantiatedNamingException - when animation context cannot be found.Copyright © 2014–2017 Delft University of Technology. All rights reserved.