Class JSci.maths.groups.CyclicGroup
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JSci.maths.groups.CyclicGroup

java.lang.Object
   |
   +----JSci.maths.Set
           |
           +----JSci.maths.Group
                   |
                   +----JSci.maths.groups.CyclicGroup

public final class CyclicGroup
extends Group
The CyclicGroup class represents the nth order cyclic group. Elements are stored as strings.

Constructor Index

 o CyclicGroup(int)
Constructs a cyclic group.

Method Index

 o compose(Object, Object)
The group composition law.
 o identity()
Returns the identity element.
 o inverse(Object)
Returns the inverse element.
 o isIdentity(Object)
Returns true if the element is the identity element of this group.
 o isMember(Object)
Returns true if the object is a member of this group.

Constructors

 o CyclicGroup
  public CyclicGroup(int n)
Constructs a cyclic group.
Parameters:
n - order of group

Methods

 o compose
  public Object compose(Object a,
                        Object b)
The group composition law.
Parameters:
a - a group element
b - a group element
Overrides:
compose in class Group
 o identity
  public Object identity()
Returns the identity element.
Overrides:
identity in class Group
 o inverse
  public Object inverse(Object a)
Returns the inverse element.
Overrides:
inverse in class Group
 o isMember
  public boolean isMember(Object a)
Returns true if the object is a member of this group.
Parameters:
a - an object
Overrides:
isMember in class Group
 o isIdentity
  public boolean isIdentity(Object a)
Returns true if the element is the identity element of this group.
Parameters:
a - a group element
Overrides:
isIdentity in class Group

All Packages  Class Hierarchy  This Package  Previous  Next  Index