Operator.Value| Modifier and Type | Field and Description |
|---|---|
protected TruthConstant<T> |
m_false
The constant associated to the value true
|
protected TruthConstant<T> |
m_inconclusive
The constant associated to the value inconclusive
|
protected TruthConstant<T> |
m_true
The constant associated to the value true
|
protected Operator.Value |
m_value
The truth value
|
| Constructor and Description |
|---|
TruthConstant(Operator.Value v) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptPostfix(HologramVisitor<T> visitor,
boolean in_tree)
Accepts a hologram visitor into the evaluation tree for this
operator
|
void |
acceptPrefix(HologramVisitor<T> visitor,
boolean in_tree)
Accepts a hologram visitor into the evaluation tree for this
operator
|
void |
addOperand(Operator<T> op)
Adds an operand to this operator
|
void |
clean()
Cleans the deleted nodes of the evaluation tree
|
Operator<T> |
copy(boolean with_tree)
Creates a deep copy of this operator
|
void |
delete()
Marks a node as deleted
|
void |
evaluate(T event)
Evaluates the operator on the new event
|
TruthConstant<T> |
getConstant(java.lang.Boolean b)
Gets an instance of truth constant based on a Boolean value
|
TruthConstant<T> |
getConstant(Operator.Value v)
Gets an instance of truth constant based on a truth value
|
java.lang.String |
getRootSymbol()
Gets the symbol of the operator for the root of the evaluation tree
|
java.util.List<Operator<T>> |
getTreeChildren()
Gets the ordered list of the children in the evaluation tree for this
operator
|
int |
size(boolean with_tree)
Gets the size of this formula
|
acceptPostfix, acceptPrefix, clear, copy, copyInto, evaluate, getValue, isDeleted, sizeprotected final Operator.Value m_value
protected final TruthConstant<T extends Event> m_true
protected final TruthConstant<T extends Event> m_false
protected final TruthConstant<T extends Event> m_inconclusive
public TruthConstant(Operator.Value v)
public Operator<T> copy(boolean with_tree)
Operatorpublic void evaluate(T event)
Operatorpublic void delete()
Operatorpublic int size(boolean with_tree)
Operatorpublic java.lang.String getRootSymbol()
OperatorgetRootSymbol in class Operator<T extends Event>public void acceptPrefix(HologramVisitor<T> visitor, boolean in_tree)
OperatoracceptPrefix in class Operator<T extends Event>visitor - The visitorin_tree - Whether to visit the evaluation tree (true) or
the formula (false)public void acceptPostfix(HologramVisitor<T> visitor, boolean in_tree)
OperatoracceptPostfix in class Operator<T extends Event>visitor - The visitorin_tree - Whether to visit the evaluation tree (true) or
the formula (false)public java.util.List<Operator<T>> getTreeChildren()
OperatorgetTreeChildren in class Operator<T extends Event>public void addOperand(Operator<T> op)
OperatoraddOperand in class Operator<T extends Event>op - The operandpublic void clean()
Operatorpublic TruthConstant<T> getConstant(Operator.Value v)
v - The valuepublic TruthConstant<T> getConstant(java.lang.Boolean b)
b - The valueCopyright © Sylvain HallĂ©. All Rights Reserved.