Operator.Value| Modifier and Type | Field and Description |
|---|---|
protected EventLeaf<T> |
m_eventSeen
The event seen
|
protected Statechart<T> |
m_statechart
The statechart whose state is asserted
|
protected java.lang.String |
m_stateName
The name of the state to be queried for
|
| Constructor and Description |
|---|
InState(Statechart<T> statechart,
java.lang.String name)
Creates a new state predicate
|
| 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
|
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
|
java.lang.String |
toString() |
acceptPostfix, acceptPrefix, clear, copy, copyInto, evaluate, getValue, isDeleted, sizeprotected final java.lang.String m_stateName
protected final Statechart<T extends Event> m_statechart
public InState(Statechart<T> statechart, java.lang.String name)
statechart - The statechart whose state is assertedname - The name of the state to be queried forpublic 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 java.lang.String toString()
toString in class java.lang.ObjectCopyright © Sylvain HallĂ©. All Rights Reserved.