Class ModuloSelectionTask
java.lang.Object
solvers.linearSystemSolver.ModuloSelectionTask
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionModuloSelectionTask(int bitLength) Initialises a ModuloSelectionTask object by setting the desired modulo bitlength. -
Method Summary
Modifier and TypeMethodDescriptioncall()This method performs the actual selection and return the modulo.
-
Constructor Details
-
ModuloSelectionTask
public ModuloSelectionTask(int bitLength) Initialises a ModuloSelectionTask object by setting the desired modulo bitlength.- Parameters:
bitLength-
-
-
Method Details
-
call
This method performs the actual selection and return the modulo.- Specified by:
callin interfaceCallable<BigInteger>- Returns:
- The prime modulo as a BigInteger
- Throws:
Exception- Thrown when selection failed.
-