public enum CODATransition extends java.lang.Enum<CODATransition>
*****************
* State Machine *
*****************
_________________________________________________________________
| |
transition | STATE | transition
________________|_________________|______________________________
(if reset from ERROR or BOOTED)
<- BOOTED <-----------------------------,
| |
configure | |
| <------------------------|
'-> CONFIGURED ->----------------------->|
<- ^
| |
download | |
| |
'-> DOWNLOADED ->----------------------->|
<- <-,<----------, ^
| ^ ^ |
| | | |
prestart | | end | end | reset
| | | |
'-> PAUSED -----> -----------|---------->|
<- | ^
| | |
go | | |
| | |
'-> ACTIVE --------------->'---------->'
__________________________________________________________________
NOTE: DOWNLOADED can always do a download,
CONFIGURED can always do a configure, and
RESET goes from any state to CONFIGURED (to BOOTED if in ERROR or BOOTED state)
Enum Constant and Description |
---|
CONFIGURE
Configure transition.
|
DOWNLOAD
Download transition.
|
END
End transition.
|
GO
Go transition.
|
PAUSE
Pause transition.
|
PRESTART
Prestart transition.
|
RESET
Reset transition.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
description()
Get the description of this transition.
|
CODAStateIF |
success()
Returns the CODA run control State (CODAState enum object) upon success of this transition.
|
static CODATransition |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CODATransition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CODATransition CONFIGURE
public static final CODATransition DOWNLOAD
public static final CODATransition PRESTART
public static final CODATransition GO
public static final CODATransition END
public static final CODATransition PAUSE
public static final CODATransition RESET
public static CODATransition[] values()
for (CODATransition c : CODATransition.values()) System.out.println(c);
public static CODATransition valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String description()
public CODAStateIF success()