Package com.ed.data

Class 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 array
      ErrorRecord​(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 stamp
      java.util.List<java.lang.String> getErrorCodes()
      Get errors records list
      int getRingBufIndex()
      Get record index (embedded ring buffer)
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 1
        bf2 - error bit field 2
        wf1 - 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 index
        len - 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 interface java.lang.Comparable
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object