|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.jas.gb.AbstractPair<C>
edu.jas.gb.Pair<C>
C - coefficient typepublic class Pair<C extends RingElem<C>>
Serializable subclass to hold pairs of polynomials.
| Field Summary | |
|---|---|
protected int |
n
|
protected boolean |
toZero
|
protected boolean |
useCriterion3
|
protected boolean |
useCriterion4
|
| Fields inherited from class edu.jas.gb.AbstractPair |
|---|
e, i, j, pi, pj |
| Constructor Summary | |
|---|---|
Pair(ExpVector lcm,
GenPolynomial<C> a,
GenPolynomial<C> b,
int i,
int j)
Pair constructor. |
|
Pair(GenPolynomial<C> a,
GenPolynomial<C> b,
int i,
int j)
Pair constructor. |
|
Pair(java.lang.Object a,
GenPolynomial<C> b,
int i,
int j)
Pair constructor. |
|
| Method Summary | |
|---|---|
int |
compareTo(Pair p)
compareTo used in TreeMap // not used at moment. |
boolean |
equals(java.lang.Object ob)
equals. |
int |
getPairNumber()
Get removed pair number. |
boolean |
getUseCriterion3()
Get useCriterion3. |
boolean |
getUseCriterion4()
Get useCriterion4. |
boolean |
isZero()
Is reduced to zero. |
void |
pairNumber(int n)
Set removed pair number. |
void |
setUseCriterion3(boolean c)
Set useCriterion3. |
void |
setUseCriterion4(boolean c)
Set useCriterion4. |
void |
setZero()
Set zero reduction. |
java.lang.String |
toString()
toString. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int n
protected boolean toZero
protected boolean useCriterion4
protected boolean useCriterion3
| Constructor Detail |
|---|
public Pair(java.lang.Object a,
GenPolynomial<C> b,
int i,
int j)
a - polynomial i (must be castable to GenPolynomial<C>).b - polynomial j.i - first index.j - second index.
public Pair(GenPolynomial<C> a,
GenPolynomial<C> b,
int i,
int j)
a - polynomial i.b - polynomial j.i - first index.j - second index.
public Pair(ExpVector lcm,
GenPolynomial<C> a,
GenPolynomial<C> b,
int i,
int j)
lcm - of lt(a) lt(b).a - polynomial i.b - polynomial j.i - first index.j - second index.| Method Detail |
|---|
public java.lang.String toString()
toString in class AbstractPair<C extends RingElem<C>>public void pairNumber(int n)
n - number of this pair generated in OrderedPairlist.public int getPairNumber()
public void setZero()
public boolean isZero()
public boolean equals(java.lang.Object ob)
equals in class java.lang.Objectob - an Object.
public int compareTo(Pair p)
compareTo in interface java.lang.Comparable<Pair>p - a Pair.
public void setUseCriterion4(boolean c)
c - boolean value to set.public boolean getUseCriterion4()
public void setUseCriterion3(boolean c)
c - boolean value to set.public boolean getUseCriterion3()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||