|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GroupI
Represents a group with an identity, and addition operator.
Method Summary | |
---|---|
java.lang.Number |
add(java.lang.Number a,
java.lang.Number b)
Get sum of the numbers |
void |
addStandardConstants(JEP j)
adds the standard constants for this group |
void |
addStandardFunctions(JEP j)
adds the standard function for this group |
boolean |
equals(java.lang.Number a,
java.lang.Number b)
whether two numbers are equal |
java.lang.Number |
getInverse(java.lang.Number num)
Get Inverse of a number |
NumberFactory |
getNumberFactory()
returns a number factory for creating group elements from strings. |
java.lang.Number |
getZERO()
Returns the identity element under + |
boolean |
isConstantPoly(java.lang.Number a)
For groups like rings of polynomials this determins if a given element is a constant polynomial. |
java.lang.Number |
sub(java.lang.Number a,
java.lang.Number b)
Get the difference of the numbers. |
java.lang.Number |
valueOf(java.lang.String s)
returns number given by the string |
Method Detail |
---|
java.lang.Number getZERO()
java.lang.Number getInverse(java.lang.Number num)
java.lang.Number add(java.lang.Number a, java.lang.Number b)
java.lang.Number sub(java.lang.Number a, java.lang.Number b)
boolean equals(java.lang.Number a, java.lang.Number b)
java.lang.Number valueOf(java.lang.String s)
NumberFactory getNumberFactory()
Group
do not need to
implement this method.
void addStandardConstants(JEP j)
void addStandardFunctions(JEP j)
boolean isConstantPoly(java.lang.Number a)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |