Package edu.jas.gbufd

Class SGBFactory

java.lang.Object
edu.jas.gbufd.SGBFactory

public class SGBFactory extends Object
Solvable Groebner bases algorithms factory. Select appropriate Solvable Groebner bases engine based on the coefficient types.

Usage: To create objects that implement the SolvableGroebnerBase interface use the SGBFactory. It will select an appropriate implementation based on the types of polynomial coefficients C. The method to obtain an implementation is getImplementation(). It returns an object of a class which implements the SolvableGroebnerBase interface, more precisely an object of abstract class SolvableGroebnerBaseAbstract.

 SolvableGroebnerBase<CT> engine;
 engine = SGBFactory.<CT> getImplementation(cofac);
 c = engine.GB(A);
 

For example, if the coefficient type is BigInteger, the usage looks like

 BigInteger cofac = new BigInteger();
 SolvableGroebnerBase<BigInteger> engine;
 engine = SGBFactory.getImplementation(cofac);
 c = engine.GB(A);
 
See Also: