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.
automatonSTATE_PROPERTIES, TRANSITION_PROPERTIES| Constructor and Description |
|---|
BricsDFA(Automaton automaton)
Constructor.
|
BricsDFA(Automaton automaton,
boolean mayDeterminize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Iterable<Character> input) |
State |
getInitialState() |
State |
getState(Iterable<Character> input) |
State |
getSuccessor(State state,
Character input) |
State |
getSuccessor(State state,
Iterable<Character> input) |
Set<State> |
getSuccessors(State state,
Character input) |
State |
getTransition(State state,
Character input) |
Collection<State> |
getTransitions(State state,
Character input) |
createDynamicNodeMapping, createStaticNodeMapping, getBricsAutomaton, getEdgeProperty, getGraphDOTHelper, getInitialStates, getNodeProperty, getNodes, getOutgoingEdges, getStates, getTarget, isAccepting, nodeIDscomputeOutput, computeOutput, computeSuffixOutput, computeSuffixOutput, getStateProperty, getStateProperty, getSuccessor, getSuccessor, getTransitionProperty, getTransitionPropertyiterator, iterator, size, size, stateIDs, stateIDscreateDynamicStateMapping, createDynamicStateMapping, createStaticStateMapping, createStaticStateMapping, getStates, getStates, getSuccessors, getSuccessors, getSuccessors, getSuccessors, getSuccessors, powersetView, powersetViewclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAcceptinggetStateProperty, getTransitionPropertycomputeOutputgetStates, size, stateIDsgetSuccessor, powersetViewcreateDynamicStateMapping, createStaticStateMapping, getInitialStates, getStates, getSuccessors, getSuccessorscomputeSuffixOutputpublic 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 boolean accepts(Iterable<Character> input)
accepts in interface AcceptorTS<State,Character>public State getInitialState()
getInitialState in interface SimpleDTS<State,Character>public State getSuccessor(State state, Character input)
getSuccessor in interface SimpleDTS<State,Character>public State getSuccessor(State state, Iterable<Character> input)
getSuccessor in interface SimpleDTS<State,Character>public State getTransition(State state, Character input)
getTransition in interface DeterministicTransitionSystem<State,Character,State>public Collection<State> getTransitions(State state, Character input)
getTransitions in interface TransitionSystem<State,Character,State>getTransitions in class AbstractBricsAutomatonpublic Set<State> getSuccessors(State state, Character input)
getSuccessors in interface SimpleTS<State,Character>getSuccessors in class AbstractTS<State,Character,State>Copyright © 2013. All Rights Reserved.