|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JSci.maths.groups.FiniteGroup JSci.maths.groups.DihedralGroup
public final class DihedralGroup
The DihedralGroup class represents the nth dihedral group. Elements are represented by rotations and reflections.
Nested Class Summary | |
---|---|
(package private) class |
DihedralGroup.Member
|
Field Summary |
---|
Fields inherited from class JSci.maths.groups.FiniteGroup |
---|
order |
Constructor Summary | |
---|---|
DihedralGroup(int n)
Constructs a dihedral group. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Returns true if this group is isomorphic to another. |
Group.Member[] |
getElements()
Returns the elements of this group. |
int |
hashCode()
|
Monoid.Member |
identity()
Returns the identity element. |
boolean |
isIdentity(Monoid.Member a)
Returns true if the element is the identity element of this group. |
boolean |
isInverse(Group.Member a,
Group.Member b)
Returns true if one element is the inverse of the other. |
java.lang.String |
toString()
|
Methods inherited from class JSci.maths.groups.FiniteGroup |
---|
order |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DihedralGroup(int n)
n
- the number of rotations/reflectionsMethod Detail |
---|
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public Group.Member[] getElements()
getElements
in class FiniteGroup
public Monoid.Member identity()
public boolean isIdentity(Monoid.Member a)
a
- a group elementpublic boolean isInverse(Group.Member a, Group.Member b)
a
- a group elementb
- a group element
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |