NODEID - the NODEID type.public class OTSNode<NODEID> extends Object implements Node<NODEID>, 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: 2015-07-26 22:05:02 +0200 (Sun, 26 Jul 2015) $, @version $Revision: 1156 $, by $Author: averbraeck $,
initial version Aug 19, 2014
| Constructor and Description |
|---|
OTSNode(NODEID id,
OTSPoint3D point)
Construction of a Node.
|
OTSNode(NODEID id,
OTSPoint3D point,
DoubleScalar.Abs<AnglePlaneUnit> direction,
DoubleScalar.Abs<AngleSlopeUnit> slope)
Construction of a Node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLinkIn(Link<?,NODEID> linkIn)
Add an incoming link to this Node.
|
void |
addLinkOut(Link<?,NODEID> linkOut)
Add an outgoing link to this Node.
|
boolean |
equals(Object obj) |
javax.media.j3d.Bounds |
getBounds() |
DoubleScalar.Abs<AnglePlaneUnit> |
getDirection() |
NODEID |
getId() |
Set<Link<?,NODEID>> |
getLinksIn() |
Set<Link<?,NODEID>> |
getLinksOut() |
DirectedPoint |
getLocation() |
OTSPoint3D |
getPoint() |
DoubleScalar.Abs<AngleSlopeUnit> |
getSlope() |
int |
hashCode() |
String |
toString() |
public OTSNode(NODEID id, OTSPoint3D point, DoubleScalar.Abs<AnglePlaneUnit> direction, DoubleScalar.Abs<AngleSlopeUnit> slope)
id - the id of the Node.point - the point with usually an x and y setting.direction - the 3D direction. "East" is 0 degrees. "North" is 90 degrees (1/2 pi radians).slope - the slope as an angle.public OTSNode(NODEID id, OTSPoint3D point)
id - the id of the Node.point - the point with usually an x and y setting.public final OTSPoint3D getPoint()
public final void addLinkOut(Link<?,NODEID> linkOut)
addLinkOut in interface Node<NODEID>linkOut - the link to add.public final Set<Link<?,NODEID>> getLinksIn()
getLinksIn in interface Node<NODEID>public final Set<Link<?,NODEID>> getLinksOut()
getLinksOut in interface Node<NODEID>public final DoubleScalar.Abs<AnglePlaneUnit> getDirection()
getDirection in interface Node<NODEID>public final DoubleScalar.Abs<AngleSlopeUnit> getSlope()
public final DirectedPoint getLocation() throws RemoteException
getLocation in interface LocatableInterfaceRemoteExceptionpublic final javax.media.j3d.Bounds getBounds()
throws RemoteException
getBounds in interface LocatableInterfaceRemoteExceptionCopyright © 2014–2015 Delft University of Technology. All rights reserved.