Modifier and Type | Field and Description |
---|---|
static Comparator<ComputationState> |
COMPUTATION_STATE_COMPARATOR |
Constructor and Description |
---|
NFAState(Iterable<ComputationState> states) |
NFAState(Queue<ComputationState> partialMatches,
Queue<ComputationState> completedMatches) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Queue<ComputationState> |
getCompletedMatches() |
Queue<ComputationState> |
getPartialMatches() |
int |
hashCode() |
boolean |
isStateChanged()
Check if the matching status of the NFA has changed so far.
|
void |
resetStateChanged()
Reset the changed bit checked via
isStateChanged() to false . |
void |
setNewPartialMatches(PriorityQueue<ComputationState> newPartialMatches) |
void |
setStateChanged()
Set the changed bit checked via
isStateChanged() to true . |
String |
toString() |
public static final Comparator<ComputationState> COMPUTATION_STATE_COMPARATOR
public NFAState(Iterable<ComputationState> states)
public NFAState(Queue<ComputationState> partialMatches, Queue<ComputationState> completedMatches)
public boolean isStateChanged()
true
if matching status has changed, false
otherwisepublic void resetStateChanged()
isStateChanged()
to false
.public void setStateChanged()
isStateChanged()
to true
.public Queue<ComputationState> getPartialMatches()
public Queue<ComputationState> getCompletedMatches()
public void setNewPartialMatches(PriorityQueue<ComputationState> newPartialMatches)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.