public interface Node extends LocatableInterface, Serializable
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2016-01-25 07:46:00 +0100 (Mon, 25 Jan 2016) $, @version $Revision: 1708 $, by $Author: averbraeck $,
initial version Aug 19, 2014
| Modifier and Type | Method and Description |
|---|---|
void |
addLink(Link link)
Add a link to this Node.
|
Bounds |
getBounds() |
org.djunits.value.vdouble.scalar.Angle.Abs |
getDirection() |
String |
getId() |
Set<Link> |
getLinks() |
DirectedPoint |
getLocation() |
OTSPoint3D |
getPoint() |
org.djunits.value.vdouble.scalar.Angle.Abs |
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.
|
String getId()
OTSPoint3D getPoint()
org.djunits.value.vdouble.scalar.Angle.Abs getDirection()
org.djunits.value.vdouble.scalar.Angle.Abs getSlope()
void addLink(Link link)
link - the link to add.void removeLink(Link link)
link - the link to remove.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 nodeDirectedPoint getLocation()
getLocation in interface LocatableInterfaceBounds getBounds()
getBounds in interface LocatableInterfaceCopyright © 2014–2016 Delft University of Technology. All rights reserved.