@Beta
public interface LocationOwner<L extends Location & DynamicLocation<E,L>,E extends Entity & LocationOwner<L,E>>
The entity should be able to dynamically create an instance of the required type of location, and will manage the lifecycle of the location in parallel with its own.
Modifier and Type | Field and Description |
---|---|
static AttributeSensor<Location> |
DYNAMIC_LOCATION |
static AttributeSensor<java.lang.Boolean> |
DYNAMIC_LOCATION_STATUS |
static AttributeSensor<LocationDefinition> |
LOCATION_DEFINITION |
static ConfigKey<java.util.Map<java.lang.String,java.lang.Object>> |
LOCATION_FLAGS |
static BasicAttributeSensorAndConfigKey<java.lang.String> |
LOCATION_NAME |
static ConfigKey<java.lang.String> |
LOCATION_NAME_PREFIX |
static ConfigKey<java.lang.String> |
LOCATION_NAME_SUFFIX |
static AttributeSensor<java.lang.String> |
LOCATION_SPEC |
Modifier and Type | Method and Description |
---|---|
L |
createLocation(java.util.Map<java.lang.String,?> flags) |
void |
deleteLocation() |
L |
getDynamicLocation() |
boolean |
isLocationAvailable() |
static final ConfigKey<java.lang.String> LOCATION_NAME_PREFIX
static final ConfigKey<java.lang.String> LOCATION_NAME_SUFFIX
static final BasicAttributeSensorAndConfigKey<java.lang.String> LOCATION_NAME
static final ConfigKey<java.util.Map<java.lang.String,java.lang.Object>> LOCATION_FLAGS
static final AttributeSensor<Location> DYNAMIC_LOCATION
static final AttributeSensor<java.lang.String> LOCATION_SPEC
static final AttributeSensor<java.lang.Boolean> DYNAMIC_LOCATION_STATUS
static final AttributeSensor<LocationDefinition> LOCATION_DEFINITION