Class CpuDataSection
java.lang.Object
com.blackhillsoftware.smf.SmfData
com.blackhillsoftware.smf.smf70.subtype1.CpuDataSection
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Constant: 0x08 = 8static final int
Constant: 0x10 = 16static final int
Constant: 0x04 = 4static final int
Constant: 0x01 = 1static final int
Constant: 0x00 = 0static final int
Constant: 0x01 = 1static final int
Constant: 0x02 = 2static final int
Constant: 0x02 = 2static final int
Constant: 0x80 = 128 -
Method Summary
Modifier and TypeMethodDescriptionstatic CpuDataSection
create
(byte[] Data, int offset, int length) create is intended for internal use only.int
smf70cid()
SMF70CID value.int
smf70cnf()
SMF70CNF value.smf70cpm()
SMF70CPM value.boolean
smf70dci()
Return true ifSMF70DCI
bit insmf70cnf()
is set.boolean
smf70mti()
Return true ifSMF70MTI
bit insmf70cnf()
is set.long
smf70nio()
SMF70NIO value, throws exception if SMF70NIO overflows 64 bit signed integer.SMF70NIO value as a BigInteger.boolean
smf70par()
Return true ifSMF70PAR
bit insmf70cnf()
is set.smf70pat()
SMF70PAT as a Duration.long
SMF70PAT raw value.double
SMF70PAT in seconds.int
smf70rv3()
SMF70RV3 value.int
smf70ser()
3 byte SMF70SER value.long
smf70sig()
SMF70SIG value, throws exception if SMF70SIG overflows 64 bit signed integer.SMF70SIG value as a BigInteger.long
smf70slh()
SMF70SLH value.long
smf70srb()
SMF70SRB value, throws exception if SMF70SRB overflows 64 bit signed integer.SMF70SRB value as a BigInteger.boolean
smf70sta()
Return true ifSMF70STA
bit insmf70cnf()
is set.long
smf70tcb()
SMF70TCB value, throws exception if SMF70TCB overflows 64 bit signed integer.SMF70TCB value as a BigInteger.boolean
smf70tcp()
Return true ifsmf70typ()
equalsSMF70TCP
.boolean
smf70tif()
Return true ifsmf70typ()
equalsSMF70TIF
.long
smf70tpi()
SMF70TPI value.boolean
smf70tsu()
Return true ifsmf70typ()
equalsSMF70TSU
.int
smf70typ()
SMF70TYP value.int
smf70v()
SMF70V value.boolean
smf70vac()
Return true ifSMF70VAC
bit insmf70cnf()
is set.long
smf70vfs()
SMF70VFS value.boolean
smf70von()
smf70wat()
SMF70WAT as a Duration.long
SMF70WAT raw value.double
SMF70WAT in seconds.long
smf70wtd()
SMF70WTD value, throws exception if SMF70WTD overflows 64 bit signed integer.SMF70WTD value as a BigInteger.long
smf70wti()
SMF70WTI value.long
smf70wts()
SMF70WTS value.long
smf70wtu()
SMF70WTU value.
-
Field Details
-
SMF70MTI
public static final int SMF70MTIConstant: 0x10 = 16- See Also:
-
SMF70DCI
public static final int SMF70DCIConstant: 0x08 = 8- See Also:
-
SMF70PAR
public static final int SMF70PARConstant: 0x04 = 4- See Also:
-
SMF70VAC
public static final int SMF70VACConstant: 0x02 = 2- See Also:
-
SMF70STA
public static final int SMF70STAConstant: 0x01 = 1- See Also:
-
SMF70VON
public static final int SMF70VONConstant: 0x80 = 128- See Also:
-
SMF70TCP
public static final int SMF70TCPConstant: 0x00 = 0- See Also:
-
SMF70TIF
public static final int SMF70TIFConstant: 0x01 = 1- See Also:
-
SMF70TSU
public static final int SMF70TSUConstant: 0x02 = 2- See Also:
-
-
Method Details
-
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 ifSMF70MTI
bit insmf70cnf()
is set.- Returns:
- boolean SMF70MTI bit is set in smf70cnf()
SMF70MTI = 0x10
-
smf70dci
public boolean smf70dci()Return true ifSMF70DCI
bit insmf70cnf()
is set.- Returns:
- boolean SMF70DCI bit is set in smf70cnf()
SMF70DCI = 0x08
-
smf70par
public boolean smf70par()Return true ifSMF70PAR
bit insmf70cnf()
is set.- Returns:
- boolean SMF70PAR bit is set in smf70cnf()
SMF70PAR = 0x04
-
smf70vac
public boolean smf70vac()Return true ifSMF70VAC
bit insmf70cnf()
is set.- Returns:
- boolean SMF70VAC bit is set in smf70cnf()
SMF70VAC = 0x02
-
smf70sta
public boolean smf70sta()Return true ifSMF70STA
bit insmf70cnf()
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()- Returns:
- boolean SMF70VON bit is set in smf70v()
SMF70VON = 0x80
-
smf70cpm
SMF70CPM value.- Returns:
- String SMF70CPM value
-
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). Usesmf70tcbAsBigInteger()
if this is possible.
-
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). Usesmf70srbAsBigInteger()
if this is possible.
-
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). Usesmf70nioAsBigInteger()
if this is possible.
-
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). Usesmf70sigAsBigInteger()
if this is possible.
-
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). Usesmf70wtdAsBigInteger()
if this is possible.
-
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 ifsmf70typ()
equalsSMF70TCP
.- Returns:
- boolean
smf70typ()
equals SMF70TCPSMF70TCP = 0x00
-
smf70tif
public boolean smf70tif()Return true ifsmf70typ()
equalsSMF70TIF
.- Returns:
- boolean
smf70typ()
equals SMF70TIFSMF70TIF = 0x01
-
smf70tsu
public boolean smf70tsu()Return true ifsmf70typ()
equalsSMF70TSU
.- Returns:
- boolean
smf70typ()
equals SMF70TSUSMF70TSU = 0x02
-
create
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 sectionoffset
- Offset of this section in the datalength
- length of the section
-