type

Status

const mixin Status : Dict

Status flags

methods

alarm

Instance with alarm flag set

clear

Clear this instance flags with the given instances flags

disabled

Instance with disabled flag set

down

Instance with down flag set

fault

Instance with fault flag set

fromCurStatus

Map curStatus tags to status flags

fromName

Get an instance by name

fromStr

Parse a comma-separated list of status flags

isAlarm

In an alarm state

isDisabled

Disabled state

isDown

Network or communication error state

isFault

Configuration or hardware error state

isOk

In the ok state with no other flags set

isOverridden

Manual override state

isStale

Data is not fresh

isUnacked

Alarm has not been acknowledged

isValid

Return true if none of the following status flags are set

merge

Merge flags together for combination operations.

ok

Get the ok status with no flags set

only

Get a new status where only the given flags are set

overridden

Instance with overridden flag set

set

Merge all this instance flags with the given instances flags.

stale

Instance with stale flag set

unacked

Instance with flag set

Slot Details

alarm

static Status alarm()

Instance with alarm flag set

clear

Status clear(Status that)

Clear this instance flags with the given instances flags

disabled

static Status disabled()

Instance with disabled flag set

down

static Status down()

Instance with down flag set

fault

static Status fault()

Instance with fault flag set

fromCurStatus

static Status fromCurStatus(Str? curStatus)

Map curStatus tags to status flags

fromName

static Status? fromName(Str name, Bool checked := true)

Get an instance by name

fromStr

static Status fromStr(Str flags)

Parse a comma-separated list of status flags

isAlarm

abstract Bool isAlarm()

In an alarm state

isDisabled

abstract Bool isDisabled()

Disabled state

isDown

abstract Bool isDown()

Network or communication error state

isFault

abstract Bool isFault()

Configuration or hardware error state

isOk

abstract Bool isOk()

In the ok state with no other flags set

isOverridden

abstract Bool isOverridden()

Manual override state

isStale

abstract Bool isStale()

Data is not fresh

isUnacked

abstract Bool isUnacked()

Alarm has not been acknowledged

isValid

abstract Bool isValid()

Return true if none of the following status flags are set:

disabled,down,fault,stale

merge

Status merge(Status? that)

Merge flags together for combination operations. If that is null, return this

ok

static Status ok()

Get the ok status with no flags set

only

Status only(Status that)

Get a new status where only the given flags are set

overridden

static Status overridden()

Instance with overridden flag set

set

Status set(Status that)

Merge all this instance flags with the given instances flags.

stale

static Status stale()

Instance with stale flag set

unacked

static Status unacked()

Instance with flag set