001/*
002 * $Id$
003 */
004
005package edu.jas.gbmod;
006
007
008import edu.jas.gb.GroebnerBaseAbstract;
009import edu.jas.gbufd.GBFactory;
010import edu.jas.structure.GcdRingElem;
011import edu.jas.structure.RingFactory;
012
013
014/**
015 * Module Groebner Bases sequential algorithm. Implements Groebner bases and GB
016 * test.
017 * @author Heinz Kredel
018 * @deprecated use respective methods from GroebnerBaseParallel 
019 */
020@Deprecated
021public class ModGroebnerBasePar<C extends GcdRingElem<C>> extends ModGroebnerBaseSeq<C> {
022
023
024    //private static final Logger logger = LogManager.getLogger(ModGroebnerBasePar.class);
025
026
027    /**
028     * Constructor.
029     * @param cf coefficient ring.
030     */
031    public ModGroebnerBasePar(RingFactory<C> cf) {
032        this(GBFactory.getProxy(cf));
033    }
034
035
036    /**
037     * Constructor.
038     * @param bb Groebner base algorithm.
039     */
040    public ModGroebnerBasePar(GroebnerBaseAbstract<C> bb) {
041        super(bb);
042    }
043
044
045    /**
046     * Cleanup and terminate ThreadPool.
047     */
048    @Override
049    public void terminate() {
050        bb.terminate();
051    }
052
053
054    /**
055     * Cancel ThreadPool.
056     */
057    @Override
058    public int cancel() {
059        return bb.cancel();
060    }
061
062}