Class FloorStack

A class representing floor stack data within the map.

FloorStacks are used to represent a group of floors that are part of a single entity.

Hierarchy

  • default
    • FloorStack

Properties

Accessors

Methods

Properties

id: string

identity of the map object

links: Hyperlink[] = []

Gets the links associated with this data type.

The links associated with this data type

Accessors

  • get floors(): Floor[]
  • Gets the floors (Floor) included in this FloorStack.

    Returns Floor[]

    An array of Floor objects in this FloorStack.

  • get name(): string
  • Gets the name of the FloorStack.

    Returns string

    The name of the FloorStack.

  • get type(): undefined | "Building" | "Outdoor"
  • Gets the type of FloorStack.

    Returns undefined | "Building" | "Outdoor"

Methods

  • Serializes the FloorStack data to JSON.

    Returns {
        floors: string[];
        id: string;
        name: string;
        type: undefined | "Building" | "Outdoor";
    }

    An object representing the FloorStack.

    • floors: string[]
    • id: string
    • name: string
    • type: undefined | "Building" | "Outdoor"
  • Checks if the provided instance is of type FloorStack.

    Parameters

    • instance: object

      The instance to check.

    Returns instance is FloorStack

    True if the instance is a FloorStack, false otherwise.