public class PowerStateServiceRemote extends AbstractServiceRemote<PowerStateOperationService,rst.domotic.state.PowerStateType.PowerState> implements PowerStateOperationServiceCollection
| Modifier and Type | Field and Description |
|---|---|
static boolean |
INFRASTRUCTURE_UNITS_FILTERED |
static boolean |
INFRASTRUCTURE_UNITS_HANDELED |
static String |
META_CONFIG_UNIT_INFRASTRUCTURE_FLAG |
logger, maintainer, serviceStateObservableUPDATE_METHOD_PREFIXRESPONSIBLE_ACTION_FIELD_NAME, SERVICE_LABEL, SERVICE_MODE_PACKAGE, SERVICE_STATE_PACKAGE| Constructor and Description |
|---|
PowerStateServiceRemote()
Constructor creates a new service remote.
|
PowerStateServiceRemote(boolean filterInfrastructureUnits)
Constructor creates a new service remote.
|
| Modifier and Type | Method and Description |
|---|---|
protected rst.domotic.state.PowerStateType.PowerState |
computeServiceState()
Compute the service state of this service collection if an underlying
service changes.
|
rst.domotic.state.PowerStateType.PowerState |
getPowerState() |
rst.domotic.state.PowerStateType.PowerState |
getPowerState(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType) |
Collection<PowerStateOperationService> |
getPowerStateOperationServices() |
void |
init(rst.domotic.unit.UnitConfigType.UnitConfig config) |
void |
setInfrastructureFilter(boolean enabled)
Must be called before init.
|
Future<rst.domotic.action.ActionFutureType.ActionFuture> |
setPowerState(rst.domotic.state.PowerStateType.PowerState powerState) |
Future<rst.domotic.action.ActionFutureType.ActionFuture> |
setPowerState(rst.domotic.state.PowerStateType.PowerState powerState,
rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType) |
activate, activate, addDataObserver, addServiceStateObserver, applyAction, deactivate, getData, getDataClass, getInternalUnits, getInternalUnits, getPing, getServices, getServices, getServiceState, getServiceType, hasInternalRemotes, init, isActive, isConnected, isDataAvailable, isLocked, lock, ping, removeDataObserver, removeServiceStateObserver, removeUnit, requestData, shutdown, toString, unlock, verifyMaintainability, verifyServiceCompatibility, waitForData, waitForDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetPowerStatesetPowerStateverifyValueRangegetUpdateMethodNamebuildServiceState, detectServiceDataClass, detectServiceMethod, detectServiceMethod, getArgumentClasses, getServiceBaseName, getServicePrefix, getServiceStateClass, getServiceStateName, getServiceStateName, getServiceStateValues, getServiceType, invokeOperationServiceMethod, invokeProviderServiceMethod, invokeServiceMethod, invokeServiceMethod, upateActionDescription, upateActionDescriptionactivate, addConnectionStateObserver, getConnectionState, removeConnectionStateObserver, requestDatapublic static final String META_CONFIG_UNIT_INFRASTRUCTURE_FLAG
public static final boolean INFRASTRUCTURE_UNITS_FILTERED
public static final boolean INFRASTRUCTURE_UNITS_HANDELED
public PowerStateServiceRemote()
public PowerStateServiceRemote(boolean filterInfrastructureUnits)
filterInfrastructureUnits - this flag defines if units which are marked as infrastructure are filtered by this instance.public void init(rst.domotic.unit.UnitConfigType.UnitConfig config)
throws org.openbase.jul.exception.InitializationException,
InterruptedException
AbstractServiceRemoteinit in interface org.openbase.jul.iface.Initializable<rst.domotic.unit.UnitConfigType.UnitConfig>init in class AbstractServiceRemote<PowerStateOperationService,rst.domotic.state.PowerStateType.PowerState>config - org.openbase.jul.exception.InitializationExceptionInterruptedExceptionpublic Collection<PowerStateOperationService> getPowerStateOperationServices()
public Future<rst.domotic.action.ActionFutureType.ActionFuture> setPowerState(rst.domotic.state.PowerStateType.PowerState powerState) throws org.openbase.jul.exception.CouldNotPerformException
setPowerState in interface PowerStateOperationServiceorg.openbase.jul.exception.CouldNotPerformExceptionpublic Future<rst.domotic.action.ActionFutureType.ActionFuture> setPowerState(rst.domotic.state.PowerStateType.PowerState powerState, rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType) throws org.openbase.jul.exception.CouldNotPerformException
setPowerState in interface PowerStateOperationServiceCollectionorg.openbase.jul.exception.CouldNotPerformExceptionprotected rst.domotic.state.PowerStateType.PowerState computeServiceState()
throws org.openbase.jul.exception.CouldNotPerformException
computeServiceState in class AbstractServiceRemote<PowerStateOperationService,rst.domotic.state.PowerStateType.PowerState>org.openbase.jul.exception.CouldNotPerformException - if an underlying service throws an
exceptionpublic rst.domotic.state.PowerStateType.PowerState getPowerState()
throws org.openbase.jul.exception.NotAvailableException
getPowerState in interface PowerStateOperationServiceCollectiongetPowerState in interface PowerStateProviderServiceorg.openbase.jul.exception.NotAvailableExceptionpublic rst.domotic.state.PowerStateType.PowerState getPowerState(rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType unitType)
throws org.openbase.jul.exception.NotAvailableException
getPowerState in interface PowerStateOperationServiceCollectionorg.openbase.jul.exception.NotAvailableExceptionpublic void setInfrastructureFilter(boolean enabled)
setInfrastructureFilter in class AbstractServiceRemote<PowerStateOperationService,rst.domotic.state.PowerStateType.PowerState>enabled - Copyright © 2014–2018 openbase.org. All rights reserved.