Package gprover
Class GrTerm
- java.lang.Object
-
- gprover.GrTerm
-
public class GrTerm extends java.lang.ObjectThe GrTerm class represents a geometric term in the theorem proving framework. It includes properties for coefficients, polynomial terms, construction type, elimination terms, simplifiers, and a linked list of geometric terms.
-
-
Constructor Summary
Constructors Constructor Description GrTerm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.VectorgetAllvars()Retrieves all variables present in the first and second polynomial terms.java.util.VectorgetAllxterm()Retrieves all XTerm objects from the first polynomial term.intgetPTN()Retrieves the PTN (property tracking number) of this term.booleanisZero()Checks whether this geometric term is equivalent to zero.voidsetPTN(int n)Sets the PTN (property tracking number) for this term.java.lang.StringtoString()Returns the text representation of this geometric term.
-
-
-
Method Detail
-
toString
public java.lang.String toString()
Returns the text representation of this geometric term.- Overrides:
toStringin classjava.lang.Object- Returns:
- the text representing this geometric term.
-
setPTN
public void setPTN(int n)
Sets the PTN (property tracking number) for this term.- Parameters:
n- the new PTN value.
-
getPTN
public int getPTN()
Retrieves the PTN (property tracking number) of this term.- Returns:
- the current PTN value.
-
isZero
public boolean isZero()
Checks whether this geometric term is equivalent to zero. Determines zero based on the first polynomial term or its coefficient.- Returns:
- true if the term is zero; false otherwise.
-
getAllxterm
public java.util.Vector getAllxterm()
Retrieves all XTerm objects from the first polynomial term. Cuts the mark from the first XTerm in the resulting list.- Returns:
- a vector containing all XTerm objects.
-
getAllvars
public java.util.Vector getAllvars()
Retrieves all variables present in the first and second polynomial terms.- Returns:
- a vector containing all variables.
-
-