public interface Node extends Locatable, 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: 2016-12-11 14:07:37 +0100 (Sun, 11 Dec 2016) $, @version $Revision: 2838 $, by $Author: averbraeck $,
initial version Aug 19, 2014
| Modifier and Type | Method and Description |
|---|---|
void |
addLink(Link link)
Add a link to this Node.
|
org.djunits.value.vdouble.scalar.Direction |
getDirection() |
String |
getId() |
ImmutableSet<Link> |
getLinks() |
Network |
getNetwork()
Return the network in which this link is registered.
|
OTSPoint3D |
getPoint() |
org.djunits.value.vdouble.scalar.Direction |
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()
OTSPoint3D getPoint()
org.djunits.value.vdouble.scalar.Direction getDirection()
org.djunits.value.vdouble.scalar.Direction 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 thhe 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–2016 Delft University of Technology. All rights reserved.