public class LocationRemote extends AbstractUnitRemote<rst.domotic.unit.location.LocationDataType.LocationData> implements Location
CONNECTION_TIMEOUT, DATA_WAIT_TIMEOUT, logger, LOGGING_TIMEOUT, maintainer, METHOD_CALL_MAX_TIMEOUT, METHOD_CALL_START_TIMEOUT, METHOD_CALL_TIMEOUT_MULTIPLIER, PING_TEST_TIMEOUT, PING_TIMEOUT, REQUEST_TIMEOUT, scopeDEFAULT_NEUTRAL_WHITE, DEFAULT_NEUTRAL_WHITE_COLOR, NEUTRAL_WHITE_KEYUPDATE_METHOD_PREFIX| Constructor and Description |
|---|
LocationRemote() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
Future<rst.domotic.action.ActionFutureType.ActionFuture> |
applyAction(rst.domotic.action.ActionDescriptionType.ActionDescription actionDescription) |
rst.domotic.unit.UnitConfigType.UnitConfig |
applyConfigUpdate(rst.domotic.unit.UnitConfigType.UnitConfig config) |
void |
deactivate() |
Set<rst.domotic.service.ServiceDescriptionType.ServiceDescription> |
getAvailableServiceDescriptions()
Method returns a set of all currently available service descriptions of this unit instance.
|
Set<rst.domotic.service.ServiceTemplateType.ServiceTemplate.ServiceType> |
getAvailableServiceTypes()
Method returns a set of all currently available service types of this unit instance.
|
List<LocationRemote> |
getChildLocationList(boolean waitForData) |
List<ConnectionRemote> |
getConnectionList(boolean waitForData) |
List<ConnectionRemote> |
getDirectConnectionList(String locationID,
boolean waitForData)
Method collects all connections between this and the given location and returns those instances.
|
List<String> |
getNeighborLocationIds()
Deprecated.
please use Registries.getLocationRegistry().getNeighborLocations(String locationId) instead.
|
List<LocationRemote> |
getNeighborLocationList(boolean waitForData) |
Map<rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType,List<UnitRemote>> |
getProvidedUnitMap()
Deprecated.
please use getUnitMap() instead.
|
ServiceRemote |
getServiceRemote(rst.domotic.service.ServiceTemplateType.ServiceTemplate.ServiceType serviceType) |
rst.domotic.state.StandbyStateType.StandbyState |
getStandbyState() |
rst.domotic.unit.UnitTemplateType.UnitTemplate |
getTemplate(boolean onlyAvailableServices)
Method returns the unit template of this unit containing all provided service templates.
|
Map<rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType,List<UnitRemote>> |
getUnitMap()
Returns a Map of all units which directly or recursively provided by this location..
|
Map<rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType,List<UnitRemote>> |
getUnitMap(boolean recursive)
Returns a Map of all units which are directly or recursively provided by this location..
|
<UR extends UnitRemote<?>> |
getUnits(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType,
boolean waitForData,
Class<UR> unitRemoteClass)
Method returns a list of all units filtered by the given unit type which are directly or recursively provided by this location.
|
<UR extends UnitRemote<?>> |
getUnits(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType,
boolean waitForData,
Class<UR> unitRemoteClass,
boolean recursive)
Method returns a list of all units filtered by the given unit type which are directly provided by this location.
|
boolean |
hasDirectConnection(String locationID,
rst.domotic.unit.connection.ConnectionConfigType.ConnectionConfig.ConnectionType connectionType,
boolean waitForData)
Method checks if an direct connection exists between this and the given location.
|
Future<rst.domotic.action.SnapshotType.Snapshot> |
recordSnapshot(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType) |
Future<Void> |
restoreSnapshot(rst.domotic.action.SnapshotType.Snapshot snapshot) |
Future<rst.domotic.action.ActionFutureType.ActionFuture> |
setStandbyState(rst.domotic.state.StandbyStateType.StandbyState standbyState) |
protected rst.domotic.action.ActionDescriptionType.ActionDescription.Builder |
updateActionDescription(rst.domotic.action.ActionDescriptionType.ActionDescription.Builder actionDescription) |
addDataObserver, addDataObserver, addServiceStateObserver, getLabel, getLocationConfig, getParentLocationConfig, getParentLocationRemote, getScope, getTransformation, getUnitRegistry, getUnitTemplate, getUnitType, init, init, init, init, initById, initByLabel, isEnabled, postInit, recordSnapshot, removeDataObserver, removeDataObserver, removeServiceStateObserver, setSessionManager, shutdown, updateActionDescription, updateActionDescription, waitForData, waitForDataaddConfigObserver, getConfig, getConfigClass, getConfigField, getConfigField, getId, hasConfigField, init, notifyConfigUpdate, removeConfigObserver, supportsConfigFieldactivate, activate, addConnectionStateObserver, addHandler, addObserver, applyExternalDataUpdate, callMethod, callMethod, callMethod, callMethod, callMethodAsync, callMethodAsync, deactivate, getConnectionState, getData, getDataClass, getDataField, getIntenalPriorizedDataObservable, getPing, hasDataField, init, init, isActive, isConnected, isDataAvailable, isLocked, lock, notifyDataUpdate, ping, reinit, reinit, reinit, reinit, removeConnectionStateObserver, removeObserver, requestData, reset, setMessageProcessor, toString, unlock, validateActivation, validateData, validateInitialization, validateMiddleware, verifyMaintainability, waitForConnectionState, waitForConnectionState, waitForMiddlewareclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPresenceState, getSupportedServiceTypesaddDataObserver, addServiceStateObserver, addServiceStateObserver, getGlobalBoundingBoxCenterPoint3d, getGlobalPosition, getGlobalPositionPoint3d, getGlobalRotation, getGlobalRotationQuat4d, getLocalBoundingBoxCenterPoint3d, getLocalPosition, getLocalRotation, getLocationRegistry, getRootToUnitTransform3D, getRootToUnitTransformation, getRootToUnitTransformationFuture, getTemplate, getTransactionIdByServiceType, getTransform3D, getTransform3DInverse, getType, getUnitBoundingBoxCenterGlobalPoint3d, getUnitBoundingBoxCenterPoint3d, getUnitPosition, getUnitPositionGlobal, getUnitPositionGlobalPoint3d, getUnitRotation, getUnitRotationGlobal, getUnitRotationGlobalQuat4d, getUnitShape, getUnitTemplate, getUnitToRootTransform3D, getUnitToRootTransformation, getUnitToRootTransformationFuture, getUnitType, recordSnapshot, removeDataObserver, removeServiceStateObserver, removeServiceStateObserver, verifyOperationServiceState, verifyOperationServiceStateValueaddDataObserver, getData, getDataClass, getDataFuture, isDataAvailable, removeDataObserver, waitForData, waitForDatagetBlindState, getBlindState, getBrightnessState, getBrightnessState, getColorState, getColorState, getIlluminanceState, getIlluminanceState, getMotionState, getMotionState, getPowerConsumptionState, getPowerConsumptionState, getPowerState, getPowerState, getSmokeAlarmState, getSmokeAlarmState, getSmokeState, getSmokeState, getStandbyState, getTamperState, getTamperState, getTargetTemperatureState, getTargetTemperatureState, getTemperatureState, getTemperatureState, setBlindState, setBlindState, setBrightnessState, setBrightnessState, setColorState, setColorState, setNeutralWhite, setPowerState, setPowerState, setPowerState, setPowerState, setStandbyState, setTargetTemperatureState, setTargetTemperatureStateverifyBrightnessStatesetColor, setColor, setColor, setColorgetColor, getHSBColor, getJavaAWTColor, getRGBColor, verifyColor, verifyColorState, verifyHsbColor, verifyRgbColorverifyBlindStatesetStandbyStateverifyValueRangeverifTargetTemperatureStategetUpdateMethodNameverifyTemperatureStateaddConfigObserver, getConfig, getConfigClass, removeConfigObserveractivate, activate, addConnectionStateObserver, getConnectionState, getPing, isConnected, ping, removeConnectionStateObserver, requestDataregisterShutdownHook, registerShutdownHookpublic rst.domotic.unit.UnitConfigType.UnitConfig applyConfigUpdate(rst.domotic.unit.UnitConfigType.UnitConfig config)
throws org.openbase.jul.exception.CouldNotPerformException,
InterruptedException
AbstractUnitRemoteapplyConfigUpdate in interface org.openbase.jul.iface.Configurable<String,rst.domotic.unit.UnitConfigType.UnitConfig>applyConfigUpdate in class AbstractUnitRemote<rst.domotic.unit.location.LocationDataType.LocationData>config - org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic void activate()
throws InterruptedException,
org.openbase.jul.exception.CouldNotPerformException
AbstractUnitRemoteactivate in interface org.openbase.jul.iface.Activatableactivate in class AbstractUnitRemote<rst.domotic.unit.location.LocationDataType.LocationData>InterruptedExceptionorg.openbase.jul.exception.CouldNotPerformExceptionpublic void deactivate()
throws InterruptedException,
org.openbase.jul.exception.CouldNotPerformException
deactivate in interface org.openbase.jul.iface.Activatabledeactivate in class org.openbase.jul.extension.rsb.com.RSBRemoteService<rst.domotic.unit.location.LocationDataType.LocationData>InterruptedExceptionorg.openbase.jul.exception.CouldNotPerformExceptionpublic Future<rst.domotic.action.SnapshotType.Snapshot> recordSnapshot(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType) throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException
recordSnapshot in interface LocationrecordSnapshot in interface MultiUnitServiceFusionorg.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic Future<Void> restoreSnapshot(rst.domotic.action.SnapshotType.Snapshot snapshot) throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException
restoreSnapshot in interface Unit<rst.domotic.unit.location.LocationDataType.LocationData>restoreSnapshot in interface org.openbase.jul.iface.Snapshotable<rst.domotic.action.SnapshotType.Snapshot>org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic Future<rst.domotic.action.ActionFutureType.ActionFuture> applyAction(rst.domotic.action.ActionDescriptionType.ActionDescription actionDescription) throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException
AbstractUnitRemoteapplyAction in interface ServiceProviderapplyAction in class AbstractUnitRemote<rst.domotic.unit.location.LocationDataType.LocationData>actionDescription - org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionprotected rst.domotic.action.ActionDescriptionType.ActionDescription.Builder updateActionDescription(rst.domotic.action.ActionDescriptionType.ActionDescription.Builder actionDescription)
throws org.openbase.jul.exception.CouldNotPerformException
org.openbase.jul.exception.CouldNotPerformExceptionpublic ServiceRemote getServiceRemote(rst.domotic.service.ServiceTemplateType.ServiceTemplate.ServiceType serviceType) throws org.openbase.jul.exception.NotAvailableException
getServiceRemote in interface MultiUnitServiceFusionorg.openbase.jul.exception.NotAvailableException@Deprecated public List<String> getNeighborLocationIds() throws org.openbase.jul.exception.CouldNotPerformException
getNeighborLocationIds in interface Locationorg.openbase.jul.exception.CouldNotPerformExceptionpublic List<LocationRemote> getNeighborLocationList(boolean waitForData) throws org.openbase.jul.exception.CouldNotPerformException
org.openbase.jul.exception.CouldNotPerformExceptionpublic List<LocationRemote> getChildLocationList(boolean waitForData) throws org.openbase.jul.exception.CouldNotPerformException
org.openbase.jul.exception.CouldNotPerformExceptionpublic List<ConnectionRemote> getConnectionList(boolean waitForData) throws org.openbase.jul.exception.CouldNotPerformException
org.openbase.jul.exception.CouldNotPerformExceptionpublic List<ConnectionRemote> getDirectConnectionList(String locationID, boolean waitForData) throws org.openbase.jul.exception.CouldNotPerformException
locationID - the location id of the location to check.waitForData - flag defines if the method should block until all needed instances are available.org.openbase.jul.exception.CouldNotPerformException - is thrown if the check could not be performed e.g. if some data is not available yet.public boolean hasDirectConnection(String locationID, rst.domotic.unit.connection.ConnectionConfigType.ConnectionConfig.ConnectionType connectionType, boolean waitForData) throws org.openbase.jul.exception.CouldNotPerformException
locationID - the location id of the location to check.connectionType - the type of the connection. To disable this filter use ConnectionType.UNKNOWNwaitForData - flag defines if the method should block until all needed instances are available.org.openbase.jul.exception.CouldNotPerformException - is thrown if the check could not be performed e.g. if some data is not available yet.@Deprecated public Map<rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType,List<UnitRemote>> getProvidedUnitMap() throws org.openbase.jul.exception.NotAvailableException, InterruptedException
org.openbase.jul.exception.NotAvailableExceptionInterruptedExceptionpublic Map<rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType,List<UnitRemote>> getUnitMap() throws org.openbase.jul.exception.NotAvailableException, InterruptedException
org.openbase.jul.exception.NotAvailableException - is thrown if the map is not available.InterruptedException - is thrown if the current thread was externally interrupted.public Map<rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType,List<UnitRemote>> getUnitMap(boolean recursive) throws org.openbase.jul.exception.NotAvailableException, InterruptedException
recursive - defines if recursive related unit should be included as well.org.openbase.jul.exception.NotAvailableException - is thrown if the map is not available.InterruptedException - is thrown if the current thread was externally interrupted.public <UR extends UnitRemote<?>> Collection<UR> getUnits(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType, boolean waitForData, Class<UR> unitRemoteClass) throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException
UR - the unit remote class type.unitType - the unit type.waitForData - if this flag is set to true the current thread will block until all unit remotes are fully synchronized with the unit controllers.unitRemoteClass - the unit remote class.org.openbase.jul.exception.CouldNotPerformException - is thrown in case something went wrong.InterruptedException - is thrown if the current thread was externally interrupted.public <UR extends UnitRemote<?>> Collection<UR> getUnits(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType, boolean waitForData, Class<UR> unitRemoteClass, boolean recursive) throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException
recursive flag is set to true than recursive related units are included as well.UR - the unit remote class type.unitType - the unit type.waitForData - if this flag is set to true the current thread will block until all unit remotes are fully synchronized with the unit controllers.unitRemoteClass - the unit remote class.recursive - defines if recursive related unit should be included as well.org.openbase.jul.exception.CouldNotPerformException - is thrown in case something went wrong.InterruptedException - is thrown if the current thread was externally interrupted.public rst.domotic.unit.UnitTemplateType.UnitTemplate getTemplate(boolean onlyAvailableServices)
throws org.openbase.jul.exception.NotAvailableException
onlyAvailableServices - if the filter flag is set to true, only service templates are included which are available for the current instance.UnitTemplate of this unit.org.openbase.jul.exception.NotAvailableException - is thrown if the UnitTemplate is currently not available.public Set<rst.domotic.service.ServiceTemplateType.ServiceTemplate.ServiceType> getAvailableServiceTypes() throws org.openbase.jul.exception.NotAvailableException
ServiceTypes.org.openbase.jul.exception.NotAvailableException - is thrown if the service types can not be detected.public Set<rst.domotic.service.ServiceDescriptionType.ServiceDescription> getAvailableServiceDescriptions() throws org.openbase.jul.exception.NotAvailableException
ServiceDescription.org.openbase.jul.exception.NotAvailableException - is thrown if the service types can not be detected.public Future<rst.domotic.action.ActionFutureType.ActionFuture> setStandbyState(rst.domotic.state.StandbyStateType.StandbyState standbyState) throws org.openbase.jul.exception.CouldNotPerformException
setStandbyState in interface StandbyStateOperationServicesetStandbyState in interface MultiUnitServiceFusionorg.openbase.jul.exception.CouldNotPerformExceptionpublic rst.domotic.state.StandbyStateType.StandbyState getStandbyState()
throws org.openbase.jul.exception.NotAvailableException
getStandbyState in interface StandbyStateOperationServiceCollectiongetStandbyState in interface StandbyStateProviderServicegetStandbyState in interface MultiUnitServiceFusionorg.openbase.jul.exception.NotAvailableExceptionCopyright © 2014–2018 openbase.org. All rights reserved.