Package org.tweetyproject.math.term
Class AssociativeOperation
java.lang.Object
org.tweetyproject.math.term.Term
org.tweetyproject.math.term.AssociativeOperation
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new (empty) operation.AssociativeOperation(Collection<? extends Term> terms) Creates a new operation with the given list of terms.AssociativeOperation(Term first, Term second) Creates a new operation with the given terms.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAllTerm(Collection<Term> terms) Adds all the given terms of this operation.voidAdds the given term to this operation.voidThis method collapses all associative operations appearing in this term, e.g.Returns all absolute values of this term.Returns all maximums of this term.Returns all minimums of this term.Returns all products of this term.getSums()Returns all sums of this term.getTerms()Returns the terms of this operation.Returns all variables in this term.booleanChecks whether this term represents an integer value.voidremoveTerm(Term t) Removes the given term from this operation.intsize()Returns the number of the terms in this operation.Methods inherited from class org.tweetyproject.math.term.Termadd, derive, doubleValue, evaluateMatrix, evaluateVector, evaluateVector, expandAssociativeOperations, isContinuous, isContinuous, isLinear, isQuadratic, min, minus, mult, replaceAllTerms, replaceAllTerms, replaceTerm, simplify, toLinearForm, toQuadraticForm, toString, value
- 
Constructor Details- 
AssociativeOperationpublic AssociativeOperation()Creates a new (empty) operation.
- 
AssociativeOperationCreates a new operation with the given terms.- Parameters:
- first- a term.
- second- a term.
 
- 
AssociativeOperationCreates a new operation with the given list of terms.- Parameters:
- terms- a list of terms.
 
 
- 
- 
Method Details- 
sizepublic int size()Returns the number of the terms in this operation.- Returns:
- the number of the terms in this operation.
 
- 
getTermsReturns the terms of this operation.
- 
addTermAdds the given term to this operation.- Parameters:
- t- a term.
 
- 
addAllTermAdds all the given terms of this operation.- Parameters:
- terms- a collection of terms.
 
- 
removeTermRemoves the given term from this operation.- Parameters:
- t- a term.
 
- 
isIntegerpublic boolean isInteger()Description copied from class:TermChecks whether this term represents an integer value.
- 
getVariablesDescription copied from class:TermReturns all variables in this term.- Specified by:
- getVariablesin class- Term
- Returns:
- all variables in this term.
 
- 
getProductsDescription copied from class:TermReturns all products of this term.- Specified by:
- getProductsin class- Term
- Returns:
- all products of this term.
 
- 
getSumsDescription copied from class:TermReturns all sums of this term.
- 
getMinimumsDescription copied from class:TermReturns all minimums of this term.- Specified by:
- getMinimumsin class- Term
- Returns:
- all minimums of this term.
 
- 
getMaximumsDescription copied from class:TermReturns all maximums of this term.- Specified by:
- getMaximumsin class- Term
- Returns:
- all maximums of this term.
 
- 
getAbsoluteValuesDescription copied from class:TermReturns all absolute values of this term.- Specified by:
- getAbsoluteValuesin class- Term
- Returns:
- all absolute values of this term.
 
- 
collapseAssociativeOperationspublic void collapseAssociativeOperations()Description copied from class:TermThis method collapses all associative operations appearing in this term, e.g. every min{min{a,b},c} becomes min{a,b,c}.- Specified by:
- collapseAssociativeOperationsin class- Term
 
 
-