public static enum SensorEvent.Type extends Enum<SensorEvent.Type>
Enum Constant and Description |
---|
CONNECTED
Sensor connected to SensorHub
|
DISCONNECTED
Sensor disconnected from SensorHub
|
SENSOR_ADDED
Sensor added to network
|
SENSOR_CHANGED
Sensor configuration changed (should be reflected by SensorML)
|
SENSOR_REMOVED
Sensor removed from network (not just disconnected)
|
Modifier and Type | Method and Description |
---|---|
static SensorEvent.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SensorEvent.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SensorEvent.Type CONNECTED
public static final SensorEvent.Type DISCONNECTED
public static final SensorEvent.Type SENSOR_ADDED
public static final SensorEvent.Type SENSOR_REMOVED
public static final SensorEvent.Type SENSOR_CHANGED
public static SensorEvent.Type[] values()
for (SensorEvent.Type c : SensorEvent.Type.values()) System.out.println(c);
public static SensorEvent.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 © 2015 Sensia Software LLC. All rights reserved.