public interface Sensor<T>
extends java.io.Serializable
SensorEvent| Modifier and Type | Method and Description | 
|---|---|
| java.lang.String | getDescription()Returns the description of the sensor, for display. | 
| java.lang.String | getName()Returns the name of the sensor, in a dot-separated namespace. | 
| java.util.List<java.lang.String> | getNameParts()Returns the constituent parts of the sensor name as a  List. | 
| java.lang.Class<? super T> | getType()Returns the Java  Classfor the sensor data. | 
| java.lang.String | getTypeName()Returns the type of the sensor data, as a  Stringrepresentation of the class name. | 
| com.google.common.reflect.TypeToken<T> | getTypeToken()Returns the Guava TypeToken (including generics info) | 
| SensorEvent<T> | newEvent(Entity entity,
        T value)Create a new  SensorEventobject for a specificEntityand data point. | 
java.lang.Class<? super T> getType()
Class for the sensor data.
 
 This returns a "super" of T only in the case where T is generified, 
 and in such cases it returns the Class instance for the unadorned T ---
 i.e. for List ---
 this is of course because there is no actual Class
> instance.
com.google.common.reflect.TypeToken<T> getTypeToken()
java.lang.String getTypeName()
String representation of the class name.
 (Useful for contexts where Type is not accessible.)java.lang.String getName()
java.util.List<java.lang.String> getNameParts()
List.java.lang.String getDescription()
SensorEvent<T> newEvent(Entity entity, T value)
SensorEvent object for a specific Entity and data point.