Class RunAutomaton
Finite-state automaton with fast run operation.
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Util.Automaton
Assembly: Lucene.Net.dll
Syntax
public abstract class RunAutomaton
Constructors
| Improve this Doc View SourceRunAutomaton(Automaton, Int32, Boolean)
Constructs a new RunAutomaton from a deterministic Automaton.
Declaration
public RunAutomaton(Automaton a, int maxInterval, bool tableize)
Parameters
Type | Name | Description |
---|---|---|
Automaton | a | An automaton. |
System.Int32 | maxInterval | |
System.Boolean | tableize |
Fields
| Improve this Doc View Sourcem_accept
Declaration
protected readonly bool[] m_accept
Field Value
Type | Description |
---|---|
System.Boolean[] |
m_initial
Declaration
protected readonly int m_initial
Field Value
Type | Description |
---|---|
System.Int32 |
m_transitions
Declaration
protected readonly int[] m_transitions
Field Value
Type | Description |
---|---|
System.Int32[] |
Properties
| Improve this Doc View SourceCount
Returns number of states in automaton.
NOTE: This was size() in Lucene.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
InitialState
Returns initial state.
Declaration
public int InitialState { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceEquals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetCharIntervals()
Returns array of codepoint class interval start points. The array should not be modified by the caller.
Declaration
public int[] GetCharIntervals()
Returns
Type | Description |
---|---|
System.Int32[] |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
IsAccept(Int32)
Returns acceptance status for given state.
Declaration
public bool IsAccept(int state)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | state |
Returns
Type | Description |
---|---|
System.Boolean |
Step(Int32, Int32)
Returns the state obtained by reading the given char from the given state. Returns -1 if not obtaining any such state. (If the original 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.)
Declaration
public int Step(int state, int c)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | state | |
System.Int32 | c |
Returns
Type | Description |
---|---|
System.Int32 |
ToString()
Returns a string representation of this automaton.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()