Fork me on GitHub
  • API

    Show / Hide Table of Contents

    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
    object
    RunAutomaton
    ByteRunAutomaton
    CharacterRunAutomaton
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.Util.Automaton
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class RunAutomaton

    Constructors

    RunAutomaton(Automaton, int, bool)

    Constructs a new RunAutomaton from a deterministic Automaton.

    Declaration
    protected RunAutomaton(Automaton a, int maxInterval, bool tableize)
    Parameters
    Type Name Description
    Automaton a

    An automaton.

    int maxInterval
    bool tableize

    Fields

    m_accept

    Finite-state automaton with fast run operation.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    protected readonly bool[] m_accept
    Field Value
    Type Description
    bool[]

    m_initial

    Finite-state automaton with fast run operation.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    protected readonly int m_initial
    Field Value
    Type Description
    int

    m_transitions

    Finite-state automaton with fast run operation.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    protected readonly int[] m_transitions
    Field Value
    Type Description
    int[]

    Properties

    Count

    Returns number of states in automaton.

    NOTE: This was size() in Lucene.
    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int

    InitialState

    Returns initial state.

    Declaration
    public int InitialState { get; }
    Property Value
    Type Description
    int

    Methods

    Equals(object)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current object.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    Overrides
    object.Equals(object)

    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
    int[]

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Overrides
    object.GetHashCode()

    IsAccept(int)

    Returns acceptance status for given state.

    Declaration
    public bool IsAccept(int state)
    Parameters
    Type Name Description
    int state
    Returns
    Type Description
    bool

    Step(int, int)

    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
    int state
    int c
    Returns
    Type Description
    int

    ToString()

    Returns a string representation of this automaton.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.