Class PermutationGroup
- java.lang.Object
-
- org.biojava.nbio.structure.symmetry.core.PermutationGroup
-
- All Implemented Interfaces:
java.lang.Iterable<java.util.List<java.lang.Integer>>
public class PermutationGroup extends java.lang.Object implements java.lang.Iterable<java.util.List<java.lang.Integer>>- Author:
- Peter
-
-
Constructor Summary
Constructors Constructor Description PermutationGroup()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPermutation(java.util.List<java.lang.Integer> permutation)static java.util.List<java.lang.Integer>combine(java.util.List<java.lang.Integer> permutation1, java.util.List<java.lang.Integer> permutation2)voidcompleteGroup()Starts with an incomplete set of group generators in `permutations` and expands it to include all possible combinations.java.lang.StringgetGroupTable()intgetOrder()static intgetOrder(java.util.List<java.lang.Integer> permutation)java.util.List<java.lang.Integer>getPermutation(int index)inthashCode()java.util.Iterator<java.util.List<java.lang.Integer>>iterator()java.lang.StringtoString()
-
-
-
Method Detail
-
addPermutation
public void addPermutation(java.util.List<java.lang.Integer> permutation)
-
getPermutation
public java.util.List<java.lang.Integer> getPermutation(int index)
-
getOrder
public int getOrder()
-
completeGroup
public void completeGroup()
Starts with an incomplete set of group generators in `permutations` and expands it to include all possible combinations. Ways to complete group: - combinations of permutations pi x pj - combinations with itself p^k
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
combine
public static java.util.List<java.lang.Integer> combine(java.util.List<java.lang.Integer> permutation1, java.util.List<java.lang.Integer> permutation2)
-
getOrder
public static int getOrder(java.util.List<java.lang.Integer> permutation)
-
getGroupTable
public java.lang.String getGroupTable()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
iterator
public java.util.Iterator<java.util.List<java.lang.Integer>> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<java.util.List<java.lang.Integer>>
-
-