|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umass.cs.sase.query.State
public class State
This class represents a state from NFA.
Constructor Summary | |
---|---|
State(int order,
java.lang.String tag,
java.lang.String eventType,
java.lang.String stateType)
|
|
State(java.lang.String nfaLine,
int order)
Constructs a state based on a line in the nfa file, and the order |
Method Summary | |
---|---|
void |
addPredicate(java.lang.String pDescription)
Adds a predicate to this state based on the given description. |
boolean |
canStartWithEvent(Event e)
|
Edge[] |
getEdges()
|
Edge |
getEdges(int order)
|
java.lang.String |
getEventType()
|
java.lang.String |
getNfaLine()
|
int |
getOrder()
|
java.lang.String |
getStateType()
|
java.lang.String |
getTag()
|
boolean |
isAfterNegation()
|
boolean |
isBeforeNegation()
|
boolean |
isEnding()
|
boolean |
isKleeneClosure()
|
boolean |
isNegation()
|
boolean |
isStart()
|
int |
parseEdgeNumber(java.lang.String predicateLeft)
Judges the edge type, "take" or "begin" |
void |
parseEquation(java.lang.String equation)
Parses the formulas in the query, e.g.: price > 100 |
java.lang.String |
parseRightStateNumber(java.lang.String original)
Parses the state number of the right operand |
void |
parseState(java.lang.String stateLine)
Parses the description for state, e.g.: state = 1, type = normal/kleeneclosure/negation |
java.lang.String |
replaceLeftStateNumber(java.lang.String original)
Used to replace the state number of the left operand |
java.lang.String |
replaceRightStateNumber(java.lang.String original)
Used to replace the state number of the right operand |
void |
setAfterNegation(boolean isAfterNegation)
|
void |
setBeforeNegation(boolean isBeforeNegation)
|
void |
setEdges(Edge[] edges)
|
void |
setEnding(boolean isEnding)
|
void |
setEventType(java.lang.String eventType)
|
void |
setKleeneClosure(boolean isKleeneClosure)
|
void |
setNegation(boolean isNegation)
|
void |
setNfaLine(java.lang.String nfaLine)
|
void |
setOrder(int order)
|
void |
setStart(boolean isStart)
|
void |
setStateType(java.lang.String stateType)
|
void |
setTag(java.lang.String tag)
|
java.lang.String |
toString()
Self description |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public State(java.lang.String nfaLine, int order)
nfaLine
- the line in the nfa fileorder
- the order of this statepublic State(int order, java.lang.String tag, java.lang.String eventType, java.lang.String stateType)
Method Detail |
---|
public void addPredicate(java.lang.String pDescription)
pDescription
- public java.lang.String replaceLeftStateNumber(java.lang.String original)
original
-
public java.lang.String replaceRightStateNumber(java.lang.String original)
original
-
public java.lang.String parseRightStateNumber(java.lang.String original)
original
-
public int parseEdgeNumber(java.lang.String predicateLeft)
predicateLeft
-
public void parseState(java.lang.String stateLine)
stateLine
- the description for this statepublic void parseEquation(java.lang.String equation)
equation
- the formula stringpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean canStartWithEvent(Event e) throws net.sourceforge.jeval.EvaluationException
net.sourceforge.jeval.EvaluationException
public java.lang.String getEventType()
public void setEventType(java.lang.String eventType)
eventType
- the eventType to setpublic int getOrder()
public void setOrder(int order)
order
- the order to setpublic boolean isStart()
public void setStart(boolean isStart)
isStart
- the isStart to setpublic boolean isEnding()
public void setEnding(boolean isEnding)
isEnding
- the isEnding to setpublic boolean isKleeneClosure()
public void setKleeneClosure(boolean isKleeneClosure)
isKleeneClosure
- the isKleeneClosure to setpublic java.lang.String getNfaLine()
public void setNfaLine(java.lang.String nfaLine)
nfaLine
- the nfaLine to setpublic java.lang.String getStateType()
public void setStateType(java.lang.String stateType)
stateType
- the stateType to setpublic Edge[] getEdges()
public Edge getEdges(int order)
public void setEdges(Edge[] edges)
edges
- the edges to setpublic boolean isNegation()
public void setNegation(boolean isNegation)
isNegation
- the isNegation to setpublic boolean isBeforeNegation()
public void setBeforeNegation(boolean isBeforeNegation)
isBeforeNegation
- the isBeforeNegation to setpublic boolean isAfterNegation()
public void setAfterNegation(boolean isAfterNegation)
isAfterNegation
- the isAfterNegation to setpublic java.lang.String getTag()
public void setTag(java.lang.String tag)
tag
- the tag to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |