Package com.blackhillsoftware.smf.smf30
Class UsageDataSection
java.lang.Object
com.blackhillsoftware.smf.Data
com.blackhillsoftware.smf.SmfData
com.blackhillsoftware.smf.smf30.UsageDataSection
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic UsageDataSection
create
(byte[] Data, int offset, int length) create is intended for internal use only.smf30ucs()
SMF30UCS as a Duration.long
SMF30UCS raw value.double
SMF30UCS in seconds.smf30uct()
SMF30UCT as a Duration.long
SMF30UCT raw value.double
SMF30UCT in seconds.int
smf30udf()
SMF30UDF value.int
smf30ufg()
SMF30UFG value.smf30upi()
SMF30UPI value.smf30upn()
SMF30UPN value.smf30upo()
SMF30UPO value.smf30upq()
SMF30UPQ value.smf30upv()
SMF30UPV value.byte[]
smf30urd()
SMF30URD data.Get SMF30URD 64 bit integer value as a BigInteger.long
Get SMF30URD 64 bit integer valueGet SMF30URD in secondsdouble
Get SMF30URD floating point valueboolean
smf30uun()
Return true ifSMF30UUN
bit insmf30ufg()
is set.Methods inherited from class com.blackhillsoftware.smf.SmfData
createSection, getTriplet
-
Field Details
-
SMF30UUN
public static final int SMF30UUNConstant: 0x80 = 128- See Also:
-
-
Method Details
-
smf30urdCpuTime
Get SMF30URD in seconds- Returns:
- double SMF30URD CPU time in seconds
-
smf30urdFloatingPoint
public double smf30urdFloatingPoint()Get SMF30URD floating point value- Returns:
- double SMF30URD
-
smf30urdBinary
public long smf30urdBinary()Get SMF30URD 64 bit integer value- Returns:
- long SMF30URD
- Throws:
IllegalArgumentException
- If the value of SMF30URD exceeds the maximum value of a signed 64 bit integer (i.e. the high order bit is set in SMF30URD). Usesmf30urdBigInteger()
if this is possible.
-
smf30urdBigInteger
Get SMF30URD 64 bit integer value as a BigInteger.smf30urdBinary()
may provide better performance if the value will not exceed the maximum value for a signed long.- Returns:
- SMF30URD as BigInteger
-
smf30upo
SMF30UPO value.- Returns:
- String SMF30UPO value
-
smf30upn
SMF30UPN value.- Returns:
- String SMF30UPN value
-
smf30upv
SMF30UPV value.- Returns:
- String SMF30UPV value
-
smf30upq
SMF30UPQ value.- Returns:
- String SMF30UPQ value
-
smf30upi
SMF30UPI value.- Returns:
- String SMF30UPI value
-
smf30uct
SMF30UCT as a Duration.- Returns:
- Duration SMF30UCT
- See Also:
-
smf30uctSeconds
public double smf30uctSeconds()SMF30UCT in seconds.- Returns:
- double SMF30UCT converted to seconds
-
smf30uctRawValue
public long smf30uctRawValue()SMF30UCT raw value.- Returns:
- long SMF30UCT value
-
smf30ucs
SMF30UCS as a Duration.- Returns:
- Duration SMF30UCS
- See Also:
-
smf30ucsSeconds
public double smf30ucsSeconds()SMF30UCS in seconds.- Returns:
- double SMF30UCS converted to seconds
-
smf30ucsRawValue
public long smf30ucsRawValue()SMF30UCS raw value.- Returns:
- long SMF30UCS value
-
smf30urd
public byte[] smf30urd()SMF30URD data.- Returns:
- byte[] SMF30URD data
-
smf30udf
public int smf30udf()SMF30UDF value.- Returns:
- int SMF30UDF value
-
smf30ufg
public int smf30ufg()SMF30UFG value.- Returns:
- int SMF30UFG value
-
smf30uun
public boolean smf30uun()Return true ifSMF30UUN
bit insmf30ufg()
is set.- Returns:
- boolean SMF30UUN bit is set in smf30ufg()
SMF30UUN = 0x80
-
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
-