public enum SensorStatusEnum extends Enum<SensorStatusEnum>
Enum Constant and Description |
---|
BLACK
Sensor is dead, hasn't reported any measurements.
|
GREEN
Sensor has reported > 80 percent of expected measurements.
|
RED
Sensor has report < 50 percent of expected measurements.
|
YELLOW
Sensor has reported > 50 percent, but < 80 percent of expected measurements.
|
Modifier and Type | Method and Description |
---|---|
String |
getLabel() |
static SensorStatusEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SensorStatusEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SensorStatusEnum BLACK
public static final SensorStatusEnum RED
public static final SensorStatusEnum YELLOW
public static final SensorStatusEnum GREEN
public static SensorStatusEnum[] values()
for (SensorStatusEnum c : SensorStatusEnum.values()) System.out.println(c);
public static SensorStatusEnum 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 nullpublic String getLabel()
Copyright © 2015 Collaborative Software Development Laboratory. All rights reserved.