Package edu.jas.gbufd

Class GBFactory


  • public class GBFactory
    extends java.lang.Object
    Groebner bases algorithms factory. Select appropriate Groebner bases engine based on the coefficient types.

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

     GroebnerBase<CT> engine;
     engine = GBFactory.<CT> getImplementation(cofac);
     c = engine.GB(A);
     

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

     BigInteger cofac = new BigInteger();
     GroebnerBase<BigInteger> engine;
     engine = GBFactory.getImplementation(cofac);
     c = engine.GB(A);
     
    Author:
    Heinz Kredel
    See Also:
    GroebnerBase, GBAlgorithmBuilder