public class BricsNFA extends AbstractBricsAutomaton implements NFA<State,Character>
NFA
.
This adapter is backed by the Brics automaton, so changes to the Automaton
are reflected.
As a DFA can be regarded as a special case of an NFA, using this class on a Brics
Automaton
will always work. However, determining successor states for input
characters might be much less efficient than when using a BricsDFA
.
automaton
STATE_PROPERTIES, TRANSITION_PROPERTIES
Constructor and Description |
---|
BricsNFA(Automaton automaton)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(Iterable<Character> input)
Determines whether the given input word is accepted by this acceptor.
|
boolean |
isAccepting(Collection<? extends State> states) |
createDynamicNodeMapping, createStaticNodeMapping, getBricsAutomaton, getEdgeProperty, getGraphDOTHelper, getInitialStates, getNodeProperty, getNodes, getOutgoingEdges, getStates, getTarget, getTransitions, isAccepting, nodeIDs
computeOutput, computeOutput, computeSuffixOutput, computeSuffixOutput, getStateProperty, getStateProperty, getSuccessor, getSuccessor, getTransitionProperty, getTransitionProperty
iterator, iterator, size, size, stateIDs, stateIDs
createDynamicStateMapping, createDynamicStateMapping, createStaticStateMapping, createStaticStateMapping, getStates, getStates, getSuccessors, getSuccessors, getSuccessors, getSuccessors, getSuccessors, getSuccessors, powersetView, powersetView
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isAccepting
getStates, size, stateIDs
forEach, iterator, spliterator
getStateProperty, getTransitionProperty
getSuccessor, getTransitions, powersetView
createDynamicStateMapping, createStaticStateMapping, getInitialStates, getStates, getSuccessors, getSuccessors, getSuccessors
computeSuffixOutput
computeOutput
public boolean accepts(Iterable<Character> input)
AcceptorTS
accepts
in interface AcceptorTS<State,Character>
input
- the input word.true
if the input word is accepted,
false
otherwise.public boolean isAccepting(Collection<? extends State> states)
isAccepting
in interface NFA<State,Character>
Copyright © 2015. All Rights Reserved.