|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umass.cs.sase.query.Edge
public class Edge
This class represents an edge of an NFA.
Constructor Summary | |
---|---|
Edge(int edgeTypeNum)
|
|
Edge(java.lang.String edgeDescription)
Constructor, based on the input string |
Method Summary | |
---|---|
void |
addPredicate(java.lang.String predicateDescription)
|
boolean |
evaluatePredicate(Event currentEvent,
Event previousEvent)
Evaluates an event on this edge |
boolean |
evaluatePredicate(Event currentEvent,
Run r,
EventBuffer b)
Override method, evaluates event based on the current event, and a run. |
java.lang.String |
getEdgeDescription()
|
java.lang.String |
getEdgeType()
|
PredicateOptimized[] |
getPredicates()
|
void |
setEdgeDescription(java.lang.String edgeDescription)
|
void |
setEdgeType(java.lang.String edgeType)
|
void |
setPredicates(PredicateOptimized[] predicates)
|
java.lang.String |
toString()
Self-description |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Edge(java.lang.String edgeDescription)
edgeDescription
- the description sentence in the nfa filepublic Edge(int edgeTypeNum)
Method Detail |
---|
public void addPredicate(java.lang.String predicateDescription)
public boolean evaluatePredicate(Event currentEvent, Event previousEvent) throws net.sourceforge.jeval.EvaluationException
currentEvent
- current eventpreviousEvent
- the previous event
net.sourceforge.jeval.EvaluationException
public boolean evaluatePredicate(Event currentEvent, Run r, EventBuffer b)
currentEvent
- the current eventr
- a run
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getEdgeDescription()
public void setEdgeDescription(java.lang.String edgeDescription)
edgeDescription
- the edgeDescription to setpublic java.lang.String getEdgeType()
public void setEdgeType(java.lang.String edgeType)
edgeType
- the edgeType to setpublic PredicateOptimized[] getPredicates()
public void setPredicates(PredicateOptimized[] predicates)
predicates
- the predicates to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |