public abstract class BasicServiceImpl extends Object implements BasicService<Double>, org.osgi.service.event.EventHandler
| Modifier | Constructor and Description |
|---|---|
protected |
BasicServiceImpl(at.ac.ait.hbs.homer.core.common.enumerations.DeviceType deviceType,
at.ac.ait.hbs.homer.core.common.enumerations.DeviceMessageType deviceMessageType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListenerForAverageValue(ValueChangeListener<Double> listener,
AverageCalculationMode mode,
int flatId) |
void |
addListenerForAverageValue(ValueChangeListener<Double> listener,
AverageCalculationMode mode,
int flatId,
int... excludedDeviceIds) |
void |
addListenerForAverageValue(ValueChangeListener<Double> listener,
AverageCalculationMode mode,
int flatId,
List<Integer> excludedDevices) |
void |
addListenerForAverageValue(ValueChangeListener<Double> listener,
AverageCalculationMode mode,
int flatId,
long calculationPeriod,
TimeUnit timeUnit) |
void |
addListenerForAverageValue(ValueChangeListener<Double> listener,
AverageCalculationMode mode,
int flatId,
long calculationPeriod,
TimeUnit timeUnit,
int... excludedDeviceIds) |
void |
addListenerForAverageValue(ValueChangeListener<Double> listener,
AverageCalculationMode mode,
int flatId,
long calculationPeriod,
TimeUnit timeUnit,
List<Integer> excludedDeviceIds) |
void |
addListenerForEstimateValue(ValueChangeListener<Double> listener,
int flatId) |
void |
addListenerForEstimateValue(ValueChangeListener<Double> listener,
int flatId,
int... excludedDeviceIds) |
void |
addListenerForEstimateValue(ValueChangeListener<Double> listener,
int flatId,
List<Integer> excludedDevices) |
void |
addListenerForEstimateValue(ValueChangeListener<Double> listener,
int flatId,
long calculationPeriod,
TimeUnit timeUnit) |
void |
addListenerForEstimateValue(ValueChangeListener<Double> listener,
int flatId,
long calculationPeriod,
TimeUnit timeUnit,
int... excludedDeviceIds) |
void |
addListenerForEstimateValue(ValueChangeListener<Double> listener,
int flatId,
long calculationPeriod,
TimeUnit timeUnit,
List<Integer> excludedDeviceIds) |
void |
addListenerForLastValue(ValueChangeListener<Double> listener,
AverageCalculationMode mode,
int flatId) |
abstract void |
destroy() |
Double |
estimateValue(int flatId) |
Double |
estimateValue(int flatId,
org.joda.time.DateTime forTimestamp) |
Double |
estimateValue(int flatId,
org.joda.time.DateTime forTimestamp,
int... excludedDeviceIds) |
Double |
estimateValue(int flatId,
org.joda.time.DateTime forTimestamp,
List<Integer> excludedDevices) |
Double |
estimateValue(int flatId,
org.joda.time.DateTime forTimestamp,
long calculationPeriod,
TimeUnit timeUnit) |
Double |
estimateValue(int flatId,
org.joda.time.DateTime forTimestamp,
long calculationPeriod,
TimeUnit timeUnit,
int... excludedDeviceIds) |
Double |
estimateValue(int flatId,
org.joda.time.DateTime forTimestamp,
long calculationPeriod,
TimeUnit timeUnit,
List<Integer> excludedDevices) |
Double |
estimateValue(int flatId,
int... excludedDeviceIds) |
Double |
estimateValue(int flatId,
List<Integer> excludedDevices) |
Double |
estimateValue(int flatId,
long calculationPeriod,
TimeUnit timeUnit) |
Double |
estimateValue(int flatId,
long calculationPeriod,
TimeUnit timeUnit,
int... excludedDeviceIds) |
Double |
estimateValue(int flatId,
long calculationPeriod,
TimeUnit timeUnit,
List<Integer> excludedDevices) |
at.ac.ait.hbs.homer.core.common.DataAccess |
getDataAccess() |
List<Integer> |
getDeviceIds(Collection<at.ac.ait.hbs.homer.core.common.model.DBDevice> devices) |
List<Integer> |
getDeviceIds(int... devices) |
List<Integer> |
getDeviceIds(int flatId) |
List<Integer> |
getDeviceIds(int flatId,
int... excludedDeviceIds) |
List<Integer> |
getDeviceIds(int flatId,
List<Integer> excludedDeviceIds) |
List<Integer> |
getDeviceIds(List<at.ac.ait.hbs.homer.core.common.model.DBDevice> devices) |
List<at.ac.ait.hbs.homer.core.common.model.DBMessage> |
getDeviceMessages(int flatId) |
List<at.ac.ait.hbs.homer.core.common.model.DBMessage> |
getDeviceMessages(int flatId,
int... excludedDeviceIds) |
List<at.ac.ait.hbs.homer.core.common.model.DBMessage> |
getDeviceMessages(int flatId,
List<Integer> excludedDevices) |
List<at.ac.ait.hbs.homer.core.common.model.DBMessage> |
getDeviceMessages(int flatId,
long calculationPeriod,
TimeUnit timeUnit) |
List<at.ac.ait.hbs.homer.core.common.model.DBMessage> |
getDeviceMessages(int flatId,
long calculationPeriod,
TimeUnit timeUnit,
int... excludedDeviceIds) |
List<at.ac.ait.hbs.homer.core.common.model.DBMessage> |
getDeviceMessages(int flatId,
long calculationPeriod,
TimeUnit timeUnit,
List<Integer> excludedDeviceIds) |
Double |
getLastValue(int flatId) |
Double |
getLastValue(int flatId,
AverageCalculationMode mode) |
Double |
getLastValue(int flatId,
AverageCalculationMode mode,
int... excludedDeviceIds) |
Double |
getLastValue(int flatId,
AverageCalculationMode mode,
List<Integer> excludedDevices) |
Double |
getLastValue(int flatId,
int... excludedDeviceIds) |
Double |
getLastValue(int flatId,
List<Integer> excludedDevices) |
protected List<at.ac.ait.hbs.homer.core.common.model.DBMessage> |
getMessagesForPeriod(long duration,
TimeUnit timeUnit,
Integer deviceId) |
protected List<at.ac.ait.hbs.homer.core.common.model.DBMessage> |
getMessagesForPeriod(long duration,
TimeUnit timeUnit,
List<Integer> deviceIds) |
Double |
getValue(int flatId) |
Double |
getValue(int flatId,
AverageCalculationMode mode) |
Double |
getValue(int flatId,
AverageCalculationMode mode,
int... excludedDeviceIds) |
Double |
getValue(int flatId,
AverageCalculationMode mode,
List<Integer> excludedDevices) |
Double |
getValue(int flatId,
AverageCalculationMode mode,
long calculationPeriod,
TimeUnit timeUnit) |
Double |
getValue(int flatId,
AverageCalculationMode mode,
long calculationPeriod,
TimeUnit timeUnit,
int... excludedDeviceIds) |
Double |
getValue(int flatId,
AverageCalculationMode mode,
long calculationPeriod,
TimeUnit timeUnit,
List<Integer> excludedDevices) |
Double |
getValue(int flatId,
int... excludedDeviceIds) |
Double |
getValue(int flatId,
List<Integer> excludedDevices) |
Double |
getValue(int flatId,
long calculationPeriod,
TimeUnit timeUnit) |
Double |
getValue(int flatId,
long calculationPeriod,
TimeUnit timeUnit,
int... excludedDeviceIds) |
Double |
getValue(int flatId,
long calculationPeriod,
TimeUnit timeUnit,
List<Integer> excludedDevices) |
void |
handleEvent(org.osgi.service.event.Event event) |
void |
init() |
void |
removeListener(ValueChangeListener<Double> listener) |
void |
removeListenerForAverageValue(ValueChangeListener<Double> listener) |
void |
removeListenerForEstimateValue(ValueChangeListener<Double> listener) |
void |
removeListenerForLastValue(ValueChangeListener<Double> listener) |
void |
setDataAccess(at.ac.ait.hbs.homer.core.common.DataAccess dataAccess) |
protected BasicServiceImpl(at.ac.ait.hbs.homer.core.common.enumerations.DeviceType deviceType,
at.ac.ait.hbs.homer.core.common.enumerations.DeviceMessageType deviceMessageType)
public void init()
public abstract void destroy()
public at.ac.ait.hbs.homer.core.common.DataAccess getDataAccess()
public void setDataAccess(at.ac.ait.hbs.homer.core.common.DataAccess dataAccess)
public void handleEvent(org.osgi.service.event.Event event)
handleEvent in interface org.osgi.service.event.EventHandlerpublic final void addListenerForLastValue(ValueChangeListener<Double> listener, AverageCalculationMode mode, int flatId)
addListenerForLastValue in interface ListenerForLastValueHandler<Double>public final void removeListenerForLastValue(ValueChangeListener<Double> listener)
removeListenerForLastValue in interface ListenerForLastValueHandler<Double>public final void addListenerForAverageValue(ValueChangeListener<Double> listener, AverageCalculationMode mode, int flatId)
addListenerForAverageValue in interface ListenerForAverageValueHandler<Double>public final void addListenerForAverageValue(ValueChangeListener<Double> listener, AverageCalculationMode mode, int flatId, int... excludedDeviceIds)
addListenerForAverageValue in interface ListenerForAverageValueHandler<Double>public final void addListenerForAverageValue(ValueChangeListener<Double> listener, AverageCalculationMode mode, int flatId, List<Integer> excludedDevices)
addListenerForAverageValue in interface ListenerForAverageValueHandler<Double>public final void addListenerForAverageValue(ValueChangeListener<Double> listener, AverageCalculationMode mode, int flatId, long calculationPeriod, TimeUnit timeUnit)
addListenerForAverageValue in interface ListenerForAverageValueHandler<Double>public final void addListenerForAverageValue(ValueChangeListener<Double> listener, AverageCalculationMode mode, int flatId, long calculationPeriod, TimeUnit timeUnit, int... excludedDeviceIds)
addListenerForAverageValue in interface ListenerForAverageValueHandler<Double>public final void addListenerForAverageValue(ValueChangeListener<Double> listener, AverageCalculationMode mode, int flatId, long calculationPeriod, TimeUnit timeUnit, List<Integer> excludedDeviceIds)
addListenerForAverageValue in interface ListenerForAverageValueHandler<Double>public final void removeListenerForAverageValue(ValueChangeListener<Double> listener)
removeListenerForAverageValue in interface ListenerForAverageValueHandler<Double>public final void addListenerForEstimateValue(ValueChangeListener<Double> listener, int flatId)
addListenerForEstimateValue in interface ListenerForEstimateValueHandler<Double>public final void addListenerForEstimateValue(ValueChangeListener<Double> listener, int flatId, int... excludedDeviceIds)
addListenerForEstimateValue in interface ListenerForEstimateValueHandler<Double>public final void addListenerForEstimateValue(ValueChangeListener<Double> listener, int flatId, List<Integer> excludedDevices)
addListenerForEstimateValue in interface ListenerForEstimateValueHandler<Double>public final void addListenerForEstimateValue(ValueChangeListener<Double> listener, int flatId, long calculationPeriod, TimeUnit timeUnit)
addListenerForEstimateValue in interface ListenerForEstimateValueHandler<Double>public final void addListenerForEstimateValue(ValueChangeListener<Double> listener, int flatId, long calculationPeriod, TimeUnit timeUnit, int... excludedDeviceIds)
addListenerForEstimateValue in interface ListenerForEstimateValueHandler<Double>public final void addListenerForEstimateValue(ValueChangeListener<Double> listener, int flatId, long calculationPeriod, TimeUnit timeUnit, List<Integer> excludedDeviceIds)
addListenerForEstimateValue in interface ListenerForEstimateValueHandler<Double>public final void removeListenerForEstimateValue(ValueChangeListener<Double> listener)
removeListenerForEstimateValue in interface ListenerForEstimateValueHandler<Double>public final void removeListener(ValueChangeListener<Double> listener)
removeListener in interface ListenerForAverageValueHandler<Double>removeListener in interface ListenerForEstimateValueHandler<Double>removeListener in interface ListenerForLastValueHandler<Double>public final List<Integer> getDeviceIds(int flatId)
getDeviceIds in interface BasicService<Double>public final List<Integer> getDeviceIds(int flatId, List<Integer> excludedDeviceIds)
getDeviceIds in interface BasicService<Double>public final List<Integer> getDeviceIds(int flatId, int... excludedDeviceIds)
getDeviceIds in interface BasicService<Double>public final List<Integer> getDeviceIds(Collection<at.ac.ait.hbs.homer.core.common.model.DBDevice> devices)
getDeviceIds in interface BasicService<Double>public final List<Integer> getDeviceIds(List<at.ac.ait.hbs.homer.core.common.model.DBDevice> devices)
getDeviceIds in interface BasicService<Double>public final List<Integer> getDeviceIds(int... devices)
getDeviceIds in interface BasicService<Double>public final List<at.ac.ait.hbs.homer.core.common.model.DBMessage> getDeviceMessages(int flatId)
getDeviceMessages in interface BasicService<Double>public final List<at.ac.ait.hbs.homer.core.common.model.DBMessage> getDeviceMessages(int flatId, int... excludedDeviceIds)
getDeviceMessages in interface BasicService<Double>public final List<at.ac.ait.hbs.homer.core.common.model.DBMessage> getDeviceMessages(int flatId, List<Integer> excludedDevices)
getDeviceMessages in interface BasicService<Double>public final List<at.ac.ait.hbs.homer.core.common.model.DBMessage> getDeviceMessages(int flatId, long calculationPeriod, TimeUnit timeUnit)
getDeviceMessages in interface BasicService<Double>public final List<at.ac.ait.hbs.homer.core.common.model.DBMessage> getDeviceMessages(int flatId, long calculationPeriod, TimeUnit timeUnit, int... excludedDeviceIds)
getDeviceMessages in interface BasicService<Double>public List<at.ac.ait.hbs.homer.core.common.model.DBMessage> getDeviceMessages(int flatId, long calculationPeriod, TimeUnit timeUnit, List<Integer> excludedDeviceIds)
getDeviceMessages in interface BasicService<Double>public Double getLastValue(int flatId)
getLastValue in interface BasicService<Double>public Double getLastValue(int flatId, int... excludedDeviceIds)
getLastValue in interface BasicService<Double>public Double getLastValue(int flatId, List<Integer> excludedDevices)
getLastValue in interface BasicService<Double>public Double getLastValue(int flatId, AverageCalculationMode mode)
getLastValue in interface BasicService<Double>public Double getLastValue(int flatId, AverageCalculationMode mode, int... excludedDeviceIds)
getLastValue in interface BasicService<Double>public Double getLastValue(int flatId, AverageCalculationMode mode, List<Integer> excludedDevices)
getLastValue in interface BasicService<Double>public Double getValue(int flatId)
getValue in interface BasicService<Double>public Double getValue(int flatId, int... excludedDeviceIds)
getValue in interface BasicService<Double>public Double getValue(int flatId, List<Integer> excludedDevices)
getValue in interface BasicService<Double>public Double getValue(int flatId, long calculationPeriod, TimeUnit timeUnit)
getValue in interface BasicService<Double>public Double getValue(int flatId, long calculationPeriod, TimeUnit timeUnit, int... excludedDeviceIds)
getValue in interface BasicService<Double>public Double getValue(int flatId, long calculationPeriod, TimeUnit timeUnit, List<Integer> excludedDevices)
getValue in interface BasicService<Double>public final Double getValue(int flatId, AverageCalculationMode mode)
getValue in interface BasicService<Double>public final Double getValue(int flatId, AverageCalculationMode mode, List<Integer> excludedDevices)
getValue in interface BasicService<Double>public final Double getValue(int flatId, AverageCalculationMode mode, int... excludedDeviceIds)
getValue in interface BasicService<Double>public final Double getValue(int flatId, AverageCalculationMode mode, long calculationPeriod, TimeUnit timeUnit)
getValue in interface BasicService<Double>public final Double getValue(int flatId, AverageCalculationMode mode, long calculationPeriod, TimeUnit timeUnit, int... excludedDeviceIds)
getValue in interface BasicService<Double>public Double getValue(int flatId, AverageCalculationMode mode, long calculationPeriod, TimeUnit timeUnit, List<Integer> excludedDevices)
getValue in interface BasicService<Double>public final Double estimateValue(int flatId)
estimateValue in interface BasicService<Double>public final Double estimateValue(int flatId, List<Integer> excludedDevices)
estimateValue in interface BasicService<Double>public final Double estimateValue(int flatId, int... excludedDeviceIds)
estimateValue in interface BasicService<Double>public final Double estimateValue(int flatId, long calculationPeriod, TimeUnit timeUnit)
estimateValue in interface BasicService<Double>public final Double estimateValue(int flatId, long calculationPeriod, TimeUnit timeUnit, int... excludedDeviceIds)
estimateValue in interface BasicService<Double>public final Double estimateValue(int flatId, long calculationPeriod, TimeUnit timeUnit, List<Integer> excludedDevices)
estimateValue in interface BasicService<Double>public final Double estimateValue(int flatId, org.joda.time.DateTime forTimestamp)
estimateValue in interface BasicService<Double>public final Double estimateValue(int flatId, org.joda.time.DateTime forTimestamp, List<Integer> excludedDevices)
estimateValue in interface BasicService<Double>public final Double estimateValue(int flatId, org.joda.time.DateTime forTimestamp, int... excludedDeviceIds)
estimateValue in interface BasicService<Double>public final Double estimateValue(int flatId, org.joda.time.DateTime forTimestamp, long calculationPeriod, TimeUnit timeUnit)
estimateValue in interface BasicService<Double>public final Double estimateValue(int flatId, org.joda.time.DateTime forTimestamp, long calculationPeriod, TimeUnit timeUnit, int... excludedDeviceIds)
estimateValue in interface BasicService<Double>public Double estimateValue(int flatId, org.joda.time.DateTime forTimestamp, long calculationPeriod, TimeUnit timeUnit, List<Integer> excludedDevices)
estimateValue in interface BasicService<Double>protected final List<at.ac.ait.hbs.homer.core.common.model.DBMessage> getMessagesForPeriod(long duration, TimeUnit timeUnit, Integer deviceId)
Copyright © 2017. All rights reserved.