UNPKG

aes70

Version:

A controller library for the AES70 protocol.

76 lines (73 loc) 2.12 kB
/* * This file has been generated. */ import { Enum } from './Enum.js'; /** * States of the ramper. Here are the rules for ramper state change: * * - A freshly-constructed ramper's state is **NotInitialized**. * * - A ramper becomes **Initialized** when : The ramper is **NotInitialized**; * AND ** TargetProperty** has been set to a valid value; AND ** Goal** has * been set; AND ** Duration** has been set. * * - A ramper becomes **Scheduled** when It is **Initialized**; AND **Tstart** * and **TimeMode** have been set; AND (T :sub:`start` + **Duration**) is in * the future. * * - A ramper becomes **Enabled** when it is **Scheduled** AND receives an * *Enable* command. * * - A ramper becomes **Ramping** when: It is **Enabled** and the ramp start * time is reached; OR It is **Initialized**, **Scheduled**, or **Enabled** * and a *Start* command is received. * * - Completion of a ramp or Receipt of a *Halt* command causes the state to * become: **Scheduled**, if T :sub:`start`, Time Mode have been set; AND (T * :sub:`start` + Duration) is in the future. Otherwise, **Initialized.** * * * @class OcaRamperState */ export class OcaRamperState extends Enum({ NotInitialized: 1, Iniitialized: 2, Scheduled: 3, Enabled: 4, Ramping: 5, }) {} /** * Singleton object corresponding to the entry with value ``1``. * @type {OcaRamperState} * @member NotInitialized * @memberof OcaRamperState * @static */ /** * Singleton object corresponding to the entry with value ``2``. * @type {OcaRamperState} * @member Iniitialized * @memberof OcaRamperState * @static */ /** * Singleton object corresponding to the entry with value ``3``. * @type {OcaRamperState} * @member Scheduled * @memberof OcaRamperState * @static */ /** * Singleton object corresponding to the entry with value ``4``. * @type {OcaRamperState} * @member Enabled * @memberof OcaRamperState * @static */ /** * Singleton object corresponding to the entry with value ``5``. * @type {OcaRamperState} * @member Ramping * @memberof OcaRamperState * @static */