| Modifier and Type | Field and Description |
|---|---|
private java.util.List<Term> |
terms
The terms of this operation.
|
| Constructor and Description |
|---|
AssociativeOperation()
Creates a new (empty) operation.
|
AssociativeOperation(java.util.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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAllTerm(java.util.Collection<Term> terms)
Adds all the given terms of this operation.
|
void |
addTerm(Term t)
Adds the given term to this operation.
|
void |
collapseAssociativeOperations()
This method collapses all associative operations appearing
in this term, e.g.
|
java.util.Set<AbsoluteValue> |
getAbsoluteValues()
Returns all absolute values of this term.
|
java.util.Set<Maximum> |
getMaximums()
Returns all maximums of this term.
|
java.util.Set<Minimum> |
getMinimums()
Returns all minimums of this term.
|
java.util.Set<Product> |
getProducts()
Returns all products of this term.
|
java.util.List<Term> |
getTerms()
Returns the terms of this operation.
|
java.util.Set<Variable> |
getVariables()
Returns all variables in this term.
|
boolean |
isInteger()
Checks whether this term represents an integer value.
|
void |
removeTerm(Term t)
Removes the given term from this operation.
|
int |
size()
Returns the number of the terms in this operation.
|
add, derive, doubleValue, evaluateMatrix, evaluateVector, evaluateVector, expandAssociativeOperations, isContinuous, isContinuous, isLinear, min, minus, mult, replaceAllTerms, replaceAllTerms, replaceTerm, simplify, toLinearForm, toString, valueprivate java.util.List<Term> terms
public AssociativeOperation()
public AssociativeOperation(Term first, Term second)
first - a term.second - a term.public AssociativeOperation(java.util.Collection<? extends Term> terms)
terms - a list of terms.public int size()
public java.util.List<Term> getTerms()
public void addTerm(Term t)
t - a term.public void addAllTerm(java.util.Collection<Term> terms)
terms - a collection of terms.public void removeTerm(Term t)
t - a term.public boolean isInteger()
Termpublic java.util.Set<Variable> getVariables()
TermgetVariables in class Termpublic java.util.Set<Product> getProducts()
TermgetProducts in class Termpublic java.util.Set<Minimum> getMinimums()
TermgetMinimums in class Termpublic java.util.Set<Maximum> getMaximums()
TermgetMaximums in class Termpublic java.util.Set<AbsoluteValue> getAbsoluteValues()
TermgetAbsoluteValues in class Termpublic void collapseAssociativeOperations()
TermcollapseAssociativeOperations in class Term