PFABuilder
Implementation of PFABuilder using `HashSet`s and `HashMap`s.
- Type Params
- S
The type of all states of the automaton
- T
The type of labels on (non-epsilon) transitions of the automaton
- Value Params
- initialState
The initial state of the automaton. This builder must be instantiated with one state, initially taken to be the initial state.
Value members
Abstract methods
Inherited methods
- Inherited from
- UnindexedFA
Returns the Set of final states in this automaton. For PFAs, this method returns the states which map
via [[org.maraist.fa.PFA#finalStateProb]]
to a non-zero
probability.
Returns the Set of final states in this automaton. For PFAs, this method returns the states which map
via [[org.maraist.fa.PFA#finalStateProb]]
to a non-zero
probability.
- Definition Classes
- Inherited from
- UnindexedPFA
Use Graphviz to render this object as specified.
Use Graphviz to render this object as specified.
- Inherited from
- Graphable
Use Graphviz to render this object (in the default format) to the given file.
Use Graphviz to render this object (in the default format) to the given file.
- Inherited from
- Graphable
Returns the Set of initial states in this automaton. For PFAs, this method returns the states which map
via [[org.maraist.fa.PFA#initialStateProb]]
to a non-zero
probability.
Returns the Set of initial states in this automaton. For PFAs, this method returns the states which map
via [[org.maraist.fa.PFA#initialStateProb]]
to a non-zero
probability.
- Definition Classes
- Inherited from
- UnindexedPFA
Internal routine used by [[#toDOT]]
. Subclesses may override,
but still call super.internalsToDOT, to extend the Graphviz
representation of a DFA.
Internal routine used by [[#toDOT]]
. Subclesses may override,
but still call super.internalsToDOT, to extend the Graphviz
representation of a DFA.
- Inherited from
- UnindexedFA
Returns whether the given state s
is initial in this automaton. For PFAs, this method returns true
if s
has a
non-zero chance of being an initial state of the automaton.
Returns whether the given state s
is initial in this automaton. For PFAs, this method returns true
if s
has a
non-zero chance of being an initial state of the automaton.
- Definition Classes
- Inherited from
- UnindexedPFA
- Inherited from
- UnindexedFA
- Inherited from
- UnindexedFA
Deprecated and Inherited methods
- Deprecated
[Since version 2.13.0]
Use `++=` aka `addAll` instead of varargs `+=`; infix operations with an operand of multiple args will be deprecated- Inherited from
- Growable