public class Equation extends Statement
| Constructor and Description |
|---|
Equation(Term leftTerm,
Term rightTerm)
Creates a new equation with the given terms.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRelationSymbol()
Returns the relation symbol of this statement.
|
boolean |
isNormalized()
Checks whether this constraint is of normalized form, i.e.
|
Statement |
replaceTerm(Term toSubstitute,
Term substitution)
Replaces each occurrence of "toSubstitute" by "substitution" and
return the new statement.
|
Statement |
toLinearForm()
Brings both terms into linear form.
|
Statement |
toNormalizedForm()
Normalizes this constraint, i.e.
|
collapseAssociativeOperations, expandAssociativeOperations, getAbsoluteValues, getLeftTerm, getMaximums, getMinimums, getRightTerm, replaceAllTerms, setLeftTerm, setRightTerm, toStringpublic Statement replaceTerm(Term toSubstitute, Term substitution)
StatementreplaceTerm in class StatementtoSubstitute - the term to be substitutedsubstitution - the new termpublic boolean isNormalized()
StatementisNormalized in class Statementpublic Statement toNormalizedForm()
StatementtoNormalizedForm in class Statementpublic Statement toLinearForm()
StatementtoLinearForm in class Statementpublic java.lang.String getRelationSymbol()
StatementgetRelationSymbol in class Statement