-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathDetectorState.enum.js
More file actions
72 lines (70 loc) · 2.27 KB
/
DetectorState.enum.js
File metadata and controls
72 lines (70 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/**
* @license
* Copyright CERN and copyright holders of ALICE O2. This software is
* distributed under the terms of the GNU General Public License v3 (GPL
* Version 3), copied verbatim in the file "COPYING".
*
* See http://alice-o2.web.cern.ch/license for full licensing information.
*
* In applying this license CERN does not waive the privileges and immunities
* granted to it by virtue of its status as an Intergovernmental Organization
* or submit itself to any jurisdiction.
*/
/**
* States of a detector as considered by DCS
* @link https://github.com/AliceO2Group/Control/blob/c5fdca8e25f6f724231d15e34bb1bde7b2c267ab/core/integration/dcs/protos/dcs.proto#L251
* @return {Object}
*/
export const DetectorState = Object.freeze({
UNDEFINED: 'UNDEFINED', // GUI initial set state
NULL_STATE: 'NULL_STATE',
ACTIVE: 'ACTIVE', // Custom GUI state; Detector is active in a run, i.e. it is taking data
READY: 'READY',
RUN_OK: 'RUN_OK',
RUN_FAILURE: 'RUN_FAILURE',
RUN_INHIBIT: 'RUN_INHIBIT',
SOR_PROGRESSING: 'SOR_PROGRESSING',
EOR_PROGRESSING: 'EOR_PROGRESSING',
SOR_FAILURE: 'SOR_FAILURE',
EOR_FAILURE: 'EOR_FAILURE',
ERROR: 'ERROR',
DEAD: 'DEAD',
SOR_UNAVAILABLE: 'SOR_UNAVAILABLE',
EOR_UNAVAILABLE: 'EOR_UNAVAILABLE',
PREPARING: 'PREPARING',
SOR_AVAILABLE: 'SOR_AVAILABLE',
EOR_AVAILABLE: 'EOR_AVAILABLE',
PFR_AVAILABLE: 'PFR_AVAILABLE',
PFR_UNAVAILABLE: 'PFR_UNAVAILABLE',
TIMEOUT: 'TIMEOUT',
});
/**
* Detector state style as per the DCS interface from P2
*/
export const DetectorStateStyle = Object.freeze({
UNDEFINED: '',
NULL_STATE: '',
ACTIVE: 'warning',
READY: 'bg-primary white',
RUN_OK: 'bg-success white',
RUN_FAILURE: 'bg-danger white',
RUN_INHIBIT: '',
SOR_PROGRESSING: 'bg-yellow italic',
EOR_PROGRESSING: '',
SOR_FAILURE: 'bg-danger white',
EOR_FAILURE: '',
ERROR: 'bg-danger white',
DEAD: 'bg-danger white',
SOR_UNAVAILABLE: 'bg-danger white',
EOR_UNAVAILABLE: '',
PREPARING: '',
SOR_AVAILABLE: 'bg-primary white',
EOR_AVAILABLE: '',
PFR_AVAILABLE: '',
PFR_UNAVAILABLE: '',
TIMEOUT: 'bg-danger white',
// Custom states for the SOR/EOR operations covered by ECS when DCS does not reply
DONE_TIMEOUT: 'bg-danger white',
DONE_ERROR: 'bg-danger white',
DONE_OK: 'bg-primary white',
});