edu.jas.structure
Interface AbelianGroupElem<C extends AbelianGroupElem<C>>

All Superinterfaces:
java.lang.Cloneable, java.lang.Comparable<C>, Element<C>, java.io.Serializable
All Known Subinterfaces:
AlgebraElem<A,C>, GcdRingElem<C>, ModulElem<M,C>, RingElem<C>, StarRingElem<C>
All Known Implementing Classes:
AlgebraicNumber, BigComplex, BigDecimal, BigInteger, BigOctonion, BigQuaternion, BigRational, GenMatrix, GenPolynomial, GenSolvablePolynomial, GenVector, Local, Local, ModInteger, Quotient, Quotient, Residue, Residue

public interface AbelianGroupElem<C extends AbelianGroupElem<C>>
extends Element<C>

Abelian group element interface. Defines the additive methods.

Author:
Heinz Kredel
Type parameter:
C element type.

Method Summary
 C abs()
          Absolute value of this.
 boolean isZERO()
          Test if this is zero.
 C negate()
          Negate this.
 int signum()
          Signum.
 C subtract(C S)
          Subtract S from this.
 C sum(C S)
          Sum of this and S.
 
Methods inherited from interface edu.jas.structure.Element
clone, compareTo, equals, hashCode
 

Method Detail

isZERO

boolean isZERO()
Test if this is zero.

Returns:
true if this is 0, else false.

signum

int signum()
Signum.

Returns:
the sign of this.

sum

C sum(C S)
Sum of this and S.

Parameters:
S -
Returns:
this + S.

subtract

C subtract(C S)
Subtract S from this.

Parameters:
S -
Returns:
this - S.

negate

C negate()
Negate this.

Returns:
- this.

abs

C abs()
Absolute value of this.

Returns:
|this|.