T - The event typepublic class Atom<T extends Event> extends GroundTerm<T>
Operator.Value| Modifier and Type | Field and Description |
|---|---|
protected T |
m_event
The event that this atom asserts
|
m_eventSeen| 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
|
Atom<T> |
copy(boolean with_tree)
Creates a deep copy of this operator
|
boolean |
equals(java.lang.Object o) |
void |
evaluate(T event)
Evaluates the operator on the new event
|
T |
getEvent()
Gets the event that this atom asserts
|
java.lang.String |
getRootSymbol()
Gets the symbol of the operator for the root of the evaluation tree
|
int |
hashCode() |
java.lang.String |
toString() |
addOperand, clean, clear, delete, getTreeChildren, sizeacceptPostfix, acceptPrefix, copy, copyInto, evaluate, getValue, isDeleted, sizepublic Atom(T e)
public void evaluate(T event)
Operatorpublic T getEvent()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic Atom<T> copy(boolean with_tree)
Operatorpublic 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.lang.String getRootSymbol()
OperatorgetRootSymbol in class Operator<T extends Event>Copyright © Sylvain HallĂ©. All Rights Reserved.