Class State
Automaton state.
@lucene.experimental
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public class State : IComparable<State>
Constructors
Name | Description |
---|---|
State() | Constructs a new state. Initially, the new state is a reject state. |
Properties
Name | Description |
---|---|
Accept | Sets acceptance for this state. If |
Number | Return this state's number. Expert: Will be useless unless GetNumberedStates() has been called first to number the states. |
NumTransitions | |
TransitionsArray |
Methods
Name | Description |
---|---|
AddTransition(Transition) | Adds an outgoing transition. |
CompareTo(State) | Compares this object with the specified object for order. States are ordered by the time of construction. |
GetHashCode() | |
GetTransitions() | Returns the set of outgoing transitions. Subsequent changes are reflected in the automaton. |
Reduce() | Reduces this state. A state is "reduced" by combining overlapping and adjacent edge intervals with same destination. |
SetTransitions(Transition[]) | |
SortTransitions(IComparer<Transition>) | Returns sorted list of outgoing transitions. |
Step(Int32) | Performs lookup in transitions, assuming determinism. |
Step(Int32, ICollection<State>) | Performs lookup in transitions, allowing nondeterminism. |
ToString() | Returns string describing this state. Normally invoked via ToString(). |
TrimTransitionsArray() | Downsizes transitionArray to numTransitions. |