public class OTSNode extends Object implements Node, 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-08-30 00:16:51 +0200 (Sun, 30 Aug 2015) $, @version $Revision: 1329 $, by $Author: averbraeck $,
initial version Aug 19, 2014
| Constructor and Description |
|---|
OTSNode(String id,
OTSPoint3D point)
Construction of a Node.
|
OTSNode(String id,
OTSPoint3D point,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.AnglePlaneUnit> direction,
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.AngleSlopeUnit> slope)
Construction of a Node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLinkIn(Link linkIn)
Add an incoming link to this Node.
|
void |
addLinkOut(Link linkOut)
Add an outgoing link to this Node.
|
boolean |
equals(Object obj) |
Bounds |
getBounds() |
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.AnglePlaneUnit> |
getDirection() |
String |
getId() |
Set<Link> |
getLinksIn() |
Set<Link> |
getLinksOut() |
DirectedPoint |
getLocation() |
OTSPoint3D |
getPoint() |
org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.AngleSlopeUnit> |
getSlope() |
int |
hashCode() |
String |
toString() |
public OTSNode(String id, OTSPoint3D point, org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.AnglePlaneUnit> direction, org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.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(String 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 addLinkIn(Link linkIn)
public final void addLinkOut(Link linkOut)
addLinkOut in interface NodelinkOut - the link to add.public final Set<Link> getLinksIn()
getLinksIn in interface Nodepublic final Set<Link> getLinksOut()
getLinksOut in interface Nodepublic final org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.AnglePlaneUnit> getDirection()
getDirection in interface Nodepublic final org.djunits.value.vdouble.scalar.DoubleScalar.Abs<org.djunits.unit.AngleSlopeUnit> getSlope()
public final DirectedPoint getLocation() throws RemoteException
getLocation in interface LocatableInterfaceRemoteExceptionpublic final Bounds getBounds() throws RemoteException
getBounds in interface LocatableInterfaceRemoteExceptionCopyright © 2014–2015 Delft University of Technology. All rights reserved.