public class Building
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE
String containing the Building type
|
Modifier and Type | Method and Description |
---|---|
void |
addFloor(Floor f)
This method adds a
Floor in the Building's Floor list. |
java.util.TreeMap<java.lang.Integer,Floor> |
getFloors()
Getter for the Floor array.
|
java.util.ArrayList<Floor> |
getFloorsList()
Getter for the Floor list.
|
Geometry |
getGeometry()
Getter for the Building
Geometry . |
java.lang.String |
getId()
Getter for the Floor ID.
|
java.lang.String |
getName()
Getter for the Building name.
|
void |
removeFloor(Floor f)
This method removes a
Floor in the Building's Floor list. |
public static final java.lang.String TYPE
public java.lang.String getId()
public java.lang.String getName()
public Geometry getGeometry()
Geometry
.Geometry
public void addFloor(Floor f)
Floor
in the Building's Floor list.f
- The Floor
to be addedpublic void removeFloor(Floor f)
Floor
in the Building's Floor list.f
- The Floor
to be removedpublic java.util.TreeMap<java.lang.Integer,Floor> getFloors()
public java.util.ArrayList<Floor> getFloorsList()