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 void
addPermutation(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)
void
completeGroup()
Starts with an incomplete set of group generators in `permutations` and expands it to include all possible combinations.java.lang.String
getGroupTable()
int
getOrder()
static int
getOrder(java.util.List<java.lang.Integer> permutation)
java.util.List<java.lang.Integer>
getPermutation(int index)
int
hashCode()
java.util.Iterator<java.util.List<java.lang.Integer>>
iterator()
java.lang.String
toString()
-
-
-
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:
toString
in 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:
hashCode
in classjava.lang.Object
-
iterator
public java.util.Iterator<java.util.List<java.lang.Integer>> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<java.util.List<java.lang.Integer>>
-
-