Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface android.os.Parcelable

        android.os.Parcelable.ClassLoaderCreator<T extends java.lang.Object>, android.os.Parcelable.Creator<T extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static android.os.Parcelable.Creator<NeonBuilding> CREATOR  
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • 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 number
      java.util.ArrayList<NeonBuildingFloor> getFloors()
      Get a collection of all floors in the building Use this to iterate through all floors in the building
      java.util.UUID getID()
      Get unique identifier for this building
      java.lang.String getName()
      Get friendly name for this building.
      void writeToParcel​(android.os.Parcel dest, int flags)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 interface android.os.Parcelable
      • writeToParcel

        public void writeToParcel​(android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable