public class PowerStateSynchroniserAgent extends AbstractAgentController
| Modifier and Type | Class and Description |
|---|---|
static class |
PowerStateSynchroniserAgent.PowerStateSyncBehaviour
Behavior that determines what the targets do if the source changes and vice
versa.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
SOURCE_BEHAVIOUR_KEY |
static String |
SOURCE_KEY |
static String |
TARGET_BEHAVIOUR_KEY |
static String |
TARGET_KEY |
agentTriggerHolderFIELD_ACTIVATION_STATE, FIELD_AUTOSTARTFIELD_SCOPE| Constructor and Description |
|---|
PowerStateSynchroniserAgent() |
| Modifier and Type | Method and Description |
|---|---|
rst.domotic.unit.UnitConfigType.UnitConfig |
applyConfigUpdate(rst.domotic.unit.UnitConfigType.UnitConfig config) |
protected void |
execute() |
PowerStateSynchroniserAgent.PowerStateSyncBehaviour |
getSourceBehaviour() |
org.openbase.bco.dal.lib.layer.unit.UnitRemote |
getSourceRemote() |
PowerStateSynchroniserAgent.PowerStateSyncBehaviour |
getTargetBehaviour() |
List<org.openbase.bco.dal.lib.layer.unit.UnitRemote> |
getTargetRemotes() |
protected void |
stop() |
getEmphasisState, getNewActionDescription, isAutostartEnabled, setEmphasisStatecancelExecution, deactivate, disable, enable, getActivationState, init, isEnabled, isExecuting, setActivationStateaddDataObserver, addServiceStateObserver, applyAction, applyDataUpdate, applyDataUpdate, generateTransactionId, getId, getLabel, getServices, getTransactionId, getUnitRegistry, getUnitTemplate, getUnitType, init, init, init, notifyDataUpdate, postInit, registerMethods, registerService, removeDataObserver, removeServiceStateObserver, shutdown, toString, verifyAndUpdateAuthoritygetConfig, getConfigField, getConfigField, hasConfigField, supportsConfigFieldactivate, addDataObserver, cloneDataBuilder, getBuilderSetup, getControllerAvailabilityState, getData, getDataBuilder, getDataBuilder, getDataClass, getDataField, getDataFieldDescriptor, getDataFuture, getScope, hasDataField, init, init, init, init, isActive, isDataAvailable, isReady, notifyChange, ping, removeDataObserver, requestStatus, setDataField, setDataField, supportsDataField, updateDataToPublish, validateActivation, validateInitialization, validateMiddleware, waitForAvailabilityState, waitForData, waitForData, waitForMiddlewareclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinitaddDataObserver, addServiceStateObserver, addServiceStateObserver, generateVariablePool, generateVariablePool, generateVariablePool, getGlobalBoundingBoxCenterPoint3d, getGlobalPosition, getGlobalPositionPoint3d, getGlobalRotation, getGlobalRotationQuat4d, getHostUnitConfig, getLatestTransactionId, 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, isBaseUnit, isDalUnit, recordSnapshot, removeDataObserver, removeServiceStateObserver, removeServiceStateObserver, restoreSnapshot, verifyOperationServiceState, verifyOperationServiceStateValueaddDataObserver, getData, getDataClass, getDataFuture, isDataAvailable, removeDataObserver, waitForData, waitForDatasetActivationState, setActivationStategetActivationStateverifyValueRangeverifyEmphasisStategetUpdateMethodNamegetControllerAvailabilityState, getData, getDataClass, notifyChange, waitForAvailabilityStateregisterShutdownHook, registerShutdownHook, shutdownpublic static final String SOURCE_KEY
public static final String TARGET_KEY
public static final String SOURCE_BEHAVIOUR_KEY
public static final String TARGET_BEHAVIOUR_KEY
public PowerStateSynchroniserAgent()
throws org.openbase.jul.exception.CouldNotPerformException
org.openbase.jul.exception.CouldNotPerformExceptionpublic 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.bco.dal.lib.layer.unit.AbstractUnitController<rst.domotic.unit.agent.AgentDataType.AgentData,rst.domotic.unit.agent.AgentDataType.AgentData.Builder>org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionprotected void execute()
throws org.openbase.jul.exception.CouldNotPerformException,
InterruptedException
execute in class org.openbase.bco.dal.lib.layer.unit.AbstractExecutableBaseUnitController<rst.domotic.unit.agent.AgentDataType.AgentData,rst.domotic.unit.agent.AgentDataType.AgentData.Builder>org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionprotected void stop()
stop in class org.openbase.bco.dal.lib.layer.unit.AbstractExecutableBaseUnitController<rst.domotic.unit.agent.AgentDataType.AgentData,rst.domotic.unit.agent.AgentDataType.AgentData.Builder>public org.openbase.bco.dal.lib.layer.unit.UnitRemote getSourceRemote()
public List<org.openbase.bco.dal.lib.layer.unit.UnitRemote> getTargetRemotes()
public PowerStateSynchroniserAgent.PowerStateSyncBehaviour getSourceBehaviour()
public PowerStateSynchroniserAgent.PowerStateSyncBehaviour getTargetBehaviour()
Copyright © 2015–2018 openbase.org. All rights reserved.