Class: VehicleStatus

domain/VehicleStatus.VehicleStatus

Constructors

constructor

new VehicleStatus(name, event, successorName, isStartStatus, isEndStatus, categoryType, categoryName)

Vehicle status

Parameters

Name

Type

Description

name

string

The name of the vehicle status

event

string

The event associated to this status, if any

successorName

string

The name of a typical successor to this status based on vehicle configuration

isStartStatus

boolean

true if this status is engaged at the start of a new operation

isEndStatus

boolean

true if this status closes the current operation

categoryType

string

Type if status: ‘mission’ or ‘other’

categoryName

string

The name of the category as defined by the vehicle user

Properties

categoryName

categoryName: string

The name of the category as defined by the vehicle user


categoryType

categoryType: string

Type if status: ‘mission’ or ‘other’


event

event: string

The event associated to this status, if any


isEndStatus

isEndStatus: boolean

true if this status closes the current operation


isStartStatus

isStartStatus: boolean

true if this status is engaged at the start of a new operation


name

name: string

The name of the vehicle status


successorName

successorName: string

The name of a typical successor to this status based on vehicle configuration

Methods

fromJSON

Static fromJSON(status): VehicleStatus

Creates from JSON

Parameters

Name

Type

Description

status

any

JSON object

Returns

VehicleStatus