Package edu.jas.gbufd

Class SGBFactory


  • public class SGBFactory
    extends java.lang.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);
     
    Author:
    Heinz Kredel
    See Also:
    GroebnerBase, SolvableGroebnerBase, GBAlgorithmBuilder