brooklyn.entity
Interface EntityType

All Superinterfaces:
Serializable

public interface EntityType
extends Serializable

Gives type information for an 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.


Method Summary
 ConfigKey<?> getConfigKey(String name)
          The ConfigKey with the given name, or null if not found.
 Set<ConfigKey<?>> getConfigKeys()
          ConfigKeys available on this entity.
 Set<Effector<?>> getEffectors()
          Effectors available on this entity.
 String getName()
          The type name of this entity (normally the fully qualified class name).
 Sensor<?> getSensor(String name)
          The Sensor with the given name, or null if not found.
 Set<Sensor<?>> getSensors()
          Sensors available on this entity.
 boolean hasSensor(String name)
           
 

Method Detail

getName

String getName()
The type name of this entity (normally the fully qualified class name).


getConfigKeys

Set<ConfigKey<?>> getConfigKeys()
ConfigKeys available on this entity.


getSensors

Set<Sensor<?>> getSensors()
Sensors available on this entity.


getEffectors

Set<Effector<?>> getEffectors()
Effectors available on this entity.


getConfigKey

ConfigKey<?> getConfigKey(String name)
The ConfigKey with the given name, or null if not found.


getSensor

Sensor<?> getSensor(String name)
The Sensor with the given name, or null if not found.


hasSensor

boolean hasSensor(String name)
Returns:
True if has the sensor with the given name; false otherwise.


Copyright © 2013. All Rights Reserved.