Class Equation
java.lang.Object
org.tweetyproject.math.term.OptProbElement
org.tweetyproject.math.equation.Statement
org.tweetyproject.math.equation.Equation
This class represent an equation of two terms.
- Author:
- Matthias Thimm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the relation symbol of this statement.booleanChecks whether this constraint is of normalized form, i.e.booleanchecks if a Statement fulfills the relationreplaceTerm(Term toSubstitute, Term substitution) Replaces each occurrence of "toSubstitute" by "substitution" and return the new statement.Brings both terms into linear form.Normalizes this constraint, i.e.Methods inherited from class org.tweetyproject.math.equation.Statement
collapseAssociativeOperations, expandAssociativeOperations, getAbsoluteValues, getLeftTerm, getMaximums, getMinimums, getRightTerm, replaceAllTerms, setLeftTerm, setRightTerm, toString
-
Constructor Details
-
Equation
-
-
Method Details
-
replaceTerm
Description copied from class:StatementReplaces each occurrence of "toSubstitute" by "substitution" and return the new statement.- Specified by:
replaceTermin classStatement- Parameters:
toSubstitute- the term to be substitutedsubstitution- the new term- Returns:
- this statement where "toSubstitute" is replaced by "substitution"
-
isNormalized
public boolean isNormalized()Description copied from class:StatementChecks whether this constraint is of normalized form, i.e. whether it has the form "T > 0" or "T >= 0", "T = 0" or "T != 0"- Specified by:
isNormalizedin classStatement- Returns:
- "true" iff this constraint is normalized.
-
toNormalizedForm
Description copied from class:StatementNormalizes this constraint, i.e. brings it into an equivalent form "T > 0" or "T >= 0", "T = 0" or "T != 0".- Specified by:
toNormalizedFormin classStatement- Returns:
- a statement.
-
toLinearForm
Description copied from class:StatementBrings both terms into linear form. If this constraint is normalized (i.e. the right term consists of the constant 0) the right term is not linearized.- Specified by:
toLinearFormin classStatement- Returns:
- a statement.
-
getRelationSymbol
Description copied from class:StatementReturns the relation symbol of this statement.- Specified by:
getRelationSymbolin classStatement- Returns:
- the relation symbol of this statement.
-
isValid
Description copied from class:Statementchecks if a Statement fulfills the relation
-