edu.jas.poly
Class Monomial<C extends RingElem<C>>

java.lang.Object
  extended by edu.jas.poly.Monomial<C>

public final class Monomial<C extends RingElem<C>>
extends java.lang.Object

Monomial class. Represents pairs of exponent vectors and coefficients. Adaptor for Map.Entry.

Author:
Heinz Kredel

Field Summary
 C c
          Coefficient of monomial.
 ExpVector e
          Exponent of monomial.
 
Constructor Summary
Monomial(ExpVector e, C c)
          Constructor of monomial.
Monomial(java.util.Map.Entry<ExpVector,C> me)
          Constructor of monomial.
 
Method Summary
 C coefficient()
          Getter for coefficient.
 ExpVector exponent()
          Getter for exponent.
 java.lang.String toString()
          String representation of Monomial.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

e

public final ExpVector e
Exponent of monomial.


c

public final C extends RingElem<C> c
Coefficient of monomial.

Constructor Detail

Monomial

public Monomial(java.util.Map.Entry<ExpVector,C> me)
Constructor of monomial.

Parameters:
me - a MapEntry.

Monomial

public Monomial(ExpVector e,
                C c)
Constructor of monomial.

Parameters:
e - exponent.
c - coefficient.
Method Detail

exponent

public ExpVector exponent()
Getter for exponent.

Returns:
exponent.

coefficient

public C coefficient()
Getter for coefficient.

Returns:
coefficient.

toString

public java.lang.String toString()
String representation of Monomial.

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