JSci.maths.groups
Interface AbelianGroup

All Known Subinterfaces:
BanachSpace, Field, Module, Ring, VectorSpace
All Known Implementing Classes:
ComplexField, ComplexPolynomialRing, CyclicGroup, HilbertSpace, IntegerRing, RealField, RealPolynomialRing

public interface AbelianGroup

This interface defines an abelian group.


Nested Class Summary
static interface AbelianGroup.Member
          This interface defines a member of an abelian group.
 
Method Summary
 boolean isNegative(AbelianGroup.Member a, AbelianGroup.Member b)
          Returns true if one member is the negative of the other.
 boolean isZero(AbelianGroup.Member g)
          Returns true if the member is the identity element of this group.
 AbelianGroup.Member zero()
          Returns the identity element.
 

Method Detail

zero

public AbelianGroup.Member zero()
Returns the identity element.


isZero

public boolean isZero(AbelianGroup.Member g)
Returns true if the member is the identity element of this group.

Parameters:
g - a group member

isNegative

public boolean isNegative(AbelianGroup.Member a,
                          AbelianGroup.Member b)
Returns true if one member is the negative of the other.

Parameters:
a - a group member
b - a group member