org.jscience.mathematics.algebraic.groups
Class FiniteGroup

java.lang.Object
  extended by org.jscience.mathematics.algebraic.groups.FiniteGroup
All Implemented Interfaces:
Group, Magma, Monoid, Semigroup
Direct Known Subclasses:
CyclicGroup, DihedralGroup, QuaternionGroup

public abstract class FiniteGroup
extends java.lang.Object
implements Group

Superclass for finite groups.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jscience.mathematics.algebraic.groups.Group
Group.Member
 
Field Summary
protected  int order
           
 
Constructor Summary
FiniteGroup(int n)
          Constructs a finite group.
 
Method Summary
abstract  Group.Member[] getElements()
          Returns the elements of this group.
 int order()
          Returns the order (the number of group elements) of this group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jscience.mathematics.algebraic.groups.Group
isInverse
 
Methods inherited from interface org.jscience.mathematics.algebraic.groups.Monoid
identity, isIdentity
 

Field Detail

order

protected final int order
Constructor Detail

FiniteGroup

public FiniteGroup(int n)
Constructs a finite group.

Parameters:
n - the order of the group
Method Detail

getElements

public abstract Group.Member[] getElements()
Returns the elements of this group.


order

public final int order()
Returns the order (the number of group elements) of this group.