D - The unit data type.public abstract class AbstractUnitRemote<D extends com.google.protobuf.GeneratedMessage> extends org.openbase.jul.extension.rsb.com.AbstractConfigurableRemote<D,rst.domotic.unit.UnitConfigType.UnitConfig> implements UnitRemote<D>
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, scopeRESPONSIBLE_ACTION_FIELD_NAME, SERVICE_LABEL, SERVICE_MODE_PACKAGE, SERVICE_STATE_PACKAGE| Constructor and Description |
|---|
AbstractUnitRemote(Class<D> dataClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
addDataObserver(org.openbase.jul.pattern.Observer<D> observer) |
void |
addDataObserver(rst.domotic.service.ServiceTempusTypeType.ServiceTempusType.ServiceTempus serviceTempus,
org.openbase.jul.pattern.Observer<D> observer) |
void |
addServiceStateObserver(rst.domotic.service.ServiceTempusTypeType.ServiceTempusType.ServiceTempus serviceTempus,
rst.domotic.service.ServiceTemplateType.ServiceTemplate.ServiceType serviceType,
org.openbase.jul.pattern.Observer observer) |
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) |
String |
getLabel() |
rst.domotic.unit.UnitConfigType.UnitConfig |
getLocationConfig()
Deprecated.
please use getParentLocationConfig() instead.
|
rst.domotic.unit.UnitConfigType.UnitConfig |
getParentLocationConfig()
Method returns the parent location config of this unit.
|
LocationRemote |
getParentLocationRemote(boolean waitForData)
Method returns the parent location remote of this unit.
|
rst.rsb.ScopeType.Scope |
getScope() |
Future<rct.Transform> |
getTransformation()
Deprecated.
please use
getRootToUnitTransformationFuture() instead. |
protected org.openbase.bco.registry.unit.lib.UnitRegistry |
getUnitRegistry() |
rst.domotic.unit.UnitTemplateType.UnitTemplate |
getUnitTemplate() |
rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType |
getUnitType() |
void |
init(rsb.Scope scope) |
void |
init(rst.rsb.ScopeType.Scope scope) |
void |
init(String scope) |
void |
init(String label,
org.openbase.jul.extension.rst.iface.ScopeProvider location)
Deprecated.
|
void |
initById(String id) |
void |
initByLabel(String label) |
boolean |
isEnabled() |
protected void |
postInit() |
Future<rst.domotic.action.SnapshotType.Snapshot> |
recordSnapshot() |
void |
removeDataObserver(org.openbase.jul.pattern.Observer<D> observer) |
void |
removeDataObserver(rst.domotic.service.ServiceTempusTypeType.ServiceTempusType.ServiceTempus serviceTempus,
org.openbase.jul.pattern.Observer<D> observer) |
void |
removeServiceStateObserver(rst.domotic.service.ServiceTempusTypeType.ServiceTempusType.ServiceTempus serviceTempus,
rst.domotic.service.ServiceTemplateType.ServiceTemplate.ServiceType serviceType,
org.openbase.jul.pattern.Observer observer) |
void |
setSessionManager(org.openbase.bco.authentication.lib.SessionManager sessionManager)
Sets the session Manager which is used for the authentication of the
client/user
|
void |
shutdown() |
protected rst.domotic.action.ActionDescriptionType.ActionDescription.Builder |
updateActionDescription(rst.domotic.action.ActionDescriptionType.ActionDescription.Builder actionDescription,
com.google.protobuf.Message serviceAttribute)
Default version.
|
protected rst.domotic.action.ActionDescriptionType.ActionDescription.Builder |
updateActionDescription(rst.domotic.action.ActionDescriptionType.ActionDescription.Builder actionDescription,
com.google.protobuf.Message serviceAttribute,
rst.domotic.service.ServiceTemplateType.ServiceTemplate.ServiceType serviceType)
Use if serviceType cannot be resolved from serviceAttribute.
|
void |
waitForData() |
void |
waitForData(long timeout,
TimeUnit timeUnit) |
addConfigObserver, getConfig, getConfigClass, getConfigField, getConfigField, getId, hasConfigField, init, notifyConfigUpdate, removeConfigObserver, supportsConfigFieldactivate, activate, addConnectionStateObserver, addHandler, addObserver, applyExternalDataUpdate, callMethod, callMethod, callMethod, callMethod, callMethodAsync, callMethodAsync, deactivate, 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, waitaddServiceStateObserver, 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, getUnitToRootTransform3D, getUnitToRootTransformation, getUnitToRootTransformationFuture, removeServiceStateObserver, restoreSnapshot, verifyOperationServiceState, verifyOperationServiceStateValuebuildServiceState, detectServiceDataClass, detectServiceMethod, detectServiceMethod, getArgumentClasses, getServiceBaseName, getServicePrefix, getServiceStateClass, getServiceStateName, getServiceStateName, getServiceStateValues, getServiceType, invokeOperationServiceMethod, invokeProviderServiceMethod, invokeServiceMethod, invokeServiceMethod, upateActionDescription, upateActionDescriptionaddConfigObserver, getConfig, getConfigClass, removeConfigObserveractivate, activate, addConnectionStateObserver, getConnectionState, getPing, isConnected, ping, removeConnectionStateObserver, requestDataregisterShutdownHook, registerShutdownHookprotected org.openbase.bco.registry.unit.lib.UnitRegistry getUnitRegistry()
throws InterruptedException,
org.openbase.jul.exception.CouldNotPerformException
InterruptedExceptionorg.openbase.jul.exception.CouldNotPerformExceptionpublic void initById(String id) throws org.openbase.jul.exception.InitializationException, InterruptedException
initById in interface UnitRemote<D extends com.google.protobuf.GeneratedMessage>id - org.openbase.jul.exception.InitializationExceptionInterruptedExceptionpublic void initByLabel(String label) throws org.openbase.jul.exception.InitializationException, InterruptedException
initByLabel in interface UnitRemote<D extends com.google.protobuf.GeneratedMessage>label - org.openbase.jul.exception.InitializationExceptionInterruptedExceptionpublic void init(rst.rsb.ScopeType.Scope scope)
throws org.openbase.jul.exception.InitializationException,
InterruptedException
init in interface UnitRemote<D extends com.google.protobuf.GeneratedMessage>init in interface org.openbase.jul.extension.rsb.com.RSBRemote<D extends com.google.protobuf.GeneratedMessage>init in class org.openbase.jul.extension.rsb.com.RSBRemoteService<D extends com.google.protobuf.GeneratedMessage>scope - org.openbase.jul.exception.InitializationExceptionInterruptedExceptionpublic void init(rsb.Scope scope)
throws org.openbase.jul.exception.InitializationException,
InterruptedException
init in interface UnitRemote<D extends com.google.protobuf.GeneratedMessage>init in interface org.openbase.jul.extension.rsb.com.RSBRemote<D extends com.google.protobuf.GeneratedMessage>init in class org.openbase.jul.extension.rsb.com.RSBRemoteService<D extends com.google.protobuf.GeneratedMessage>scope - org.openbase.jul.exception.InitializationExceptionInterruptedExceptionpublic void init(String scope) throws org.openbase.jul.exception.InitializationException, InterruptedException
init in interface org.openbase.jul.extension.rsb.com.RSBRemote<D extends com.google.protobuf.GeneratedMessage>init in class org.openbase.jul.extension.rsb.com.RSBRemoteService<D extends com.google.protobuf.GeneratedMessage>scope - org.openbase.jul.exception.InitializationExceptionInterruptedException@Deprecated public void init(String label, org.openbase.jul.extension.rst.iface.ScopeProvider location) throws org.openbase.jul.exception.InitializationException, InterruptedException
org.openbase.jul.exception.InitializationExceptionInterruptedExceptionprotected void postInit()
throws org.openbase.jul.exception.InitializationException,
InterruptedException
postInit in class org.openbase.jul.extension.rsb.com.RSBRemoteService<D extends com.google.protobuf.GeneratedMessage>org.openbase.jul.exception.InitializationExceptionInterruptedExceptionpublic void addServiceStateObserver(rst.domotic.service.ServiceTempusTypeType.ServiceTempusType.ServiceTempus serviceTempus,
rst.domotic.service.ServiceTemplateType.ServiceTemplate.ServiceType serviceType,
org.openbase.jul.pattern.Observer observer)
addServiceStateObserver in interface Unit<D extends com.google.protobuf.GeneratedMessage>public void removeServiceStateObserver(rst.domotic.service.ServiceTempusTypeType.ServiceTempusType.ServiceTempus serviceTempus,
rst.domotic.service.ServiceTemplateType.ServiceTemplate.ServiceType serviceType,
org.openbase.jul.pattern.Observer observer)
removeServiceStateObserver in interface Unit<D extends com.google.protobuf.GeneratedMessage>public void addDataObserver(org.openbase.jul.pattern.Observer<D> observer)
public void addDataObserver(rst.domotic.service.ServiceTempusTypeType.ServiceTempusType.ServiceTempus serviceTempus,
org.openbase.jul.pattern.Observer<D> observer)
addDataObserver in interface Unit<D extends com.google.protobuf.GeneratedMessage>public void removeDataObserver(org.openbase.jul.pattern.Observer<D> observer)
public void removeDataObserver(rst.domotic.service.ServiceTempusTypeType.ServiceTempusType.ServiceTempus serviceTempus,
org.openbase.jul.pattern.Observer<D> observer)
removeDataObserver in interface Unit<D extends com.google.protobuf.GeneratedMessage>public rst.domotic.unit.UnitConfigType.UnitConfig applyConfigUpdate(rst.domotic.unit.UnitConfigType.UnitConfig config)
throws org.openbase.jul.exception.CouldNotPerformException,
InterruptedException
applyConfigUpdate in interface org.openbase.jul.iface.Configurable<String,rst.domotic.unit.UnitConfigType.UnitConfig>applyConfigUpdate in class org.openbase.jul.extension.rsb.com.AbstractConfigurableRemote<D extends com.google.protobuf.GeneratedMessage,rst.domotic.unit.UnitConfigType.UnitConfig>config - org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic void activate()
throws InterruptedException,
org.openbase.jul.exception.CouldNotPerformException
activate in interface org.openbase.jul.iface.Activatableactivate in class org.openbase.jul.extension.rsb.com.RSBRemoteService<D extends com.google.protobuf.GeneratedMessage>InterruptedExceptionorg.openbase.jul.exception.CouldNotPerformExceptionpublic void waitForData()
throws org.openbase.jul.exception.CouldNotPerformException,
InterruptedException
waitForData in interface org.openbase.jul.pattern.provider.DataProvider<D extends com.google.protobuf.GeneratedMessage>waitForData in interface org.openbase.jul.pattern.Remote<D extends com.google.protobuf.GeneratedMessage>waitForData in class org.openbase.jul.extension.rsb.com.RSBRemoteService<D extends com.google.protobuf.GeneratedMessage>org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic void waitForData(long timeout,
TimeUnit timeUnit)
throws org.openbase.jul.exception.CouldNotPerformException,
InterruptedException
waitForData in interface org.openbase.jul.pattern.provider.DataProvider<D extends com.google.protobuf.GeneratedMessage>waitForData in interface org.openbase.jul.pattern.Remote<D extends com.google.protobuf.GeneratedMessage>waitForData in class org.openbase.jul.extension.rsb.com.RSBRemoteService<D extends com.google.protobuf.GeneratedMessage>timeout - timeUnit - org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic boolean isEnabled()
isEnabled in interface UnitRemote<D extends com.google.protobuf.GeneratedMessage>public rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType getUnitType()
throws org.openbase.jul.exception.NotAvailableException
getUnitType in interface Unit<D extends com.google.protobuf.GeneratedMessage>org.openbase.jul.exception.NotAvailableExceptionpublic rst.domotic.unit.UnitTemplateType.UnitTemplate getUnitTemplate()
throws org.openbase.jul.exception.NotAvailableException
getUnitTemplate in interface Unit<D extends com.google.protobuf.GeneratedMessage>org.openbase.jul.exception.NotAvailableExceptionpublic String getLabel() throws org.openbase.jul.exception.NotAvailableException
getLabel in interface org.openbase.jul.iface.provider.LabelProviderorg.openbase.jul.exception.NotAvailableExceptionpublic rst.rsb.ScopeType.Scope getScope()
throws org.openbase.jul.exception.NotAvailableException
getScope in interface org.openbase.jul.extension.rsb.com.RSBRemote<D extends com.google.protobuf.GeneratedMessage>getScope in interface org.openbase.jul.extension.rst.iface.ScopeProvidergetScope in class org.openbase.jul.extension.rsb.com.RSBRemoteService<D extends com.google.protobuf.GeneratedMessage>org.openbase.jul.exception.NotAvailableExceptionpublic rst.domotic.unit.UnitConfigType.UnitConfig getParentLocationConfig()
throws org.openbase.jul.exception.NotAvailableException,
InterruptedException
org.openbase.jul.exception.NotAvailableException - is thrown if the location config is currently not available.InterruptedException@Deprecated public rst.domotic.unit.UnitConfigType.UnitConfig getLocationConfig() throws org.openbase.jul.exception.NotAvailableException
org.openbase.jul.exception.NotAvailableExceptionpublic LocationRemote getParentLocationRemote(boolean waitForData) throws org.openbase.jul.exception.NotAvailableException, InterruptedException
waitForData - flag defines if the method should block until the remote is fully synchronized.org.openbase.jul.exception.NotAvailableException - is thrown if the location remote is currently not available.InterruptedException - is thrown if the current was externally interrupted.public void setSessionManager(org.openbase.bco.authentication.lib.SessionManager sessionManager)
setSessionManager in interface UnitRemote<D extends com.google.protobuf.GeneratedMessage>sessionManager - an instance of SessionManager@Deprecated public Future<rct.Transform> getTransformation() throws InterruptedException
getRootToUnitTransformationFuture() instead.InterruptedException - is thrown if the thread was externally interrupted.public Future<rst.domotic.action.ActionFutureType.ActionFuture> applyAction(rst.domotic.action.ActionDescriptionType.ActionDescription actionDescription) throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException, org.openbase.jul.exception.RejectedException
applyAction in interface ServiceProvideractionDescription - org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionorg.openbase.jul.exception.RejectedExceptionpublic Future<rst.domotic.action.SnapshotType.Snapshot> recordSnapshot() throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException
recordSnapshot in interface Unit<D extends com.google.protobuf.GeneratedMessage>recordSnapshot in interface org.openbase.jul.iface.Snapshotable<rst.domotic.action.SnapshotType.Snapshot>org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionprotected rst.domotic.action.ActionDescriptionType.ActionDescription.Builder updateActionDescription(rst.domotic.action.ActionDescriptionType.ActionDescription.Builder actionDescription,
com.google.protobuf.Message serviceAttribute,
rst.domotic.service.ServiceTemplateType.ServiceTemplate.ServiceType serviceType)
throws org.openbase.jul.exception.CouldNotPerformException
actionDescription - serviceAttribute - serviceType - org.openbase.jul.exception.CouldNotPerformExceptionprotected rst.domotic.action.ActionDescriptionType.ActionDescription.Builder updateActionDescription(rst.domotic.action.ActionDescriptionType.ActionDescription.Builder actionDescription,
com.google.protobuf.Message serviceAttribute)
throws org.openbase.jul.exception.CouldNotPerformException
actionDescription - serviceAttribute - org.openbase.jul.exception.CouldNotPerformExceptionpublic void shutdown()
shutdown in interface org.openbase.jul.iface.Manageable<rst.domotic.unit.UnitConfigType.UnitConfig>shutdown in interface org.openbase.jul.iface.Shutdownableshutdown in class org.openbase.jul.extension.rsb.com.AbstractConfigurableRemote<D extends com.google.protobuf.GeneratedMessage,rst.domotic.unit.UnitConfigType.UnitConfig>Copyright © 2014–2018 openbase.org. All rights reserved.