org.jscience.mathematics.algebraic.groups
Interface Monoid

All Superinterfaces:
Magma, Semigroup
All Known Subinterfaces:
Group, OrderedGroup
All Known Implementing Classes:
CyclicGroup, DihedralGroup, FiniteGroup, QuaternionGroup

public interface Monoid
extends Semigroup

This interface defines a monoid (a semigroup with an identity element).


Nested Class Summary
static interface Monoid.Member
          This interface defines a member of a monoid.
 
Method Summary
 Monoid.Member identity()
          Returns the identity element.
 boolean isIdentity(Monoid.Member g)
          Returns true if the member is the identity element of this monoid.
 

Method Detail

identity

Monoid.Member identity()
Returns the identity element.

Returns:
DOCUMENT ME!

isIdentity

boolean isIdentity(Monoid.Member g)
Returns true if the member is the identity element of this monoid.

Parameters:
g - a monoid member
Returns:
DOCUMENT ME!