public abstract static class FlowByExpression.ExpressionNode
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ExpressionNode() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
evaluate(Instance inst,
boolean result)
Evaluate this node and combine with the result so far
|
void |
init(Instances structure,
Environment env)
Initialize the node
|
boolean |
isNegated()
Get whether this node is negated.
|
boolean |
isOr()
Get whether this node is to be OR'ed
|
void |
setIsOr(boolean isOr)
Set whether this node is to be OR'ed to the result so far
|
void |
setNegated(boolean negated)
Set whether this node is negated
|
void |
setShowAndOr(boolean show)
Set whether to show the combination operator in the textual description
|
abstract javax.swing.tree.DefaultMutableTreeNode |
toJTree(javax.swing.tree.DefaultMutableTreeNode parent)
Get a DefaultMutableTreeNode for this node
|
abstract void |
toStringDisplay(java.lang.StringBuffer buff)
Get the display representation of this node
|
abstract void |
toStringInternal(java.lang.StringBuffer buff)
Get the internal representation of this node
|
public void setIsOr(boolean isOr)
isOr
- true if this node is to be OR'dpublic boolean isOr()
public boolean isNegated()
public void setNegated(boolean negated)
negated
- true if this node is negatedpublic void setShowAndOr(boolean show)
show
- true if the combination operator is to be shownpublic void init(Instances structure, Environment env)
structure
- the structure of the incoming instancesenv
- Environment variablespublic abstract boolean evaluate(Instance inst, boolean result)
inst
- the incoming instance to evalute withresult
- the result to combine withpublic abstract void toStringInternal(java.lang.StringBuffer buff)
buff
- the string buffer to append topublic abstract void toStringDisplay(java.lang.StringBuffer buff)
buff
- the string buffer to append topublic abstract javax.swing.tree.DefaultMutableTreeNode toJTree(javax.swing.tree.DefaultMutableTreeNode parent)
parent
- the parent of this node (if any)