public class EntityDynamicType extends BrooklynDynamicType<Entity,AbstractEntity>
EntityType, and can change over time;
 for this reason it does *not* implement EntityType, but 
 callers can call getSnapshot() to get a snapshot such instance| Constructor and Description | 
|---|
| EntityDynamicType(AbstractEntity entity) | 
| EntityDynamicType(java.lang.Class<? extends Entity> clazz) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addEffector(Effector<?> newEffector)Adds the given  Effectorto this entity. | 
| <T> void | addEffector(Effector<T> effector,
           EffectorBody<T> body)Adds an effector with an explicit body | 
| <T> void | addEffector(Effector<T> effector,
           EffectorTasks.EffectorTaskFactory<T> body)Adds an effector with an explicit body | 
| void | addSensor(Sensor<?> newSensor)Adds the given  Sensorto this entity. | 
| void | addSensorIfAbsent(Sensor<?> newSensor) | 
| Sensor<?> | addSensorIfAbsentWithoutPublishing(Sensor<?> newSensor) | 
| void | addSensors(java.lang.Iterable<? extends Sensor<?>> newSensors)Adds the given  Sensors to this entity. | 
| static java.util.Map<java.lang.String,Effector<?>> | findEffectors(java.lang.Class<? extends Entity> clazz,
             Entity optionalEntity)Finds the effectors defined on the entity's class, statics and optionally any non-static (discouraged). | 
| static java.util.Map<java.lang.String,Sensor<?>> | findSensors(java.lang.Class<? extends Entity> clazz,
           Entity optionalEntity)Finds the sensors defined on the entity's class, statics and optionally any non-static (discouraged). | 
| Effector<?> | getEffector(java.lang.String name) | 
| java.util.Map<java.lang.String,Effector<?>> | getEffectors()Effectors available on this entity. | 
| java.lang.Class<? extends Entity> | getEntityClass()Deprecated. 
 since 0.7; unused code; instead use  BrooklynDynamicType.getBrooklynClass() | 
| Sensor<?> | getSensor(java.lang.String sensorName)Convenience for finding named sensor. | 
| java.util.Map<java.lang.String,Sensor<?>> | getSensors()Sensors available on this entity. | 
| EntityType | getSnapshot() | 
| boolean | removeSensor(Sensor<?> sensor)Removes the named  Sensorfrom this entity. | 
| Sensor<?> | removeSensor(java.lang.String sensorName)Removes the named  Sensorfrom this entity. | 
getBrooklynClass, getConfigKey, getConfigKeyField, getConfigKeys, setNamepublic EntityDynamicType(AbstractEntity entity)
public EntityDynamicType(java.lang.Class<? extends Entity> clazz)
@Deprecated public java.lang.Class<? extends Entity> getEntityClass()
BrooklynDynamicType.getBrooklynClass()public EntityType getSnapshot()
getSnapshot in class BrooklynDynamicType<Entity,AbstractEntity>public Effector<?> getEffector(java.lang.String name)
public java.util.Map<java.lang.String,Effector<?>> getEffectors()
@Beta public void addEffector(Effector<?> newEffector)
Effector to this entity.@Beta public <T> void addEffector(Effector<T> effector, EffectorTasks.EffectorTaskFactory<T> body)
@Beta public <T> void addEffector(Effector<T> effector, EffectorBody<T> body)
public java.util.Map<java.lang.String,Sensor<?>> getSensors()
public Sensor<?> getSensor(java.lang.String sensorName)
public void addSensors(java.lang.Iterable<? extends Sensor<?>> newSensors)
Sensors to this entity.public void addSensorIfAbsent(Sensor<?> newSensor)
public Sensor<?> addSensorIfAbsentWithoutPublishing(Sensor<?> newSensor)
public Sensor<?> removeSensor(java.lang.String sensorName)
Sensor from this entity.public boolean removeSensor(Sensor<?> sensor)
Sensor from this entity.public static java.util.Map<java.lang.String,Effector<?>> findEffectors(java.lang.Class<? extends Entity> clazz, Entity optionalEntity)