Package com.ed.data
Class ErrorRecord
- java.lang.Object
-
- com.ed.data.ErrorRecord
-
- All Implemented Interfaces:
java.lang.Comparable
public class ErrorRecord extends java.lang.Object implements java.lang.Comparable
Inverter error representation
-
-
Field Summary
Fields Modifier and Type Field Description static int
RecordSize
Error record size (bytes) in ring buffer
-
Constructor Summary
Constructors Constructor Description ErrorRecord(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(java.lang.Object t)
java.util.Date
getDTime()
Get error record time stampjava.util.List<java.lang.String>
getErrorCodes()
Get errors records listint
getRingBufIndex()
Get record index (embedded ring buffer)java.lang.String
toString()
-
-
-
Field Detail
-
RecordSize
public static final int RecordSize
Error record size (bytes) in ring buffer- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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
public ErrorRecord(byte[] buf, int six, int len) throws java.lang.RuntimeException
Create object representing single error record from byte array- Parameters:
buf
- byte buffer (raw embedded data)six
- start indexlen
- error record length- Throws:
java.lang.RuntimeException
-
-
Method Detail
-
getErrorCodes
public java.util.List<java.lang.String> getErrorCodes()
Get errors records list- Returns:
- list of error codes (example : "E160")
-
getDTime
public java.util.Date getDTime()
Get error record time stamp- Returns:
- error time
-
getRingBufIndex
public int getRingBufIndex()
Get record index (embedded ring buffer)- Returns:
- error index
-
compareTo
public int compareTo(java.lang.Object t)
- Specified by:
compareTo
in interfacejava.lang.Comparable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-