@Beta public class AddSensor<RT,T extends Sensor<RT>> extends java.lang.Object implements EntityInitializer
name and targetType.
 For the targetType, currently this only supports classes on the initial classpath
 (e.g. not those in OSGi bundles added at runtime).| Modifier and Type | Field and Description | 
|---|---|
| static ConfigKey<java.lang.String> | SENSOR_NAME | 
| static ConfigKey<Duration> | SENSOR_PERIOD | 
| static ConfigKey<java.lang.String> | SENSOR_TYPE | 
| Modifier and Type | Method and Description | 
|---|---|
| void | apply(EntityLocal entity)Applies initialization logic to a just-built entity. | 
| static <T> AttributeSensor<T> | newSensor(java.lang.Class<T> type,
         ConfigBag params) | 
| static <T> AttributeSensor<T> | newSensor(ConfigBag params) | 
public static final ConfigKey<java.lang.String> SENSOR_NAME
public static final ConfigKey<java.lang.String> SENSOR_TYPE
public AddSensor(T sensor)
public void apply(EntityLocal entity)
EntityInitializerapply in interface EntityInitializerentity - guaranteed to be the actual implementation instance, 
 thus guaranteed to be castable to EntityInternal which is often desired,
 or to the type at hand (it is not even a proxy)public static <T> AttributeSensor<T> newSensor(java.lang.Class<T> type, ConfigBag params)
public static <T> AttributeSensor<T> newSensor(ConfigBag params)