Class ErrorCorrection


  • public final class ErrorCorrection
    extends java.lang.Object
    Error Correction Code for ECC200.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int[] ALOG  
      private static int[] FACTOR_SETS
      Lookup table which factors to use for which number of error correction codewords.
      private static int[][] FACTORS
      Precomputed polynomial factors for ECC 200.
      private static int[] LOG  
      private static int MODULO_VALUE  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ErrorCorrection()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.lang.String createECCBlock​(java.lang.CharSequence codewords, int numECWords)  
      static java.lang.String encodeECC200​(java.lang.String codewords, SymbolInfo symbolInfo)
      Creates the ECC200 error correction for an encoded message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • FACTOR_SETS

        private static final int[] FACTOR_SETS
        Lookup table which factors to use for which number of error correction codewords. See FACTORS.
      • FACTORS

        private static final int[][] FACTORS
        Precomputed polynomial factors for ECC 200.
      • LOG

        private static final int[] LOG
      • ALOG

        private static final int[] ALOG
    • Constructor Detail

      • ErrorCorrection

        private ErrorCorrection()
    • Method Detail

      • encodeECC200

        public static java.lang.String encodeECC200​(java.lang.String codewords,
                                                    SymbolInfo symbolInfo)
        Creates the ECC200 error correction for an encoded message.
        Parameters:
        codewords - the codewords
        symbolInfo - information about the symbol to be encoded
        Returns:
        the codewords with interleaved error correction.
      • createECCBlock

        private static java.lang.String createECCBlock​(java.lang.CharSequence codewords,
                                                       int numECWords)