public abstract class Statement
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Term |
leftTerm
The left term of this statement.
|
private Term |
rightTerm
The right term of this statement.
|
Constructor and Description |
---|
Statement(Term leftTerm,
Term rightTerm)
Creates a new statement with the given terms.
|
Modifier and Type | Method and Description |
---|---|
void |
collapseAssociativeOperations()
This method collapses all associative operations appearing
in this statement, e.g.
|
void |
expandAssociativeOperations()
This method expands all associative operations appearing
in this statement, e.g.
|
java.util.Set<AbsoluteValue> |
getAbsoluteValues()
Returns all absolute values of this statement.
|
Term |
getLeftTerm()
Returns the left term of this statement.
|
java.util.Set<Maximum> |
getMaximums()
Returns all maximums of this statement.
|
java.util.Set<Minimum> |
getMinimums()
Returns all minimums of this statement.
|
abstract java.lang.String |
getRelationSymbol()
Returns the relation symbol of this statement.
|
Term |
getRightTerm()
Returns the right term of this statement.
|
abstract boolean |
isNormalized()
Checks whether this constraint is of normalized form, i.e.
|
Statement |
replaceAllTerms(java.util.Map<? extends Term,? extends Term> substitutes)
Replaces terms according to the given map.
|
abstract Statement |
replaceTerm(Term toSubstitute,
Term substitution)
Replaces each occurrence of "toSubstitute" by "substitution" and
return the new statement.
|
void |
setLeftTerm(Term t)
Sets the left term of this statement.
|
void |
setRightTerm(Term t)
Sets the right term of this statement.
|
abstract Statement |
toLinearForm()
Brings both terms into linear form.
|
abstract Statement |
toNormalizedForm()
Normalizes this constraint, i.e.
|
java.lang.String |
toString() |
private Term leftTerm
private Term rightTerm
public Term getLeftTerm()
public java.util.Set<Minimum> getMinimums()
public java.util.Set<Maximum> getMaximums()
public java.util.Set<AbsoluteValue> getAbsoluteValues()
public abstract Statement replaceTerm(Term toSubstitute, Term substitution)
toSubstitute
- the term to be substitutedsubstitution
- the new termpublic Statement replaceAllTerms(java.util.Map<? extends Term,? extends Term> substitutes)
substitutes
- a map.public abstract boolean isNormalized()
public abstract Statement toNormalizedForm()
public abstract Statement toLinearForm()
public void collapseAssociativeOperations()
public void expandAssociativeOperations()
public Term getRightTerm()
public void setLeftTerm(Term t)
t
- a termpublic void setRightTerm(Term t)
t
- a termpublic abstract java.lang.String getRelationSymbol()
public java.lang.String toString()
toString
in class java.lang.Object