public interface Node extends Locatable, Serializable, Identifiable
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2018-09-19 13:55:45 +0200 (Wed, 19 Sep 2018) $, @version $Revision: 4006 $, by $Author: averbraeck $,
initial version Aug 19, 2014
| Modifier and Type | Method and Description |
|---|---|
void |
addLink(Link link)
Add a link to this Node.
|
Direction |
getDirection() |
String |
getId() |
ImmutableSet<Link> |
getLinks() |
Network |
getNetwork()
Return the network in which this link is registered.
|
OTSPoint3D |
getPoint() |
Angle |
getSlope() |
boolean |
isDirectionallyConnectedTo(GTUType gtuType,
Node toNode)
Check if the current node is linked to the given Node in the specified direction for the given GTUType.
|
Set<Link> |
nextLinks(GTUType gtuType,
Link prevLink)
Determine the links connecting from the previous link via this Node for the given GTU type.
|
void |
removeLink(Link link)
Remove a link from this Node.
|
getBounds, getLocationNetwork getNetwork()
String getId()
getId in interface IdentifiableOTSPoint3D getPoint()
Direction getDirection()
Angle getSlope()
void addLink(Link link)
link - the link to add.void removeLink(Link link)
link - the link to remove.ImmutableSet<Link> getLinks()
Set<Link> nextLinks(GTUType gtuType, Link prevLink) throws NetworkException
gtuType - the GTU type to determine the next links forprevLink - the incoming link to the NodeNetworkException - if the incoming link is not connected to this node for the given GTU typeboolean isDirectionallyConnectedTo(GTUType gtuType, Node toNode)
gtuType - the GTU type to check the connection for.toNode - the to nodeCopyright © 2014–2018 Delft University of Technology. All rights reserved.