Class PermutationGroup

java.lang.Object
org.biojava.nbio.structure.symmetry.core.PermutationGroup
All Implemented Interfaces:
Iterable<List<Integer>>

public class PermutationGroup extends Object implements Iterable<List<Integer>>
Author:
Peter
  • Constructor Details

    • PermutationGroup

      public PermutationGroup()
  • Method Details

    • addPermutation

      public void addPermutation(List<Integer> permutation)
    • getPermutation

      public List<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 String toString()
      Overrides:
      toString in class Object
    • combine

      public static List<Integer> combine(List<Integer> permutation1, List<Integer> permutation2)
    • getOrder

      public static int getOrder(List<Integer> permutation)
    • getGroupTable

      public String getGroupTable()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • iterator

      public Iterator<List<Integer>> iterator()
      Specified by:
      iterator in interface Iterable<List<Integer>>