Represents a group of sensors.

Hierarchy

  • SensorGroup

Constructors

Accessors

  • get elements(): ElementInfo[]
  • Gets the elements of the sensor group.

    Returns ElementInfo[]

  • get id(): Int64
  • Gets the ID of the sensor group.

    Returns Int64

  • get name(): string
  • Gets the name of the sensor group.

    Returns string

  • set name(name: string): void
  • Sets the name of the sensor group.

    Parameters

    • name: string

    Returns void

  • get sensors(): Sensor[]
  • Gets the sensors of the sensor group.

    Returns Sensor[]

Methods

  • Adds an element to the group by its element ID.

    Parameters

    Returns Promise<boolean>

  • Adds an element to the group by its internal ID.

    Parameters

    Returns Promise<boolean>

  • Adds a sensor to the group.

    Parameters

    • name: string
    • point: Vector3D
    • value: number

    Returns Promise<Sensor>

  • Cleans up the sensor group by removing sensors and/or elements.

    Parameters

    • sensors: boolean = true
    • elements: boolean = true

    Returns Promise<void>

  • Finds a sensor by its name.

    Parameters

    • sensorName: string

    Returns Sensor

  • Gets the state of the sensor group.

    Returns SensorGroupState

  • Removes the sensor group.

    Parameters

    • removeFromGroupsArray: boolean = true

    Returns Promise<boolean>

  • Removes an element from the group.

    Parameters

    Returns Promise<boolean>