Class ModuloSelectionTask

java.lang.Object
solvers.linearSystemSolver.ModuloSelectionTask
All Implemented Interfaces:
Callable<BigInteger>

public class ModuloSelectionTask extends Object implements Callable<BigInteger>
The ModuloSelectionTask performs the selection of a prime modulo of a given size. It is used to parallelise the time-consuming selection process, as several ModuloSelectionTasks can be invoked simultaneously.
Author:
Michail Makaronidis, 2010
  • Constructor Details

    • ModuloSelectionTask

      public ModuloSelectionTask(int bitLength)
      Initialises a ModuloSelectionTask object by setting the desired modulo bitlength.
      Parameters:
      bitLength -
  • Method Details

    • call

      public BigInteger call() throws Exception
      This method performs the actual selection and return the modulo.
      Specified by:
      call in interface Callable<BigInteger>
      Returns:
      The prime modulo as a BigInteger
      Throws:
      Exception - Thrown when selection failed.