Class JSci.maths.groups.DihedralGroup
All Packages Class Hierarchy This Package Previous Next Index
Class JSci.maths.groups.DihedralGroup
java.lang.Object
|
+----JSci.maths.Set
|
+----JSci.maths.Group
|
+----JSci.maths.groups.DihedralGroup
- public final class DihedralGroup
- extends Group
The DihedralGroup class represents the nth order dihedral group.
Elements are stored as strings.
-
DihedralGroup(int)
- Constructs a dihedral group.
-
compose(Object, Object)
- The group composition law.
-
identity()
- Returns the identity element.
-
inverse(Object)
- Returns the inverse element.
-
isIdentity(Object)
- Returns true if the element is the identity element of this group.
-
isMember(Object)
- Returns true if the object is a member of this group.
DihedralGroup
public DihedralGroup(int n)
- Constructs a dihedral group.
- Parameters:
- n - order of group
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
identity
public Object identity()
- Returns the identity element.
- Overrides:
- identity in class Group
inverse
public Object inverse(Object a)
- Returns the inverse element.
- Overrides:
- inverse in class Group
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
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