|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umass.cs.sase.query.NFA
public class NFA
This class represents an NFA.
Constructor Summary | |
---|---|
NFA(java.lang.String nfaFile)
Constructs an NFA from a file |
|
NFA(java.lang.String selectionStrategy,
java.lang.String nfaFile)
Constructs an NFA from a file, specifies the selection strategy |
Method Summary | |
---|---|
void |
addMorePartitionAttribute()
Adds other partition attributes except for the first to each state |
void |
compileValueVectorOptimized()
Compiles the value vector based on the nfa |
boolean[] |
getHasValueVector()
|
State |
getNegationState()
|
java.lang.String |
getPartitionAttribute()
|
java.lang.String |
getSelectionStrategy()
|
int |
getSize()
|
State[] |
getStates()
|
State |
getStates(int order)
|
int |
getTimeWindow()
|
ValueVectorTemplate[][] |
getValueVectors()
|
boolean |
isHasNegation()
|
boolean |
isHasPartitionAttribute()
|
boolean |
isNeedValueVector()
|
void |
parseConfig(java.lang.String attribute)
Parses a configuration, now we have selection strategy, time window and partiton attribute |
void |
parseFastQueryLine(java.lang.String line)
Parses each line for the fast query format |
void |
parseFastQueryLineStartWithAND(java.lang.String line)
Parses the conditions starting with "AND", it might be the partition attribute, or predicates for states |
void |
parseFastQueryLineStartWithPattern(java.lang.String line)
Parses the query sequence |
void |
parseNfaConfig(java.lang.String line)
Parses the configuration line in the nfa file |
void |
parseNfaFile(java.lang.String nfaFile)
Parses the nfa file |
void |
setHasNegation(boolean hasNegation)
|
void |
setHasPartitionAttribute(boolean hasPartitionAttribute)
|
void |
setHasValueVector(boolean[] hasValueVector)
|
void |
setNeedValueVector(boolean needValueVector)
|
void |
setNegationState(State negationState)
|
void |
setPartitionAttribute(java.lang.String partitionAttribute)
|
void |
setSelectionStrategy(java.lang.String selectionStrategy)
|
void |
setSize(int size)
|
void |
setStates(State[] states)
|
void |
setTimeWindow(int timeWindow)
|
void |
setValueVectors(ValueVectorTemplate[][] valueVectors)
|
void |
testNegation()
Tests whether the query contains a negation component |
java.lang.String |
toString()
Self description |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NFA(java.lang.String nfaFile)
nfaFile
- the nfa filepublic NFA(java.lang.String selectionStrategy, java.lang.String nfaFile)
selectionStrategy
- nfaFile
- Method Detail |
---|
public void parseNfaFile(java.lang.String nfaFile)
nfaFile
- the nfa filepublic void parseFastQueryLine(java.lang.String line)
line
- public void parseFastQueryLineStartWithPattern(java.lang.String line)
line
- public void parseFastQueryLineStartWithAND(java.lang.String line)
line
- public void addMorePartitionAttribute()
public void parseNfaConfig(java.lang.String line)
line
- public void parseConfig(java.lang.String attribute)
attribute
- a configurationpublic void testNegation()
public void compileValueVectorOptimized()
public java.lang.String toString()
toString
in class java.lang.Object
public State[] getStates()
public State getStates(int order)
public void setStates(State[] states)
states
- the states to setpublic int getSize()
public void setSize(int size)
size
- the size to setpublic java.lang.String getSelectionStrategy()
public void setSelectionStrategy(java.lang.String selectionStrategy)
selectionStrategy
- the selectionStrategy to setpublic int getTimeWindow()
public void setTimeWindow(int timeWindow)
timeWindow
- the timeWindow to setpublic boolean isNeedValueVector()
public void setNeedValueVector(boolean needValueVector)
needValueVector
- the needValueVector to setpublic java.lang.String getPartitionAttribute()
public void setPartitionAttribute(java.lang.String partitionAttribute)
partitionAttribute
- the partitionAttribute to setpublic ValueVectorTemplate[][] getValueVectors()
public void setValueVectors(ValueVectorTemplate[][] valueVectors)
valueVectors
- the valueVectors to setpublic boolean[] getHasValueVector()
public void setHasValueVector(boolean[] hasValueVector)
hasValueVector
- the hasValueVector to setpublic boolean isHasPartitionAttribute()
public void setHasPartitionAttribute(boolean hasPartitionAttribute)
hasPartitionAttribute
- the hasPartitionAttribute to setpublic boolean isHasNegation()
public void setHasNegation(boolean hasNegation)
hasNegation
- the hasNegation to setpublic State getNegationState()
public void setNegationState(State negationState)
negationState
- the negationState to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |