Represents a sensor in the system.

Hierarchy

  • Sensor

Constructors

Accessors

Methods

Constructors

Accessors

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

    Returns Int64

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

    Returns string

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

    Parameters

    • name: string

    Returns void

  • get point(): Vector3D
  • Gets the point of the sensor.

    Returns Vector3D

  • get value(): number
  • Gets the value of the sensor.

    Returns number

Methods

  • Gets the state of the sensor.

    Returns SensorState

  • Removes the sensor.

    Parameters

    • removeFromSensorsArray: boolean = true

    Returns Promise<boolean>

  • Updates the sensor with new point and/or value.

    Parameters

    • Optional point: Vector3D
    • Optional value: number

    Returns Promise<void>