Class SymmetricGroup
java.lang.Object
dk.jonaslindstrom.ruffini.permutations.structures.SymmetricGroup
- All Implemented Interfaces:
Group<Permutation>,Monoid<Permutation>,Semigroup<Permutation>,Set<Permutation>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(Permutation a, Permutation b) Returnstrueif and only if a = b as elements of this set.identity()Return the identity element of this monoid.Return the inverse a-1.multiply(Permutation a, Permutation b) Return the result of the product ab in this group.toString()Returns a human-readable string representation of an element in this set.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface dk.jonaslindstrom.ruffini.common.abstractions.Monoid
isIdentity, power
-
Constructor Details
-
SymmetricGroup
public SymmetricGroup(int n)
-
-
Method Details
-
identity
Description copied from interface:MonoidReturn the identity element of this monoid.- Specified by:
identityin interfaceMonoid<Permutation>
-
multiply
Description copied from interface:SemigroupReturn the result of the product ab in this group.- Specified by:
multiplyin interfaceSemigroup<Permutation>
-
toString
Description copied from interface:SetReturns a human-readable string representation of an element in this set.- Specified by:
toStringin interfaceSet<Permutation>
-
equals
Description copied from interface:SetReturnstrueif and only if a = b as elements of this set.- Specified by:
equalsin interfaceSet<Permutation>
-
invert
Description copied from interface:GroupReturn the inverse a-1.- Specified by:
invertin interfaceGroup<Permutation>
-
toString
-