public abstract class RunAutomaton extends Object implements Accountable
NULL_ACCOUNTABLE
Modifier | Constructor and Description |
---|---|
protected |
RunAutomaton(Automaton a,
int alphabetSize)
Constructs a new
RunAutomaton from a deterministic
Automaton . |
protected |
RunAutomaton(Automaton a,
int alphabetSize,
int determinizeWorkLimit)
Constructs a new
RunAutomaton from a deterministic
Automaton . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int[] |
getCharIntervals()
Returns array of codepoint class interval start points.
|
int |
getSize()
Returns number of states in automaton.
|
int |
hashCode() |
boolean |
isAccept(int state)
Returns acceptance status for given state.
|
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
int |
step(int state,
int c)
Returns the state obtained by reading the given char from the given state.
|
String |
toString()
Returns a string representation of this automaton.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChildResources
protected RunAutomaton(Automaton a, int alphabetSize)
RunAutomaton
from a deterministic
Automaton
.a
- an automatonprotected RunAutomaton(Automaton a, int alphabetSize, int determinizeWorkLimit)
RunAutomaton
from a deterministic
Automaton
.a
- an automatondeterminizeWorkLimit
- maximum effort to spend while determinizingpublic String toString()
public final int getSize()
public final boolean isAccept(int state)
public final int[] getCharIntervals()
public final int step(int state, int c)
Automaton
had no dead states, -1 is returned here if and only
if a dead state is entered in an equivalent automaton with a total
transition function.)public long ramBytesUsed()
Accountable
ramBytesUsed
in interface Accountable
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.