Class ExtendedGaloisField

Class ExtendedGaloisField

java.lang.Object
   |
   +----GaloisField
           |
           +----ExtendedGaloisField

public class ExtendedGaloisField
extends GaloisField

Constructor Index

 o ExtendedGaloisField(GaloisField, char, int)
 o ExtendedGaloisField(GaloisPolynomial)

Method Index

 o divide(int, int)
Returns a / b.
 o getAlfa()
Returns the character used for alpha in a polynomial representation.
 o getAlfaPower(int)
Returns a power of the primitive element.
 o getBase()
Returns the base field.
 o getModuloPoly()
 o isBase()
Is this field a base field?.
 o minus(int, int)
Returns a - b.
 o parse(String, int)
Converts a string to a galois element.
 o plusmin(int, int, boolean)
 o product(int, int)
Returns the product of two galois elements.
 o sum(int, int)
Returns the sum of two galois elements.
 o toBase(int)
Converts a galois element from 'this' field to the base field.
 o toString()
Returns a String representation of this field.
 o toSuper(int)
Converts a galois element from the base field to 'this' field.
 o valueString(int)
Returns a String representation for the given element.

Constructors

 o ExtendedGaloisField
  public ExtendedGaloisField(GaloisField newbase,
                             char newalfa,
                             int newpwr) throws GaloisException
 o ExtendedGaloisField
  public ExtendedGaloisField(GaloisPolynomial irrpoly) throws GaloisException

Methods

 o isBase
  public boolean isBase()
Is this field a base field?.
Overrides:
isBase in class GaloisField
 o getBase
  public GaloisField getBase()
Returns the base field.
Overrides:
getBase in class GaloisField
 o plusmin
  public int plusmin(int a,
                     int b,
                     boolean add)
 o sum
  public int sum(int a,
                 int b)
Returns the sum of two galois elements.
Overrides:
sum in class GaloisField
 o minus
  public int minus(int a,
                   int b)
Returns a - b.
Overrides:
minus in class GaloisField
 o product
  public int product(int a,
                     int b)
Returns the product of two galois elements.
Overrides:
product in class GaloisField
 o divide
  public int divide(int a,
                    int b) throws GaloisException
Returns a / b.
Overrides:
divide in class GaloisField
 o toString
  public String toString()
Returns a String representation of this field.
Overrides:
toString in class GaloisField
 o toBase
  public int toBase(int element) throws GaloisException
Converts a galois element from 'this' field to the base field.
Overrides:
toBase in class GaloisField
 o toSuper
  public int toSuper(int a) throws GaloisException
Converts a galois element from the base field to 'this' field.
Overrides:
toSuper in class GaloisField
 o getModuloPoly
  public GaloisPolynomial getModuloPoly()
 o valueString
  public String valueString(int a)
Returns a String representation for the given element.
Overrides:
valueString in class GaloisField
 o parse
  public int parse(String strg,
                   int onempty) throws GaloisException
Converts a string to a galois element.
Overrides:
parse in class GaloisField
 o getAlfa
  public char getAlfa()
Returns the character used for alpha in a polynomial representation.
Overrides:
getAlfa in class GaloisField
 o getAlfaPower
  public int getAlfaPower(int pwr)
Returns a power of the primitive element.
Overrides:
getAlfaPower in class GaloisField