Package com.ed.data.history
Class MonthDataItem
java.lang.Object
com.ed.data.history.ADataItem
com.ed.data.history.MonthDataItem
- All Implemented Interfaces:
Comparable<MonthDataItem>
History Month data block
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMonthDataItem
(byte[] ba) Create object representing month History dataCreate object representing empty month data -
Method Summary
Modifier and TypeMethodDescriptionint
int
Compare datesfloat
Get Self Consumption (compensation) energyfloat
Get Grid Consumption energy counterfloat
Get Grid Feed In energy countergetInstance
(byte[] b) Factory, create objectgetInstance
(Date d) Factory, create empty objectfloat
Get Inverter consumption energyfloat
Get Inverter Feed In energyfloat
getQAcc()
Get battery Ampere-hour counterGet data block namelong
getTsEnd()
Get end of current time periodlong
Get start of current time periodsetNextTimePeriod
(int amount) Add timeMethods inherited from class com.ed.data.history.ADataItem
equals, getDlByts, getId, getS16Value, getS32Value, getS8Value, getTime, getTimestamp, getU16Value, getU32Value, getU8Value, initDataItem, isValid, qXToFloat, toString, writeCs
-
Field Details
-
byteArrayLen
public static final int byteArrayLen- See Also:
-
-
Constructor Details
-
MonthDataItem
public MonthDataItem(byte[] ba) Create object representing month History data- Parameters:
ba
- embedded data (raw)
-
MonthDataItem
Create object representing empty month data- Parameters:
d
- time
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<MonthDataItem>
-
compareTo
Description copied from class:ADataItem
Compare dates -
setNextTimePeriod
Description copied from class:ADataItem
Add time- Specified by:
setNextTimePeriod
in classADataItem
- Parameters:
amount
- of time periods to add- Returns:
- new date
-
getInvInjEnergy
Get Inverter Feed In energy- Returns:
- Energy [Wh]
- Throws:
Exception
- wrong parameters or no inverter data available
-
getInvConsEnergy
Get Inverter consumption energy- Returns:
- Energy [Wh]
- Throws:
Exception
- wrong parameters or no inverter data available
-
getGridInjEnergy
Get Grid Feed In energy counter- Returns:
- Energy [Wh]
- Throws:
Exception
- wrong parameters or no inverter data available
-
getGridConsEnergy
Get Grid Consumption energy counter- Returns:
- Energy [Wh]
- Throws:
Exception
- wrong parameters or no inverter data available
-
getCompensationEnergy
Get Self Consumption (compensation) energy- Returns:
- Energy [Wh]
- Throws:
Exception
- wrong parameters or no inverter data available
-
getQAcc
Get battery Ampere-hour counter- Returns:
- Battery Ampere-hour [Ah]
- Throws:
Exception
- wrong parameters or no inverter data available
-
getTsStart
public long getTsStart()Description copied from class:ADataItem
Get start of current time period- Specified by:
getTsStart
in classADataItem
- Returns:
- time period start, time stamp [ms]
-
getTsEnd
public long getTsEnd()Description copied from class:ADataItem
Get end of current time period -
getTabName
Description copied from class:ADataItem
Get data block name- Specified by:
getTabName
in classADataItem
- Returns:
- name
-
getInstance
Description copied from class:ADataItem
Factory, create object- Specified by:
getInstance
in classADataItem
- Parameters:
b
- raw data- Returns:
- current data item
-
getInstance
Description copied from class:ADataItem
Factory, create empty object- Specified by:
getInstance
in classADataItem
- Parameters:
d
- by time- Returns:
- current data item
-