Class CodeMeter.CMUSAGEPERIOD

  • Enclosing class:
    CodeMeter

    public static class CodeMeter.CMUSAGEPERIOD
    extends java.lang.Object
    CMUSAGEPERIOD 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.CMTIME cmStartTime
      contains the start time of Usage Period.
      long period
      the 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
      boolean readFrom​(CodeMeter.CMENTRYDATA cmentrydata)
      This methods fills the current object with the data from an CMENTRYDATA object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
    • Constructor Detail

      • CMUSAGEPERIOD

        public CMUSAGEPERIOD()
    • 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!).