public class PowerValueManagerDao extends com.bitplan.jaxb.ManagerImpl<PowerValueManager,PowerValue> implements PowerValueManager
| Constructor and Description |
|---|
PowerValueManagerDao() |
PowerValueManagerDao(VZDB lvzdb)
construct me with a Volkszähler Database
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(PowerValue prop)
add a property to the PowerValue
|
List<PowerValue> |
get(Calendar from,
Calendar to,
int channel,
PowerValue.ChannelMode channelMode)
get the values
|
List<PowerValue> |
get(String isoFrom,
String isoTo,
int channel,
PowerValue.ChannelMode channelMode)
get values base on String time stamps
|
PowerValue |
getCurrent(int channel)
get the current PowerValue for the given channel
|
List<PowerValue> |
getElements() |
com.bitplan.jaxb.JaxbFactoryApi<PowerValueManager> |
getFactory() |
static com.bitplan.jaxb.JaxbFactoryApi<PowerValueManager> |
getFactoryStatic() |
List<PowerValue> |
getPower(Calendar from,
Calendar to,
int channel)
get power Values for the given period from the given channel
|
static double |
getPower(PowerValue chargeValue,
PowerValue prevValue)
get the powerValue based on the difference of two charge values
|
List<PowerValue> |
getPowerFromCounter(Calendar from,
Calendar to,
int channel)
get PowerValues from the two calendar instances
|
List<PowerValue> |
getPowerValues() |
VZDB |
getVzdb() |
static PowerValueManagerDao |
getVZInstance()
get an instance based on the configured VZDB
|
static PowerValueManagerDao |
getVZInstance(VZDB pvzdb)
get an instance based on the given VZDB
|
void |
setPowerValues(List<PowerValue> PowerValue) |
void |
setVzdb(VZDB vzdb) |
asJson, asXML, getXmlFile, getXmlPath, save, saveAsXML, setXmlFile, setXmlPath, sortclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected transient VZDB vzdb
public PowerValueManagerDao()
public PowerValueManagerDao(VZDB lvzdb)
lvzdb - public List<PowerValue> getPowerValues()
public VZDB getVzdb()
getVzdb in interface PowerValueManagerpublic void setVzdb(VZDB vzdb)
setVzdb in interface PowerValueManagerpublic void setPowerValues(List<PowerValue> PowerValue)
public List<PowerValue> getElements()
getElements in interface com.bitplan.persistence.Manager<PowerValueManager,PowerValue>public static com.bitplan.jaxb.JaxbFactoryApi<PowerValueManager> getFactoryStatic()
public com.bitplan.jaxb.JaxbFactoryApi<PowerValueManager> getFactory()
getFactory in interface com.bitplan.jaxb.JaxbPersistenceApi<PowerValueManager>public List<PowerValue> get(String isoFrom, String isoTo, int channel, PowerValue.ChannelMode channelMode) throws Exception
get in interface PowerValueManagervz - isoFrom - isoTo - channel - channelMode - Exceptionpublic List<PowerValue> get(Calendar from, Calendar to, int channel, PowerValue.ChannelMode channelMode)
from - to - channel - public static double getPower(PowerValue chargeValue, PowerValue prevValue)
chargeValue - prevValue - public List<PowerValue> getPower(Calendar from, Calendar to, int channel)
from - to - channel - public PowerValue getCurrent(int channel)
channel - public List<PowerValue> getPowerFromCounter(Calendar from, Calendar to, int channel)
from - to - channel - public void add(PowerValue prop)
prop - public static PowerValueManagerDao getVZInstance() throws Exception
Exceptionpublic static PowerValueManagerDao getVZInstance(VZDB pvzdb) throws Exception
pvzdb - ExceptionCopyright © 2018 BITPlan GmbH. All rights reserved.