@ParametersAreNonnullByDefault public class BricsDFA extends AbstractBricsAutomaton implements DFA<State,Character>
DFA.
This adapter is backed by the Brics automaton, so changes to the Automaton
are reflected. Please note that any changes which result in a loss of determinism
will result in incorrect behavior exposed by this class until determinism is restored.
AbstractBricsAutomaton.GraphViewFiniteStateAcceptor.FSAGraphView<S,I,A extends FiniteStateAcceptor<S,I>>automatonSTATE_PROPERTIES, TRANSITION_PROPERTIES| Constructor and Description |
|---|
BricsDFA(Automaton automaton)
Constructor.
|
BricsDFA(Automaton automaton,
boolean mayDeterminize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
State |
getInitialState() |
State |
getSuccessor(State state,
Character input) |
State |
getTransition(State state,
Character input) |
getBricsAutomaton, getInitialStates, getStates, getTransitions, graphView, isAcceptingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAcceptingcomputeOutput, computeSuffixOutput, transitionGraphViewgetStateProperty, getSuccessor, getTransitionProperty, isAcceptingcreateStaticStateMapping, getStates, iterator, size, stateIDsforEach, spliteratorgetSuccessors, getTransitions, transToSetpowersetViewgetInitialStates, getState, getStates, getSuccessor, getSuccessors, stateToSetcreateDynamicStateMapping, getSuccessorspublic BricsDFA(Automaton automaton)
IllegalArgumentException.automaton - the Brics automaton to wrap.public BricsDFA(Automaton automaton, boolean mayDeterminize)
BricsDFA(Automaton). Otherwise, if the specified automaton is not deterministic,
it is determinized beforehand by invoking Automaton.determinize().automaton - the Brics automaton to wrap.mayDeterminize - whether or not a possible nondeterministic automaton may be
determinized.public State getInitialState()
getInitialState in interface SimpleDTS<State,Character>public State getSuccessor(State state, @Nonnull Character input)
getSuccessor in interface DeterministicTransitionSystem<State,Character,State>getSuccessor in interface SimpleDTS<State,Character>public State getTransition(State state, @Nonnull Character input)
getTransition in interface DeterministicTransitionSystem<State,Character,State>Copyright © 2015. All Rights Reserved.