public class GMLEdge extends GMLObject
Constructor and Description |
---|
GMLEdge(int id,
GMLNode start,
GMLNode end,
boolean passable)
Construct a new GMLEdge.
|
Modifier and Type | Method and Description |
---|---|
GMLNode |
getEnd()
Get the end node.
|
java.util.List<GMLCoordinates> |
getPoints()
Get the points along the edge.
|
GMLNode |
getStart()
Get the start node.
|
boolean |
isPassable()
Find out if this edge is passable.
|
void |
setEnd(GMLNode e)
Set the end node.
|
void |
setPassable(boolean b)
Set the passable flag on this edge.
|
void |
setPoints(java.util.List<GMLCoordinates> newPoints)
Set the points along the edge.
|
void |
setStart(GMLNode s)
Set the start node.
|
java.lang.String |
toString() |
public java.util.List<GMLCoordinates> getPoints()
public void setPoints(java.util.List<GMLCoordinates> newPoints)
newPoints
- The new coordinates along the edge.public GMLNode getStart()
public void setStart(GMLNode s)
s
- The new start node.public GMLNode getEnd()
public void setEnd(GMLNode e)
e
- The new end node.public boolean isPassable()
public void setPassable(boolean b)
b
- The new passable flag.public java.lang.String toString()
toString
in class java.lang.Object