Class OTSRoadNode

  • All Implemented Interfaces:
    java.io.Serializable, Locatable, Identifiable, Drawable, Node

    public class OTSRoadNode
    extends OTSNode
    The Node is a point with an id and a direction. It is used in the network to connect Links.

    Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
    BSD-style license. See OpenTrafficSim License.

    $LastChangedDate: 2019-04-25 17:00:14 +0200 (Thu, 25 Apr 2019) $, @version $Revision: 5424 $, by $Author: pknoppers $, initial version May 5, 2019

    Author:
    Alexander Verbraeck, Peter Knoppers, Guus Tamminga
    See Also:
    Serialized Form
    • Constructor Detail

      • OTSRoadNode

        public OTSRoadNode​(Network network,
                           java.lang.String id,
                           OTSPoint3D point,
                           Direction direction)
                    throws NetworkException
        Construct a new OTSRoadNode.
        Parameters:
        network - Network; the network
        id - String; name of the node
        point - OTSPoint3D location of the node
        direction - Direction; driving direction at the node
        Throws:
        NetworkException - if node already exists in the network, or if name of the node is not unique.