|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.jas.ps.Pair<C>
C
- coefficient typepublic class Pair<C extends RingElem<C>>
Serializable subclass to hold pairs of power series.
Field Summary | |
---|---|
int |
i
|
int |
j
|
protected int |
n
|
MultiVarPowerSeries<C> |
pi
|
MultiVarPowerSeries<C> |
pj
|
protected boolean |
toZero
|
protected boolean |
useCriterion3
|
protected boolean |
useCriterion4
|
Constructor Summary | |
---|---|
Pair(MultiVarPowerSeries<C> a,
MultiVarPowerSeries<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 |
---|
public final MultiVarPowerSeries<C extends RingElem<C>> pi
public final MultiVarPowerSeries<C extends RingElem<C>> pj
public final int i
public final int j
protected int n
protected boolean toZero
protected boolean useCriterion4
protected boolean useCriterion3
Constructor Detail |
---|
public Pair(MultiVarPowerSeries<C> a, MultiVarPowerSeries<C> b, int i, int j)
a
- power series i.b
- power series j.i
- first index.j
- second index.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
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.Object
ob
- 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 |