edu.jas.gb
Class GBProxy<C extends GcdRingElem<C>>

java.lang.Object
  extended by edu.jas.gb.GroebnerBaseAbstract<C>
      extended by edu.jas.gb.GBProxy<C>
All Implemented Interfaces:
GroebnerBase<C>, java.io.Serializable

public class GBProxy<C extends GcdRingElem<C>>
extends GroebnerBaseAbstract<C>

Groebner bases parallel proxy.

Author:
Heinz Kredel
See Also:
Serialized Form

Field Summary
 GroebnerBaseAbstract<C> e1
          GB engines.
 GroebnerBaseAbstract<C> e2
           
protected  java.util.concurrent.ExecutorService pool
          Thread pool.
 
Fields inherited from class edu.jas.gb.GroebnerBaseAbstract
blas, red, strategy
 
Constructor Summary
GBProxy(GroebnerBaseAbstract<C> e1, GroebnerBaseAbstract<C> e2)
          Proxy constructor.
 
Method Summary
 int cancel()
          Cancel ThreadPool.
 java.util.List<GenPolynomial<C>> GB(int modv, java.util.List<GenPolynomial<C>> F)
          Groebner base.
 void terminate()
          Cleanup and terminate ThreadPool.
 java.lang.String toString()
          Get the String representation with GB engines.
 
Methods inherited from class edu.jas.gb.GroebnerBaseAbstract
commonZeroTest, extGB, extGB, GB, isGB, isGB, isReductionMatrix, isReductionMatrix, minimalExtendedGB, minimalGB, normalizeMatrix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

e1

public final GroebnerBaseAbstract<C extends GcdRingElem<C>> e1
GB engines.


e2

public final GroebnerBaseAbstract<C extends GcdRingElem<C>> e2

pool

protected java.util.concurrent.ExecutorService pool
Thread pool.

Constructor Detail

GBProxy

public GBProxy(GroebnerBaseAbstract<C> e1,
               GroebnerBaseAbstract<C> e2)
Proxy constructor.

Method Detail

toString

public java.lang.String toString()
Get the String representation with GB engines.

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

terminate

public void terminate()
Cleanup and terminate ThreadPool.

Overrides:
terminate in class GroebnerBaseAbstract<C extends GcdRingElem<C>>

cancel

public int cancel()
Cancel ThreadPool.

Overrides:
cancel in class GroebnerBaseAbstract<C extends GcdRingElem<C>>

GB

public java.util.List<GenPolynomial<C>> GB(int modv,
                                           java.util.List<GenPolynomial<C>> F)
Groebner base.

Parameters:
modv - module variable number.
F - polynomial list.
Returns:
GB(F) a Groebner base of F.