001/* 002 * $Id: ModGroebnerBaseSeq.java 5872 2018-07-20 16:01:46Z kredel $ 003 */ 004 005package edu.jas.gbmod; 006 007 008import java.util.List; 009 010import edu.jas.gb.GroebnerBaseAbstract; 011import edu.jas.gbufd.GBFactory; 012import edu.jas.poly.GenPolynomial; 013import edu.jas.structure.GcdRingElem; 014import edu.jas.structure.RingFactory; 015 016 017/** 018 * Module Groebner Bases sequential algorithm. Implements Groebner bases and GB 019 * test. 020 * @author Heinz Kredel 021 * @deprecated use respective methods from GroebnerBaseSeq 022 */ 023@Deprecated 024public class ModGroebnerBaseSeq<C extends GcdRingElem<C>> extends ModGroebnerBaseAbstract<C> { 025 026 027 //private static final Logger logger = LogManager.getLogger(ModGroebnerBaseSeq.class); 028 029 030 /** 031 * Used Groebner base algorithm. 032 */ 033 protected final GroebnerBaseAbstract<C> bb; 034 035 036 /** 037 * Constructor. 038 * @param cf coefficient ring. 039 */ 040 public ModGroebnerBaseSeq(RingFactory<C> cf) { 041 this(GBFactory.getImplementation(cf)); 042 } 043 044 045 /** 046 * Constructor. 047 * @param bb Groebner base algorithm. 048 */ 049 public ModGroebnerBaseSeq(GroebnerBaseAbstract<C> bb) { 050 this.bb = bb; 051 } 052 053 054 /** 055 * Module Groebner base test. 056 */ 057 public boolean isGB(int modv, List<GenPolynomial<C>> F) { 058 return bb.isGB(modv, F); 059 } 060 061 062 /** 063 * Groebner base using pairlist class. 064 */ 065 public List<GenPolynomial<C>> GB(int modv, List<GenPolynomial<C>> F) { 066 return bb.GB(modv, F); 067 } 068 069}