Class TwoCmres.Cmres.Factory

  • Enclosing class:
    TwoCmres.Cmres

    static class TwoCmres.Cmres.Factory
    extends java.lang.Object
    Factory.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.List<TwoCmres.Cmres> TABLE
      List of good "Cmres" subcycle generators.
    • Constructor Summary

      Constructors 
      Constructor Description
      Factory()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static void add​(long multiply, int rotate, int start)
      Adds an entry to the TABLE.
      (package private) static void checkUnique​(java.util.List<TwoCmres.Cmres> table, long multiply)
      Check the multiply parameter is unique (not contained in any entry in the provided table).
      (package private) TwoCmres.Cmres get​(int index)  
      (package private) int numberOfSubcycleGenerators()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • TABLE

        private static final java.util.List<TwoCmres.Cmres> TABLE
        List of good "Cmres" subcycle generators.
    • Constructor Detail

      • Factory

        Factory()
    • Method Detail

      • numberOfSubcycleGenerators

        int numberOfSubcycleGenerators()
        Returns:
        the number of subcycle generators.
      • get

        TwoCmres.Cmres get​(int index)
        Parameters:
        index - Index into the list of available generators.
        Returns:
        the subcycle generator entry at index index.
      • add

        private static void add​(long multiply,
                                int rotate,
                                int start)
        Adds an entry to the TABLE.
        Parameters:
        multiply - Multiplier.
        rotate - Rotate.
        start - Cycle start.
      • checkUnique

        static void checkUnique​(java.util.List<TwoCmres.Cmres> table,
                                long multiply)
        Check the multiply parameter is unique (not contained in any entry in the provided table).
        Parameters:
        table - the table
        multiply - the multiply parameter