java.lang.Object
com.blackhillsoftware.smf.Data
com.blackhillsoftware.smf.SmfData
com.blackhillsoftware.smf.smf70.subtype1.CpuDataSection

public final class CpuDataSection extends SmfData
  • Field Details

  • Method Details

    • smf70wat

      public Duration smf70wat()
      SMF70WAT as a Duration.
      Returns:
      Duration SMF70WAT
      See Also:
    • smf70watSeconds

      public double smf70watSeconds()
      SMF70WAT in seconds.
      Returns:
      double SMF70WAT converted to seconds
    • smf70watRawValue

      public long smf70watRawValue()
      SMF70WAT raw value.
      Returns:
      long SMF70WAT raw value
    • smf70cid

      public int smf70cid()
      SMF70CID value.
      Returns:
      int SMF70CID value
    • smf70cnf

      public int smf70cnf()
      SMF70CNF value.
      Returns:
      int SMF70CNF value
    • smf70mti

      public boolean smf70mti()
      Return true if SMF70MTI bit in smf70cnf() is set.
      Returns:
      boolean SMF70MTI bit is set in smf70cnf()

      SMF70MTI = 0x10

    • smf70dci

      public boolean smf70dci()
      Return true if SMF70DCI bit in smf70cnf() is set.
      Returns:
      boolean SMF70DCI bit is set in smf70cnf()

      SMF70DCI = 0x08

    • smf70par

      public boolean smf70par()
      Return true if SMF70PAR bit in smf70cnf() is set.
      Returns:
      boolean SMF70PAR bit is set in smf70cnf()

      SMF70PAR = 0x04

    • smf70vac

      public boolean smf70vac()
      Return true if SMF70VAC bit in smf70cnf() is set.
      Returns:
      boolean SMF70VAC bit is set in smf70cnf()

      SMF70VAC = 0x02

    • smf70sta

      public boolean smf70sta()
      Return true if SMF70STA bit in smf70cnf() is set.
      Returns:
      boolean SMF70STA bit is set in smf70cnf()

      SMF70STA = 0x01

    • smf70rv3

      public int smf70rv3()
      SMF70RV3 value.
      Returns:
      int SMF70RV3 value
    • smf70ser

      public int smf70ser()
      3 byte SMF70SER value.
      Returns:
      int SMF70SER value
    • smf70typ

      public int smf70typ()
      SMF70TYP value.
      Returns:
      int SMF70TYP value
    • smf70slh

      public long smf70slh()
      SMF70SLH value.
      Returns:
      long SMF70SLH value
    • smf70tpi

      public long smf70tpi()
      SMF70TPI value.
      Returns:
      long SMF70TPI value
    • smf70vfs

      public long smf70vfs()
      SMF70VFS value.
      Returns:
      long SMF70VFS value
    • smf70v

      public int smf70v()
      SMF70V value.
      Returns:
      int SMF70V value
    • smf70von

      public boolean smf70von()
      Return true if SMF70VON bit in smf70v() is set.
      Returns:
      boolean SMF70VON bit is set in smf70v()

      SMF70VON = 0x80

    • smf70cpm

      public String smf70cpm()
      SMF70CPM value.
      Returns:
      String SMF70CPM value
    • smf70pat

      public Duration smf70pat()
      SMF70PAT as a Duration.
      Returns:
      Duration SMF70PAT
      See Also:
    • smf70patSeconds

      public double smf70patSeconds()
      SMF70PAT in seconds.
      Returns:
      double SMF70PAT converted to seconds
    • smf70patRawValue

      public long smf70patRawValue()
      SMF70PAT raw value.
      Returns:
      long SMF70PAT raw value
    • smf70tcb

      public long smf70tcb()
      SMF70TCB value, throws exception if SMF70TCB overflows 64 bit signed integer.
      Returns:
      long SMF70TCB
      Throws:
      IllegalArgumentException - If the value of SMF70TCB exceeds the maximum value of a signed 64 bit integer (i.e. the high order bit is set in SMF70TCB). Use smf70tcbAsBigInteger() if this is possible.
    • smf70tcbAsBigInteger

      public BigInteger smf70tcbAsBigInteger()
      SMF70TCB value as a BigInteger.

      smf70tcb() may provide better performance if the value will not exceed the maximum value for a signed long.

      Returns:
      BigInteger SMF70TCB
    • smf70srb

      public long smf70srb()
      SMF70SRB value, throws exception if SMF70SRB overflows 64 bit signed integer.
      Returns:
      long SMF70SRB
      Throws:
      IllegalArgumentException - If the value of SMF70SRB exceeds the maximum value of a signed 64 bit integer (i.e. the high order bit is set in SMF70SRB). Use smf70srbAsBigInteger() if this is possible.
    • smf70srbAsBigInteger

      public BigInteger smf70srbAsBigInteger()
      SMF70SRB value as a BigInteger.

      smf70srb() may provide better performance if the value will not exceed the maximum value for a signed long.

      Returns:
      BigInteger SMF70SRB
    • smf70nio

      public long smf70nio()
      SMF70NIO value, throws exception if SMF70NIO overflows 64 bit signed integer.
      Returns:
      long SMF70NIO
      Throws:
      IllegalArgumentException - If the value of SMF70NIO exceeds the maximum value of a signed 64 bit integer (i.e. the high order bit is set in SMF70NIO). Use smf70nioAsBigInteger() if this is possible.
    • smf70nioAsBigInteger

      public BigInteger smf70nioAsBigInteger()
      SMF70NIO value as a BigInteger.

      smf70nio() may provide better performance if the value will not exceed the maximum value for a signed long.

      Returns:
      BigInteger SMF70NIO
    • smf70sig

      public long smf70sig()
      SMF70SIG value, throws exception if SMF70SIG overflows 64 bit signed integer.
      Returns:
      long SMF70SIG
      Throws:
      IllegalArgumentException - If the value of SMF70SIG exceeds the maximum value of a signed 64 bit integer (i.e. the high order bit is set in SMF70SIG). Use smf70sigAsBigInteger() if this is possible.
    • smf70sigAsBigInteger

      public BigInteger smf70sigAsBigInteger()
      SMF70SIG value as a BigInteger.

      smf70sig() may provide better performance if the value will not exceed the maximum value for a signed long.

      Returns:
      BigInteger SMF70SIG
    • smf70wtd

      public long smf70wtd()
      SMF70WTD value, throws exception if SMF70WTD overflows 64 bit signed integer.
      Returns:
      long SMF70WTD
      Throws:
      IllegalArgumentException - If the value of SMF70WTD exceeds the maximum value of a signed 64 bit integer (i.e. the high order bit is set in SMF70WTD). Use smf70wtdAsBigInteger() if this is possible.
    • smf70wtdAsBigInteger

      public BigInteger smf70wtdAsBigInteger()
      SMF70WTD value as a BigInteger.

      smf70wtd() may provide better performance if the value will not exceed the maximum value for a signed long.

      Returns:
      BigInteger SMF70WTD
    • smf70wts

      public long smf70wts()
      SMF70WTS value.
      Returns:
      long SMF70WTS value
    • smf70wtu

      public long smf70wtu()
      SMF70WTU value.
      Returns:
      long SMF70WTU value
    • smf70wti

      public long smf70wti()
      SMF70WTI value.
      Returns:
      long SMF70WTI value
    • smf70tcp

      public boolean smf70tcp()
      Return true if smf70typ() equals SMF70TCP.
      Returns:
      boolean smf70typ() equals SMF70TCP

      SMF70TCP = 0x00

    • smf70tif

      public boolean smf70tif()
      Return true if smf70typ() equals SMF70TIF.
      Returns:
      boolean smf70typ() equals SMF70TIF

      SMF70TIF = 0x01

    • smf70tsu

      public boolean smf70tsu()
      Return true if smf70typ() equals SMF70TSU.
      Returns:
      boolean smf70typ() equals SMF70TSU

      SMF70TSU = 0x02

    • create

      public static CpuDataSection create(byte[] Data, int offset, int length)
      create is intended for internal use only. Instances of this section are created by the parent record or section.
      Parameters:
      Data - Array of bytes containing data for this section
      offset - Offset of this section in the data
      length - length of the section