public class GMLBuilding extends GMLShape
Constructor and Description |
---|
GMLBuilding(int id)
Construct a GMLBuilding.
|
GMLBuilding(int id,
java.util.List<GMLDirectedEdge> edges)
Construct a GMLBuilding.
|
GMLBuilding(int id,
java.util.List<GMLDirectedEdge> edges,
java.util.List<java.lang.Integer> neighbours)
Construct a GMLBuilding.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Get the building code of this building.
|
int |
getFloors()
Get the number of floors in this building.
|
int |
getImportance()
Get the importance of this building.
|
void |
setCode(int newCode)
Set the building code of this building.
|
void |
setFloors(int newFloors)
Set the number of floors in this building.
|
void |
setImportance(int newImportance)
Set the importance of this building.
|
java.lang.String |
toString() |
getBounds, getCentreX, getCentreY, getCentroid, getCoordinates, getEdges, getNeighbour, getNeighbour, getUnderlyingCoordinates, getUnderlyingNodes, hasNeighbour, hasNeighbour, removeEdge, reorderEdges, replaceEdge, setCoordinates, setEdges, setNeighbour, setNeighbour
public GMLBuilding(int id)
id
- The ID of the building.public GMLBuilding(int id, java.util.List<GMLDirectedEdge> edges)
id
- The ID of the building.edges
- The edges of the building.public GMLBuilding(int id, java.util.List<GMLDirectedEdge> edges, java.util.List<java.lang.Integer> neighbours)
id
- The ID of the building.edges
- The edges of the building.neighbours
- The neighbours of each edge.public java.lang.String toString()
toString
in class java.lang.Object
public void setFloors(int newFloors)
newFloors
- The new number of floors.public int getFloors()
public void setCode(int newCode)
newCode
- The new building code.public int getCode()
public void setImportance(int newImportance)
newImportance
- The new importance.public int getImportance()