public abstract class Statement extends Object
| 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.
|
Set<AbsoluteValue> |
getAbsoluteValues()
Returns all absolute values of this statement.
|
Term |
getLeftTerm()
Returns the left term of this statement.
|
Set<Maximum> |
getMaximums()
Returns all maximums of this statement.
|
Set<Minimum> |
getMinimums()
Returns all minimums of this statement.
|
abstract 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(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.
|
String |
toString() |
public Term getLeftTerm()
public Set<Minimum> getMinimums()
public Set<Maximum> getMaximums()
public Set<AbsoluteValue> getAbsoluteValues()
public abstract Statement replaceTerm(Term toSubstitute, Term substitution)
toSubstitute - the term to be substitutedsubstitution - the new termpublic Statement replaceAllTerms(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 String getRelationSymbol()
Copyright © 2018. All rights reserved.