public class LocationObserver extends Object implements org.openbase.jul.pattern.Observer<rst.domotic.unit.location.LocationDataType.LocationData>
| Modifier and Type | Class and Description |
|---|---|
class |
LocationObserver.SmoothPowerConsumption |
| Constructor and Description |
|---|
LocationObserver() |
| Modifier and Type | Method and Description |
|---|---|
double |
getLastValue() |
void |
play(double avgConsumption) |
static void |
setThresholds(double normal,
double high,
double extreme,
int time,
double step,
double smoothingFactor) |
void |
update(org.openbase.jul.pattern.Observable<rst.domotic.unit.location.LocationDataType.LocationData> source,
rst.domotic.unit.location.LocationDataType.LocationData data) |
void |
updateConsumption(double consumption) |
public LocationObserver()
throws org.openbase.jul.exception.InstantiationException
org.openbase.jul.exception.InstantiationExceptionpublic void update(org.openbase.jul.pattern.Observable<rst.domotic.unit.location.LocationDataType.LocationData> source,
rst.domotic.unit.location.LocationDataType.LocationData data)
throws Exception
update in interface org.openbase.jul.pattern.Observer<rst.domotic.unit.location.LocationDataType.LocationData>Exceptionpublic void updateConsumption(double consumption)
public void play(double avgConsumption)
public static void setThresholds(double normal,
double high,
double extreme,
int time,
double step,
double smoothingFactor)
public double getLastValue()
Copyright © 2014–2017 openbase.org. All rights reserved.