0391-Extends-rst-cbse-ComponentState-by-two-possible-stat.patch
proto/sandbox/rst/cbse/ComponentState.proto | ||
---|---|---|
3 | 3 |
option java_outer_classname = "ComponentStateType"; |
4 | 4 | |
5 | 5 |
/** |
6 |
* Holds information about a component`s lifecycle state. |
|
7 |
* |
|
6 |
* Holds information about a component`s lifecycle state. May also be used to
|
|
7 |
* trigger a component to transition to the according state.
|
|
8 | 8 |
* Feel free to extend the State enum. |
9 | 9 |
* |
10 | 10 |
* @author Arne Nordmann <anordman@techfak.uni-bielefeld.de> |
... | ... | |
15 | 15 |
* Possible lifecycle states |
16 | 16 |
*/ |
17 | 17 |
enum State { |
18 |
OFF = 1; |
|
19 |
ON = 2; |
|
20 |
PAUSED = 3; |
|
21 |
EXECUTION = 4; |
|
22 |
ONLINELEARNING = 5; |
|
23 |
OFFLINELEARNING = 6; |
|
24 |
RESET = 7; |
|
18 |
OFF = 1; // Not running / off / stopped |
|
19 |
ON = 2; // Running / on / online -- rather generic, try |
|
20 |
// to use more specific state, see below |
|
21 |
PAUSED = 3; // Paused |
|
22 |
EXECUTION = 4; // On and running / executing |
|
23 |
ONLINELEARNING = 5; // Online learning, but still responsive |
|
24 |
OFFLINELEARNING = 6; // Offline learning and not responsive |
|
25 |
RESET = 7; // Resetted |
|
26 |
LOADED = 8; // Component was just loaded from persisted state |
|
27 |
PERSISTED = 9; // Component state was just persisted |
|
25 | 28 |
} |
26 | 29 | |
27 | 30 |
required State state = 1; |
28 |
- |