class NodeTag 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: 2017-01-30 18:25:56 +0100 (Mon, 30 Jan 2017) $, @version $Revision: 3409 $, 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.Direction |
slope
TODO slope as an angle.
|
| Constructor and Description |
|---|
NodeTag() |
| Modifier and Type | Method and Description |
|---|---|
static NodeTag |
createNewNodeAtLinkPosition(LinkTag linkTag,
VissimNetworkLaneParser parser,
Double position) |
(package private) static org.opentrafficsim.core.network.OTSNode |
makeOTSNode(NodeTag nodeTag,
VissimNetworkLaneParser parser) |
(package private) static List<NodeTag> |
parseNodeList(String nodeNames,
VissimNetworkLaneParser parser)
Parse a list of Nodes, e.g.
|
(package private) static void |
parseNodes(VissimNetworkLaneParser parser,
String fromNode,
String toNode,
org.opentrafficsim.core.geometry.OTSPoint3D[] points) |
static void |
removeDuplicateNodes(VissimNetworkLaneParser parser) |
static void |
removeRedundantNodeTags(VissimNetworkLaneParser parser) |
String |
toString() |
String name
org.opentrafficsim.core.geometry.OTSPoint3D coordinate
org.djunits.value.vdouble.scalar.Direction angle
org.djunits.value.vdouble.scalar.Direction slope
org.opentrafficsim.core.network.OTSNode node
static void parseNodes(VissimNetworkLaneParser parser, String fromNode, String toNode, org.opentrafficsim.core.geometry.OTSPoint3D[] points) throws SAXException, org.opentrafficsim.core.network.NetworkException
parser - VissimNetworkLaneParser; VissimParserfromNode - String; coming from NodetoNode - String; going to Nodepoints - OTSPoint3D[]; geometrySAXExceptionorg.opentrafficsim.core.network.NetworkExceptionstatic List<NodeTag> parseNodeList(String nodeNames, VissimNetworkLaneParser 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, VissimNetworkLaneParser 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.public static void removeDuplicateNodes(VissimNetworkLaneParser parser)
parser - VissimNetworkLaneParser; the parser with the lists of informationpublic static void removeRedundantNodeTags(VissimNetworkLaneParser parser)
parser - VissimNetworkLaneParser; the parser with the lists of informationpublic static NodeTag createNewNodeAtLinkPosition(LinkTag linkTag, VissimNetworkLaneParser parser, Double position) throws org.opentrafficsim.core.geometry.OTSGeometryException, org.opentrafficsim.core.network.NetworkException
linkTag - LinkTag; link with infoparser - VissimNetworkLaneParser; the parser with the lists of informationposition - Double; position at the link where a node is createdorg.opentrafficsim.core.geometry.OTSGeometryExceptionorg.opentrafficsim.core.network.NetworkExceptionCopyright © 2014–2017 Delft University of Technology. All rights reserved.