public class GMLRoad extends GMLShape
Constructor and Description |
---|
GMLRoad(int id)
Construct a GMLRoad.
|
GMLRoad(int id,
java.util.List<GMLDirectedEdge> edges)
Construct a GMLRoad.
|
GMLRoad(int id,
java.util.List<GMLDirectedEdge> edges,
java.util.List<java.lang.Integer> neighbours)
Construct a GMLRoad.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
getBounds, getCentreX, getCentreY, getCentroid, getCoordinates, getEdges, getNeighbour, getNeighbour, getUnderlyingCoordinates, getUnderlyingNodes, hasNeighbour, hasNeighbour, removeEdge, reorderEdges, replaceEdge, setCoordinates, setEdges, setNeighbour, setNeighbour
public GMLRoad(int id)
id
- The ID of the road.public GMLRoad(int id, java.util.List<GMLDirectedEdge> edges)
id
- The ID of the road.edges
- The edges of the road.public GMLRoad(int id, java.util.List<GMLDirectedEdge> edges, java.util.List<java.lang.Integer> neighbours)
id
- The ID of the road.edges
- The edges of the road.neighbours
- The neighbours of each edge.