public interface EntityType extends BrooklynType
Entity
. It is an immutable snapshot.
It reflects a given entity at the time the snapshot was created: if sensors
were added or removed on-the-fly then those changes will be included in subsequent
snapshots. Therefore instances of a given class of entity could have different
EntityTypes.Modifier and Type | Method and Description |
---|---|
Effector<?> |
getEffector(java.lang.String name,
java.lang.Class<?>... parameterTypes)
Deprecated.
since 0.7.0 use
getEffectorByName(String) ;
use of multiple effectors with the same name is not supported by the EntityDynamicType implementation,
so should be discouraged. overloading can be achieved by inspecting the parameters map. |
Maybe<Effector<?>> |
getEffectorByName(java.lang.String name) |
java.util.Set<Effector<?>> |
getEffectors()
Effectors available on this entity.
|
Sensor<?> |
getSensor(java.lang.String name)
The Sensor with the given name, or null if not found.
|
java.util.Set<Sensor<?>> |
getSensors()
Sensors available on this entity.
|
boolean |
hasSensor(java.lang.String name) |
getConfigKey, getConfigKeys, getName, getSimpleName
java.util.Set<Sensor<?>> getSensors()
java.util.Set<Effector<?>> getEffectors()
Maybe<Effector<?>> getEffectorByName(java.lang.String name)
@Deprecated Effector<?> getEffector(java.lang.String name, java.lang.Class<?>... parameterTypes)
getEffectorByName(String)
;
use of multiple effectors with the same name is not supported by the EntityDynamicType implementation,
so should be discouraged. overloading can be achieved by inspecting the parameters map.java.util.NoSuchElementException
- If there is no exact match for this signature
Sensor<?> getSensor(java.lang.String name)
boolean hasSensor(java.lang.String name)