Package com.wibu.CodeMeter
Class CodeMeter.CMUSAGEPERIOD
- java.lang.Object
-
- com.wibu.CodeMeter.CodeMeter.CMUSAGEPERIOD
-
- Enclosing class:
- CodeMeter
public static class CodeMeter.CMUSAGEPERIOD extends java.lang.ObjectCMUSAGEPERIOD returns the two values: the interval length and the start time.Definition for the class CMUSAGEPERIOD corresponding to the c-api struct CMUSAGEPERIOD.
-
-
Field Summary
Fields Modifier and Type Field Description CodeMeter.CMTIMEcmStartTimecontains the start time of Usage Period.longperiodthe period length of the Usage Period in seconds
-
Constructor Summary
Constructors Constructor Description CMUSAGEPERIOD()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanreadFrom(CodeMeter.CMENTRYDATA cmentrydata)This methods fills the current object with the data from an CMENTRYDATA object.
-
-
-
Field Detail
-
period
public long period
the period length of the Usage Period in seconds
-
cmStartTime
public CodeMeter.CMTIME cmStartTime
contains the start time of Usage Period.
-
-
Method Detail
-
readFrom
public boolean readFrom(CodeMeter.CMENTRYDATA cmentrydata)
This methods fills the current object with the data from an CMENTRYDATA object. The CMENTRYDATA.ctrl flag must have the CM_GF_USAGEPERIOD flag set!- Parameters:
cmentrydata- contains an entry data in little endian representation (CodeMeter endian) like it is returned via the call to cmGetInfo(CM_GEI_ENTRYDATA).- Returns:
- true if the conversion succeeded. The only error which may happen is to specify an invalid cmentrydata object (ctrl flag!).
-
-