public static enum Variable.Type extends Enum<Variable.Type>
Enum Constant and Description |
---|
FEATURE
FEATURE means that a Feature is marked as a variable.
|
GLOBAL
GLOBAL means that the variable is available everywhere in a program.
|
VALUE_PERSISTED
VALUE_PERSISTED means that the variable is stored with the installation.
|
Modifier and Type | Method and Description |
---|---|
static Variable.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Variable.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Variable.Type GLOBAL
GLOBAL means that the variable is available everywhere in a program.
This variable instance can be cast toGlobalVariable
.public static final Variable.Type VALUE_PERSISTED
VALUE_PERSISTED means that the variable is stored with the installation. These variables are defined in the installation and will retain their values even when a robot is turned off and on.
This variable instance can be cast toValuePersistedVariable
.public static final Variable.Type FEATURE
FEATURE means that a Feature is marked as a variable. The variable is defined in the installation and will exist even when a robot is turned off and on.
This variable instance can be cast toFeatureVariable
.public static Variable.Type[] values()
for (Variable.Type c : Variable.Type.values()) System.out.println(c);
public static Variable.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2020. All rights reserved.