Class RunAutomaton
Finite-state automaton with fast run operation.
Note
This API is experimental and might change in incompatible ways in the next release.
Inheritance
System.Object
RunAutomaton
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Lucene.Net.dll
Syntax
public abstract class RunAutomaton
Constructors
|
Improve this Doc
View Source
RunAutomaton(Automaton, Int32, Boolean)
Declaration
protected 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 Source
m_accept
Declaration
protected readonly bool[] m_accept
Field Value
Type |
Description |
System.Boolean[] |
|
|
Improve this Doc
View Source
m_initial
Declaration
protected readonly int m_initial
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
m_transitions
Declaration
protected readonly int[] m_transitions
Field Value
Type |
Description |
System.Int32[] |
|
Properties
|
Improve this Doc
View Source
Count
Returns number of states in automaton.
NOTE: This was size() in Lucene.
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
InitialState
Declaration
public int InitialState { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
Equals(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[] |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
ToString()
Returns a string representation of this automaton.
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()