Package com.ed.data
Class ErrorRecord
java.lang.Object
com.ed.data.ErrorRecord
- All Implemented Interfaces:
Comparable
Inverter error representation
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Error record size (bytes) in ring buffer -
Constructor Summary
ConstructorDescriptionErrorRecord
(byte[] buf, int six, int len) Create object representing single error record from byte arrayErrorRecord
(long bf1, long bf2, long wf1) Create object representing single error record -
Method Summary
-
Field Details
-
RecordSize
public static final int RecordSizeError record size (bytes) in ring buffer- See Also:
-
-
Constructor Details
-
ErrorRecord
public ErrorRecord(long bf1, long bf2, long wf1) Create object representing single error record- Parameters:
bf1
- error bit field 1bf2
- error bit field 2wf1
- warning bit field
-
ErrorRecord
Create object representing single error record from byte array- Parameters:
buf
- byte buffer (raw embedded data)six
- start indexlen
- error record length- Throws:
RuntimeException
-
-
Method Details
-
getErrorCodes
Get errors records list- Returns:
- list of error codes (example : "E160")
-
getDTime
Get error record time stamp- Returns:
- error time
-
getRingBufIndex
public int getRingBufIndex()Get record index (embedded ring buffer)- Returns:
- error index
-
compareTo
- Specified by:
compareTo
in interfaceComparable
-
toString
-