Class: OperationUnit

domain/OperationUnit.OperationUnit

Operation unit corresponds to a vehicle on a case and it is related to the Assigned Resource values from SOS.

Constructors

constructor

new OperationUnit(unitId, status, role, source, eta, reportedInArea)

Parameters

Name

Type

Description

unitId

string

The unique id of the unit, corresponds to the Resource ID for Assigned Resource from dispatch

status

string

The current Status, also corresponds to the Status for Assigned Resource from dispatch

role

string

The role of the unit, only potentially available if source is CLOUD

source

OperationUnitSource

The data source of the unit: RAKEL (from dispatch) or CLOUD (Evam Central Services)

eta

Date

The estimated time of arrival for this unit, only potentially available if source is CLOUD

reportedInArea

string

Corresponds to reportedInArea for Assigned Resource from dispatch

Properties

eta

eta: Date

The estimated time of arrival for this unit, only potentially available if source is CLOUD


reportedInArea

reportedInArea: string

Corresponds to reportedInArea for Assigned Resource from dispatch


role

role: string

The role of the unit, only potentially available if source is CLOUD


source

source: OperationUnitSource

The data source of the unit: RAKEL (from dispatch) or CLOUD (Evam Central Services)


status

status: string

The current Status, also corresponds to the Status for Assigned Resource from dispatch


unitId

unitId: string

The unique id of the unit, corresponds to the Resource ID for Assigned Resource from dispatch

Methods

fromJSON

Static fromJSON(data): OperationUnit

Parameters

Name

Type

data

any

Returns

OperationUnit