public class Building
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<Beacon,RectCoordinates> |
beaconLocationMap
Maps a beacon to its location within the building.
|
protected DestinationTable |
destinationTable
Maps strings to a list of locations that represent the locations of the nodes
in the search space that have the given string tag.
|
protected java.util.List<FloorConnector> |
floorConnectors
Contains references to all FloorConnectors within the searchSpace.
|
protected double |
floorHeight
The approximate height of each floor assuming all floors have the same height.
|
protected double |
nodeDistance
The distance between each node and its adjacent neighbors in searchSpace.
|
protected RectCoordinates |
northPoint
Represents a vector that points to north within the building
|
protected java.util.List<java.util.List<java.util.List<GridNode>>> |
searchSpace
Holds the bode layout of the building used for pathfinding.
|
protected java.lang.String |
uuid
The uuid of the building to uniquely identify it from other buildings.
|
| Constructor and Description |
|---|
Building()
Constructor.
|
Building(java.lang.String uuid,
double nodeDistance,
double floorHeight,
java.util.List<java.util.List<java.util.List<GridNode>>> searchSpace,
java.util.List<FloorConnector> floorConnectors,
java.util.Map<Beacon,RectCoordinates> beaconLocationMap,
DestinationTable destinationTable,
RectCoordinates northPoint)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
beaconLocationMapToString()
Converts the beaconLocationMap field to string
|
java.lang.String |
destinationTableToString()
Converts the destinationTable field to string
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
floorConnectorsToString()
Converts the floorConnectors field to string
|
java.util.Map<Beacon,RectCoordinates> |
getBeaconLocationMap()
Getter for the beaconLocationMap field
|
DestinationTable |
getDestinationTable()
Getter for the destinationTable field
|
java.util.List<FloorConnector> |
getFloorConnectors()
Getter for the floorConnectors field
|
double |
getFloorHeight()
Getter for the floor height field
|
double |
getNodeDistance()
Getter for the node distance field
|
RectCoordinates |
getNorthPoint()
Getter for the northPoint ofield
|
java.util.List<java.util.List<java.util.List<GridNode>>> |
getSearchSpace()
Getter for the search space field
|
java.lang.String |
getUUID()
Getter for the uuid field
|
int |
hashCode() |
boolean |
searchSpaceContains(int x,
int y,
int z)
Checks if the search space of the building contains the following point
|
java.lang.String |
searchSpaceToString()
Converts the searchSpace field to string
|
void |
setBeaconLocationMap(java.util.Map<Beacon,RectCoordinates> beaconLocationMap)
Sets the beaconLocationMap field to the given value
|
void |
setDestinationMap(DestinationTable destinationTable)
Sets the destinationTable field to the given value
|
void |
setFloorConnectors(java.util.List<FloorConnector> floorConnectors)
Sets the floorConnectors field to the given value
|
void |
setFloorHeight(double floorHeight)
Sets the floorHeight field to the given value
|
void |
setNodeDistance(double nodeDistance)
Sets the nodeDistance field to the given value
|
void |
setNorthPoint(RectCoordinates northPoint)
Sets the northPoint field to the given value
|
void |
setSearchSpace(java.util.List<java.util.List<java.util.List<GridNode>>> searchSpace)
Sets the searchSpace field to the given value
|
void |
setUUID(java.lang.String uuid)
Sets the uuid field to the given value
|
java.lang.String |
toString() |
protected java.lang.String uuid
protected double nodeDistance
protected double floorHeight
protected java.util.List<java.util.List<java.util.List<GridNode>>> searchSpace
protected java.util.List<FloorConnector> floorConnectors
protected java.util.Map<Beacon,RectCoordinates> beaconLocationMap
protected DestinationTable destinationTable
protected RectCoordinates northPoint
public Building()
public Building(java.lang.String uuid,
double nodeDistance,
double floorHeight,
java.util.List<java.util.List<java.util.List<GridNode>>> searchSpace,
java.util.List<FloorConnector> floorConnectors,
java.util.Map<Beacon,RectCoordinates> beaconLocationMap,
DestinationTable destinationTable,
RectCoordinates northPoint)
uuid - String of unique building identifiernodeDistance - double of distance between neighboring nodesfloorHeight - double of floor height in buildingsearchSpace - 3D list holding the building's node layoutfloorConnectors - a list holding all of the building's floor connectorsbeaconLocationMap - map that maps beacons to locations in the buildingdestinationTable - table containing the destinationspublic java.lang.String getUUID()
public void setUUID(java.lang.String uuid)
uuid - new value of the uuidpublic double getNodeDistance()
public void setNodeDistance(double nodeDistance)
nodeDistance - new value of the nodeDistancepublic double getFloorHeight()
public void setFloorHeight(double floorHeight)
floorHeight - new value of the floorHeightpublic java.util.List<java.util.List<java.util.List<GridNode>>> getSearchSpace()
public void setSearchSpace(java.util.List<java.util.List<java.util.List<GridNode>>> searchSpace)
searchSpace - new value of the searchSpacepublic java.util.List<FloorConnector> getFloorConnectors()
public void setFloorConnectors(java.util.List<FloorConnector> floorConnectors)
floorConnectors - new value of the floorConnectorspublic java.util.Map<Beacon,RectCoordinates> getBeaconLocationMap()
public void setBeaconLocationMap(java.util.Map<Beacon,RectCoordinates> beaconLocationMap)
beaconLocationMap - new value of the beaconLocationMappublic DestinationTable getDestinationTable()
public void setDestinationMap(DestinationTable destinationTable)
destinationTable - new value of the destinationTablepublic RectCoordinates getNorthPoint()
public void setNorthPoint(RectCoordinates northPoint)
northPoint - new value of the northPointpublic boolean searchSpaceContains(int x,
int y,
int z)
x - Z valuey - Y valuez - Z valuepublic java.lang.String searchSpaceToString()
public java.lang.String floorConnectorsToString()
public java.lang.String beaconLocationMapToString()
public java.lang.String destinationTableToString()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object