/*
 * $Id$
 */

package edu.jas.gbmod;


import edu.jas.gb.GroebnerBaseAbstract;
import edu.jas.gbufd.GBFactory;
import edu.jas.structure.GcdRingElem;
import edu.jas.structure.RingFactory;


/**
 * Module Groebner Bases sequential algorithm. Implements Groebner bases and GB
 * test.
 * @author Heinz Kredel
 * @deprecated use respective methods from GroebnerBaseParallel 
 */
@Deprecated
public class ModGroebnerBasePar<C extends GcdRingElem<C>> extends ModGroebnerBaseSeq<C> {


    //private static final Logger logger = LogManager.getLogger(ModGroebnerBasePar.class);


    /**
     * Constructor.
     * @param cf coefficient ring.
     */
    public ModGroebnerBasePar(RingFactory<C> cf) {
        this(GBFactory.getProxy(cf));
    }


    /**
     * Constructor.
     * @param bb Groebner base algorithm.
     */
    public ModGroebnerBasePar(GroebnerBaseAbstract<C> bb) {
        super(bb);
    }


    /**
     * Cleanup and terminate ThreadPool.
     */
    @Override
    public void terminate() {
        bb.terminate();
    }


    /**
     * Cancel ThreadPool.
     */
    @Override
    public int cancel() {
        return bb.cancel();
    }

}
