|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umass.cs.sase.engine.Run
public class Run
This class represents a run.
Constructor Summary | |
---|---|
Run()
Default constructor. |
|
Run(NFA nfa)
Constructor, initialized by the nfa for a query |
Method Summary | |
---|---|
void |
addEvent(Event e)
Adds an event to the run, and makes necessary updates of the run status and value vectors. |
boolean |
checkMatch()
Checks whether the match is ready to make a match |
java.lang.Object |
clone()
Clones the run itself |
int |
getAfterNegationTimestamp()
|
int |
getBeforeNegationTimestamp()
|
int |
getCount()
|
int |
getCurrentState()
|
java.util.ArrayList<java.lang.Integer> |
getEventIds()
|
int |
getLastNEventId(int n)
Returns the last n event id last 1 means the last event last 2 means the last second event |
long |
getLifeTimeBegin()
|
int |
getNeededValueVector(int stateNumber,
java.lang.String attribute,
java.lang.String operation)
returns the needed value vector |
NFA |
getNfa()
|
int |
getPartitonId()
|
int |
getPreviousEventId()
|
int |
getSize()
|
int |
getStartTimeStamp()
|
int[] |
getState()
|
ValueVectorElement[][] |
getValueVector()
|
void |
initializeValueVector(Event e)
Initializes the value vectors of the computation state |
boolean |
isAlive()
|
boolean |
isComplete()
|
boolean |
isFull()
|
boolean |
isKleeneClosureInitialized()
|
void |
proceed()
Proceeds a kleene closure state |
void |
setAfterNegationTimestamp(int afterNegationTimestamp)
|
void |
setAlive(boolean alive)
|
void |
setBeforeNegationTimestamp(int beforeNegationTimestamp)
|
void |
setComplete(boolean isComplete)
|
void |
setCount(int count)
|
void |
setCurrentState(int currentState)
|
void |
setEventIds(java.util.ArrayList<java.lang.Integer> eventIds)
|
void |
setFull(boolean isFull)
|
void |
setKleeneClosureInitialized(boolean kleeneClosureInitialized)
|
void |
setLifeTimeBegin(long lifeTimeBegin)
|
void |
setNfa(NFA nfa)
|
void |
setPartitonId(int partitonId)
|
void |
setSize(int size)
|
void |
setStartTimeStamp(int startTimeStamp)
|
void |
setState(int[] state)
|
void |
setValueVector(ValueVectorElement[][] valueVector)
|
void |
updateValueVector(Event e)
Updates the value vectors for the computation state |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Run()
public Run(NFA nfa)
nfa
- the nfa for a queryMethod Detail |
---|
public boolean checkMatch()
public void addEvent(Event e)
e
- the event to be addedpublic int getPreviousEventId()
public int getLastNEventId(int n)
n
- the relative position
public void proceed()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public void initializeValueVector(Event e)
e
- the first selected event for a statepublic void updateValueVector(Event e)
e
- the latest selected eventpublic int getNeededValueVector(int stateNumber, java.lang.String attribute, java.lang.String operation)
stateNumber
- the state which the needed value vector is atattribute
- the attribute of the value vectoroperation
- the operation name of the value vector
public boolean isAlive()
public void setAlive(boolean alive)
alive
- the alive to setpublic int getCurrentState()
public void setCurrentState(int currentState)
currentState
- the currentState to setpublic int[] getState()
public void setState(int[] state)
state
- the state to setpublic NFA getNfa()
public void setNfa(NFA nfa)
nfa
- the nfa to setpublic long getLifeTimeBegin()
public void setLifeTimeBegin(long lifeTimeBegin)
lifeTimeBegin
- the lifeTimeBegin to setpublic boolean isComplete()
public void setComplete(boolean isComplete)
isComplete
- the isComplete to setpublic boolean isFull()
public void setFull(boolean isFull)
isFull
- the isFull to setpublic int getStartTimeStamp()
public void setStartTimeStamp(int startTimeStamp)
startTimeStamp
- the startTimeStamp to setpublic java.util.ArrayList<java.lang.Integer> getEventIds()
public void setEventIds(java.util.ArrayList<java.lang.Integer> eventIds)
eventIds
- the eventIds to setpublic int getSize()
public void setSize(int size)
size
- the size to setpublic int getCount()
public void setCount(int count)
count
- the count to setpublic int getPartitonId()
public void setPartitonId(int partitonId)
partitonId
- the partitonId to setpublic boolean isKleeneClosureInitialized()
public void setKleeneClosureInitialized(boolean kleeneClosureInitialized)
kleeneClosureInitialized
- the kleeneClosureInitialized to setpublic ValueVectorElement[][] getValueVector()
public void setValueVector(ValueVectorElement[][] valueVector)
valueVector
- the valueVector to setpublic int getBeforeNegationTimestamp()
public void setBeforeNegationTimestamp(int beforeNegationTimestamp)
beforeNegationTimestamp
- the beforeNegationTimestamp to setpublic int getAfterNegationTimestamp()
public void setAfterNegationTimestamp(int afterNegationTimestamp)
afterNegationTimestamp
- the afterNegationTimestamp to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |