public class BrightnessStateFutionProvider extends org.openbase.jul.pattern.ObservableImpl<Double> implements org.openbase.bco.dal.lib.layer.service.provider.BrightnessStateProviderService
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_MEASUREMENT_TIME_WINDOW
Measurement time window within the max, min and average updates are
performed.
|
protected org.slf4j.Logger |
logger |
static double |
UNKNOWN_VALUE |
latestValueHash, LOCK, observers, unchangedValueFilter| Constructor and Description |
|---|
BrightnessStateFutionProvider(Collection<rst.domotic.unit.UnitConfigType.UnitConfig> brightnessUnitConfigs) |
BrightnessStateFutionProvider(Collection<rst.domotic.unit.UnitConfigType.UnitConfig> brightnessUnitConfigs,
long measurementTimeWindow) |
| Modifier and Type | Method and Description |
|---|---|
Double |
getBrightnessAverageState() |
Map<Long,Double> |
getBrightnessLastStates() |
Double |
getBrightnessMaxState() |
Double |
getBrightnessMinState() |
List<org.openbase.bco.dal.remote.unit.BrightnessSensorRemote> |
getBrightnessSensorList() |
rst.domotic.state.BrightnessStateType.BrightnessState |
getBrightnessState() |
long |
getMeasurementTimeWindow() |
getValue, isValueAvailable, notifyObservers, waitForValueaddObserver, notifyObservers, removeObserver, shutdownclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyAction, getUpdateMethodNamepublic static final long DEFAULT_MEASUREMENT_TIME_WINDOW
public static final double UNKNOWN_VALUE
protected final org.slf4j.Logger logger
public BrightnessStateFutionProvider(Collection<rst.domotic.unit.UnitConfigType.UnitConfig> brightnessUnitConfigs) throws org.openbase.jul.exception.InstantiationException, InterruptedException
org.openbase.jul.exception.InstantiationExceptionInterruptedExceptionpublic BrightnessStateFutionProvider(Collection<rst.domotic.unit.UnitConfigType.UnitConfig> brightnessUnitConfigs, long measurementTimeWindow) throws org.openbase.jul.exception.InstantiationException, InterruptedException
org.openbase.jul.exception.InstantiationExceptionInterruptedExceptionpublic rst.domotic.state.BrightnessStateType.BrightnessState getBrightnessState()
throws org.openbase.jul.exception.NotAvailableException
getBrightnessState in interface org.openbase.bco.dal.lib.layer.service.provider.BrightnessStateProviderServiceorg.openbase.jul.exception.NotAvailableExceptionpublic Double getBrightnessMinState()
public Double getBrightnessMaxState()
public Double getBrightnessAverageState()
public long getMeasurementTimeWindow()
public List<org.openbase.bco.dal.remote.unit.BrightnessSensorRemote> getBrightnessSensorList()
Copyright © 2015–2017 openbase.org. All rights reserved.