Class BuildingInfo

  • All Implemented Interfaces:
    android.os.Parcelable, MapperInterface

    public class BuildingInfo
    extends java.lang.Object
    implements android.os.Parcelable, MapperInterface
    A building and its dependencies: floors, POIs and events
    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator<BuildingInfo> CREATOR
    • Method Detail

      • getBuilding

        @NonNull
        public final Building getBuilding()
        Returns the building, without dependencies.
      • containsPoint

        public boolean containsPoint​(Point point)
      • getEvents

        @NonNull
        public final java.util.Collection<SitumEvent> getEvents()
        Returns registered events in the building.
        Returns:
        Collection of SitumEvent. Can be empty.
      • getFloors

        @NonNull
        public final java.util.Collection<Floor> getFloors()
        Returns existent floors in the building.
        Returns:
        Collection of Floors. Can be empty.
      • getIndoorPOIs

        @NonNull
        public final java.util.Collection<Poi> getIndoorPOIs()
        Returns points of interest inside the building.
        Returns:
        Collection of Poi. Can be empty.
      • getOutdoorPOIs

        @NonNull
        public final java.util.Collection<Poi> getOutdoorPOIs()
        Returns points of interest outside the building
        Returns:
        Collection of SitumEvent. Can be empty.
      • getGeofences

        @NonNull
        public final java.util.Collection<Geofence> getGeofences()
        Returns the building's geofences
        Returns:
        Collection of Geofence. Can be empty.
      • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toMap

        public java.util.Map<java.lang.String,​java.lang.Object> toMap()
        Description copied from interface: MapperInterface
        Method to transform object into Map
        Specified by:
        toMap in interface MapperInterface
        Returns:
        Map with the information of the object mapped