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