Class NeonBuilding
- java.lang.Object
-
- com.trx.neon.api.neonEnvironment.model.NeonBuilding
-
- All Implemented Interfaces:
android.os.Parcelable
public class NeonBuilding extends java.lang.Object implements android.os.Parcelable
A Neon Building is identified with a UUID and contains a collection of building floors, each with an outline and potentially a floor plan image
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<NeonBuilding>
CREATOR
-
Constructor Summary
Constructors Constructor Description NeonBuilding(java.util.UUID id, java.lang.String name, java.util.ArrayList<NeonBuildingFloor> floors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
NeonBuildingFloor
getFloor(int floorNumber)
Retrieve a specific floor by floor numberjava.util.ArrayList<NeonBuildingFloor>
getFloors()
Get a collection of all floors in the building Use this to iterate through all floors in the buildingjava.util.UUID
getID()
Get unique identifier for this buildingjava.lang.String
getName()
Get friendly name for this building.void
writeToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<NeonBuilding> CREATOR
-
-
Constructor Detail
-
NeonBuilding
public NeonBuilding(java.util.UUID id, java.lang.String name, java.util.ArrayList<NeonBuildingFloor> floors)
-
-
Method Detail
-
getID
public java.util.UUID getID()
Get unique identifier for this building
-
getName
public java.lang.String getName()
Get friendly name for this building. Does not have to be unique or non-empty If null, returns part of the UUID instead
-
getFloors
public java.util.ArrayList<NeonBuildingFloor> getFloors()
Get a collection of all floors in the building Use this to iterate through all floors in the building
-
getFloor
public NeonBuildingFloor getFloor(int floorNumber)
Retrieve a specific floor by floor number- Parameters:
floorNumber
- The floor number to retrieve. The ground floor is index 0, below-ground floors have negative indices, and above-ground floors have positive indices- Returns:
- A NeonBuildingFloor, or null if that floorNumber doesn't exist
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-
-