public class Node extends ManagedObject
| Constructor and Description |
|---|
Node(long id,
double x,
double y)
Construct a new node.
|
Node(long id,
Point2D coordinates)
Construct a new node.
|
| Modifier and Type | Method and Description |
|---|---|
Point2D |
getCoordinates()
Get the coordinates of this node.
|
double |
getX()
Get the X coordinate.
|
double |
getY()
Get the Y coordinate.
|
java.lang.String |
toString() |
equals, getID, hashCodepublic Node(long id,
double x,
double y)
id - The ID of this node.x - The x coordinate of this node.y - The y coordinate of this node.public Node(long id,
Point2D coordinates)
id - The ID of this node.coordinates - The coordinates of this node.public Point2D getCoordinates()
public double getX()
public double getY()
public java.lang.String toString()
toString in class java.lang.Object