Package edu.jas.gb
Class SigPair<C extends RingElem<C>>
java.lang.Object
edu.jas.gb.SigPair<C>
- Type Parameters:
C- coefficient type
- All Implemented Interfaces:
Comparable<SigPair<C>>
Serializable subclass to hold pairs of polynomials.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo used in TreeMap // not used at moment.booleanequals.(package private) GenPolynomial<C> getSigma()getter for sigma(package private) longgetter for sigma.degreeinthashCode()Hash code for this SigPair.toString()toString.
-
Field Details
-
sigma
-
pi
-
pj
-
Gs
-
-
Constructor Details
-
SigPair
SigPair constructor.- Parameters:
sig- signature of pair.a- polynomial i.b- polynomial j.
-
SigPair
SigPair constructor.- Parameters:
sig- signature of pair.a- polynomial i.b- polynomial j.
-
-
Method Details
-
getSigma
GenPolynomial<C> getSigma()getter for sigma -
getSigmaDegree
long getSigmaDegree()getter for sigma.degree -
toString
toString. -
equals
equals. -
compareTo
compareTo used in TreeMap // not used at moment. Comparison is based on the number of the pairs.- Specified by:
compareToin interfaceComparable<C extends RingElem<C>>- Parameters:
p- a SigPair.- Returns:
- 1 if (this < o), 0 if (this == o), -1 if (this > o).
-
hashCode
public int hashCode()Hash code for this SigPair.
-