All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JSci.maths.groups.DihedralGroup

java.lang.Object
   |
   +----JSci.maths.DiscreteSet
           |
           +----JSci.maths.groups.DiscreteGroup
                   |
                   +----JSci.maths.groups.DihedralGroup

public final class DihedralGroup
extends DiscreteGroup
The DihedralGroup class represents the nth order dihedral group. Elements are represented by strings.


Constructor Index

 o DihedralGroup(int)
Constructs a dihedral group.

Method Index

 o compose(Object, Object)
The group composition law.
 o identity()
Returns the identity element.
 o inverse(Object)
Returns the inverse element.

Constructors

 o DihedralGroup
 public DihedralGroup(int n)
Constructs a dihedral 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 DiscreteGroup
 o identity
 public Object identity()
Returns the identity element.

Overrides:
identity in class DiscreteGroup
 o inverse
 public Object inverse(Object a)
Returns the inverse element.

Overrides:
inverse in class DiscreteGroup

All Packages  Class Hierarchy  This Package  Previous  Next  Index