Class BaseMapBuildingFloorAbstract

Class that contains information for a floor within a building. Encapsulates waypoints (Waypoint) that are on this floor.

Since

2.0.0

Hierarchy

  • BaseMapBuildingFloor

Constructors

Methods

  • Adds an edge that connects two waypoints.

    Parameters

    • nodeOneId: string

      ID of first waypoint.

    • nodeTwoId: string

      ID of second waypoint.

    Returns void

  • Parameters

    Returns void

    Since

    1.1

  • Adds a waypoint to the floor.

    Parameters

    Returns void

  • Returns string

  • Returns LatLng[][]

    the coordinates that make up the perimiter of this floor

    Since

    1.1

  • Returns EdgeCollection

    All of the edgeCollection on the floor excluding those connected to stairs/elevators.

    Since

    1.1

  • Returns Edge[]

    All of the edges on the floor excluding those connected to stairs/elevators.

  • This will be used to dynamically add/remove elevators from the Dijkstra graph.

    Returns EdgeCollection

    Edges on the floor that consist of at least one elevator waypoint.

    Since

    1.1

  • This will be used to dynamically add/remove elevators from the Dijkstra graph.

    Returns Edge[]

    Edges on the floor that consist of at least one elevator waypoint.

  • This will be used to dynamically add/remove exits from the Dijkstra graph.

    Returns EdgeCollection

    Edges on the floor that consist of at least 1 exit waypoint.

    Since

    1.1

  • This will be used to dynamically add/remove exits from the Dijkstra graph.

    Returns Edge[]

    Edges on the floor that consist of at least 1 exit waypoint.

  • Returns string

  • Returns number

    the floor ordinal

    Deprecated

    since 1.2, use getOrdinal instead

  • Returns number[]

    Since

    1.2.1

  • Returns string

    Since

    1.2.1

  • Returns string

    Unique identifier for this floor.

  • Returns string

    the legacy id associated with this floor

    Since

    1.2

  • Parameters

    • mapUnitId: string

    Returns MapUnit

    Since

    1.1

  • Helper getter to return just the values of the map since that is typically all that is needed.

    Returns MapUnit[]

    A collection of map units.

    Since

    1.1

  • Returns Record<string, MapUnit>

    A map of the map units.

    Since

    1.1

  • Returns string

    the name of the floor

  • Identifies the floor's ordinal value. An ordinal value of 0 is ground level. Negative values are below ground and positive numbers are above ground.

    Returns number

    the floor ordinal

    Since

    1.2

  • Returns string

  • This will be used to dynamically add/remove stairs from the Dijkstra graph.

    Returns EdgeCollection

    Edges on the floor that consist of at least 1 stair waypoint.

    Since

    1.1

  • This will be used to dynamically add/remove stairs from the Dijkstra graph.

    Returns Edge[]

    Edges on the floor that consist of at least 1 stair waypoint.

  • Finds a waypoint with a given ID.

    Parameters

    • nodeId: string

      ID of waypoint to find.

    Returns Waypoint

    Waypoint that is found or null if not found.

  • Returns Waypoint[]

    waypoints that are on this floor.

  • Returns Record<string, Waypoint>

    Map of waypoints on this floor where the keys are the waypoint's uid

    Since

    1.1

  • Parameters

    • unitId: string

    Returns void

  • Set coordinates that make up the perimeter of this floor

    Parameters

    Returns void

    Since

    1.1

  • Parameters

    • id: string

      the new unique identifier for this floor.

    Returns void

  • Parameters

    • legacyId: string

      set the legacy Id associated with this floor

    Returns void

    Since

    1.2

  • Parameters

    Returns void

    Since

    1.1

  • Parameters

    • name: string

      the new name of the floor

    Returns void

  • Parameters

    • ordinal: number

      the new floor ordinal

    Returns void

    Since

    1.2

  • Parameters

    • waypoints: Waypoint[]

      new waypoints that are on this floor.

    Returns void

  • Set map of waypoints

    Parameters

    • waypointsMap: Record<string, Waypoint>

      a map of the waypoints on this floor, keyed by the floor uid

    Returns void

    Since

    1.1

  • Returns string

    A string represenation of this floor

  • Parameters

    • id: string

    Returns number

Properties

id: string

Unique identifier for this floor.

legacyId?: string
mapBuilding: BaseMapBuilding
name: string
ordinal: number
waypoints: Waypoint[] = []

Waypoints that are on this floor.

waypointsMap: Record<string, Waypoint> = {}

Generated using TypeDoc