package maps.gml;
import java.util.List;
/**
A building in GML space.
*/
public class GMLBuilding extends GMLShape {
private int floors;
private int code;
private int importance;
/**
Construct a GMLBuilding.
@param id The ID of the building.
*/
public GMLBuilding(int id) {
super(id);
}
/**
Construct a GMLBuilding.
@param id The ID of the building.
@param edges The edges of the building.
*/
public GMLBuilding(int id, List<GMLDirectedEdge> edges) {
super(id, edges);
}
/**
Construct a GMLBuilding.
@param id The ID of the building.
@param edges The edges of the building.
@param neighbours The neighbours of each edge.
*/
public GMLBuilding(int id, List<GMLDirectedEdge> edges, List<Integer> neighbours) {
super(id, edges, neighbours);
}
@Override
public String toString() {
return "GMLBuilding " + getID();
}
/**
Set the number of floors in this building.
@param newFloors The new number of floors.
*/
public void setFloors(int newFloors) {
floors = newFloors;
}
/**
Get the number of floors in this building.
@return The number of floors.
*/
public int getFloors() {
return floors;
}
/**
Set the building code of this building.
@param newCode The new building code.
*/
public void setCode(int newCode) {
code = newCode;
}
/**
Get the building code of this building.
@return The building code.
*/
public int getCode() {
return code;
}
/**
Set the importance of this building.
@param newImportance The new importance.
*/
public void setImportance(int newImportance) {
importance = newImportance;
}
/**
Get the importance of this building.
@return The importance.
*/
public int getImportance() {
return importance;
}
}