public class AndRel extends ComplexRel
RelNode
s as children.m_children, m_parent, m_relation
m_numberClass
Constructor and Description |
---|
AndRel(RelNode[] children) |
AndRel(RelNode child1,
RelNode child2) |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(java.util.HashMap variableValues)
Returns true, if
RelNode.evaluate(HashMap variableValues) is
true for all children. |
boolean |
evaluateFast()
Returns true, if
RelNode.evaluateFast() is true for any of the children. |
FiniteBorelSet |
getFalseFor(double epsilon,
Interval interval)
Joins the intervals for which the children of this node are false.
|
boolean |
getLogicalResult(boolean[] values)
Returns true if all
values are true, false otherwise. |
java.lang.String |
getStringSymbol()
Returns "AND".
|
FiniteBorelSet |
getTrueFor(double epsilon,
Interval interval)
Intersects the intervals for which the children of this node are true.
|
RelNode |
negate(boolean deepCopy)
Logically negates the relation represented by this node and returns this.
|
getIntervalsFalse, getIntervalsTrue, getNormalForm, getNumberClass, getUsedVariables, isLeaf, separateFor, setNormalForm, toString, toString
children, clone, compareTo, equals, extractNode, getChildren, getDepth, getFirstChildOfType, getParent, getRelation, getSimpleRelations, getSubrelations, insertNode, insertNodes, parent, parenthesesNeeded, setChildren, setChildren, setParent, setParent, setRelation
contains, extractNode, getDepth, insertNode, replace, replaceByValue, replaceWith
public AndRel(RelNode[] children)
public boolean evaluate(java.util.HashMap variableValues)
RelNode.evaluate(HashMap variableValues)
is
true for all children.public boolean evaluateFast()
RelNode.evaluateFast()
is true for any of the children.evaluateFast
in class RelNode
net.mumie.mathletfactory.algebra.rel.node.RelNode#evaluateFast()
public RelNode negate(boolean deepCopy)
RelNode
public java.lang.String getStringSymbol()
getStringSymbol
in class ComplexRel
ComplexRel.toString(java.text.DecimalFormat)
public boolean getLogicalResult(boolean[] values)
values
are true, false otherwise.getLogicalResult
in class ComplexRel
net.mumie.mathletfactory.algebra.rel.node.ComplexRel#getLogicalResult(boolean[])
public FiniteBorelSet getTrueFor(double epsilon, Interval interval)
getTrueFor
in class RelNode
public FiniteBorelSet getFalseFor(double epsilon, Interval interval)
getFalseFor
in class RelNode
Further documentation and examples can be found under www.mathletfactory.de.