Package com.ed.data

Class ErrorRecord

java.lang.Object
com.ed.data.ErrorRecord
All Implemented Interfaces:
Comparable

public class ErrorRecord extends Object implements Comparable
Inverter error representation
  • Field Details

    • RecordSize

      public static final int RecordSize
      Error 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 1
      bf2 - error bit field 2
      wf1 - warning bit field
    • ErrorRecord

      public ErrorRecord(byte[] buf, int six, int len) throws RuntimeException
      Create object representing single error record from byte array
      Parameters:
      buf - byte buffer (raw embedded data)
      six - start index
      len - error record length
      Throws:
      RuntimeException
  • Method Details

    • getErrorCodes

      public List<String> getErrorCodes()
      Get errors records list
      Returns:
      list of error codes (example : "E160")
    • getDTime

      public 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(Object t)
      Specified by:
      compareTo in interface Comparable
    • toString

      public String toString()
      Overrides:
      toString in class Object