- java.lang.Object
-
- net.automatalib.automaton.base.AbstractCompact<I,Integer,SP,Void>
-
- net.automatalib.automaton.base.AbstractCompactSimpleNondet<I,Boolean>
-
- net.automatalib.automaton.fsa.impl.CompactNFA<I>
-
- All Implemented Interfaces:
Iterable<Integer>,SupportsGrowingAlphabet<I>,Automaton<Integer,I,Integer>,FiniteRepresentation,InputAlphabetHolder<I>,Output<I,Boolean>,OutputAutomaton<Integer,I,Integer,Boolean>,StateIDs<Integer>,StateLocalInput<Integer,I>,SuffixOutput<I,Boolean>,FiniteAlphabetAutomaton<Integer,I,Integer>,FiniteStateAcceptor<Integer,I>,MutableFSA<Integer,I>,MutableNFA<Integer,I>,NFA<Integer,I>,MutableAutomaton<Integer,I,Integer,Boolean,Void>,SimpleAutomaton<Integer,I>,UniversalAutomaton<Integer,I,Integer,Boolean,Void>,UniversalFiniteAlphabetAutomaton<Integer,I,Integer,Boolean,Void>,GraphViewable,AcceptorTS<Integer,I>,SimpleTS<Integer,I>,TransitionSystem<Integer,I,Integer>,UniversalTransitionSystem<Integer,I,Integer,Boolean,Void>
public class CompactNFA<I> extends AbstractCompactSimpleNondet<I,Boolean> implements MutableNFA<Integer,I>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classCompactNFA.CompactAcceptorPowersetDTSstatic classCompactNFA.Creator<I>-
Nested classes/interfaces inherited from class net.automatalib.automaton.base.AbstractCompactSimpleNondet
AbstractCompactSimpleNondet.CompactPowersetDTS
-
Nested classes/interfaces inherited from class net.automatalib.automaton.base.AbstractCompact
AbstractCompact.Payload
-
Nested classes/interfaces inherited from interface net.automatalib.automaton.fsa.FiniteStateAcceptor
FiniteStateAcceptor.FSAGraphView<S,I,A extends FiniteStateAcceptor<S,I>>
-
-
Field Summary
-
Fields inherited from class net.automatalib.automaton.base.AbstractCompact
DEFAULT_INIT_CAPACITY, DEFAULT_RESIZE_FACTOR, INVALID_STATE
-
Fields inherited from interface net.automatalib.automaton.fsa.FiniteStateAcceptor
STATE_PROPERTIES, TRANSITION_PROPERTIES
-
-
Constructor Summary
Constructors Modifier Constructor Description CompactNFA(Alphabet<I> alphabet)CompactNFA(Alphabet<I> alphabet, int stateCapacity)protectedCompactNFA(Alphabet<I> alphabet, CompactNFA<?> other)CompactNFA(CompactNFA<I> other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegeraddState(boolean accepting)voidclear()Removes all states and transitions.voidflipAcceptance()BooleangetStateProperty(int state)booleanisAccepting(int stateId)booleanisAccepting(Integer state)Checks whether the given state is accepting.AcceptorPowersetViewTS<BitSet,I,Integer>powersetView()Returns a powerset view of this transition system.voidsetAccepting(int stateId, boolean accepting)voidsetAccepting(Integer state, boolean accepting)voidsetStateProperty(int stateId, @Nullable Boolean property)<I2> CompactNFA<I2>translate(Alphabet<I2> newAlphabet)-
Methods inherited from class net.automatalib.automaton.base.AbstractCompactSimpleNondet
addTransition, addTransition, addTransition, copyTransition, createTransition, getInitialStates, getSuccessor, getTransitionProperty, getTransitions, getTransitions, getTransitions, removeAllTransitions, removeAllTransitions, removeAllTransitions, removeAllTransitions, removeAllTransitions, removeTransition, removeTransition, removeTransition, setInitial, setInitial, setTransitionProperty, setTransitions, setTransitions, setTransitions, updateTransitionStorage
-
Methods inherited from class net.automatalib.automaton.base.AbstractCompact
addAlphabetSymbol, addIntState, addState, getInputAlphabet, getLocalInputs, getState, getStateId, getStateProperty, getStates, getSymbolIndex, numInputs, setStateProperty, size, stateIDs, toId, toMemoryIndex, toState, updateStateStorage, updateStateStorage, updateTransitionStorage, updateTransitionStorage, updateTransitionStorage
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.automatalib.ts.acceptor.AcceptorTS
accepts, getStateProperty, getSuccessor, getTransitionProperty
-
Methods inherited from interface net.automatalib.automaton.FiniteAlphabetAutomaton
getTransitions, graphView
-
Methods inherited from interface net.automatalib.automaton.fsa.FiniteStateAcceptor
computeOutput, computeSuffixOutput, transitionGraphView
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface net.automatalib.automaton.MutableAutomaton
addTransition, addTransition, addTransitions, removeAllTransitions, removeAllTransitions, removeTransition, setInitial, setTransitions
-
Methods inherited from interface net.automatalib.automaton.fsa.MutableFSA
addInitialState, addInitialState, addInitialState, addState, addState, copyTransition, createTransition, setStateProperty, setTransitionProperty
-
Methods inherited from interface net.automatalib.automaton.fsa.NFA
isAccepting
-
Methods inherited from interface net.automatalib.automaton.simple.SimpleAutomaton
createDynamicStateMapping, createStaticStateMapping, getStates, iterator, size, stateIDs
-
Methods inherited from interface net.automatalib.ts.simple.SimpleTS
getInitialStates, getStates, getSuccessors
-
Methods inherited from interface net.automatalib.ts.TransitionSystem
getSuccessors, getTransitions
-
Methods inherited from interface net.automatalib.automaton.UniversalFiniteAlphabetAutomaton
transitionGraphView
-
-
-
-
Constructor Detail
-
CompactNFA
public CompactNFA(CompactNFA<I> other)
-
CompactNFA
protected CompactNFA(Alphabet<I> alphabet, CompactNFA<?> other)
-
-
Method Detail
-
translate
public <I2> CompactNFA<I2> translate(Alphabet<I2> newAlphabet)
-
isAccepting
public boolean isAccepting(Integer state)
Description copied from interface:AcceptorTSChecks whether the given state is accepting.- Specified by:
isAcceptingin interfaceAcceptorTS<Integer,I>- Parameters:
state- the state- Returns:
trueif the state is accepting,falseotherwise.
-
isAccepting
public boolean isAccepting(int stateId)
-
flipAcceptance
public void flipAcceptance()
- Specified by:
flipAcceptancein interfaceMutableFSA<Integer,I>
-
setAccepting
public void setAccepting(Integer state, boolean accepting)
- Specified by:
setAcceptingin interfaceMutableFSA<Integer,I>
-
setAccepting
public void setAccepting(int stateId, boolean accepting)
-
addState
public Integer addState(boolean accepting)
- Specified by:
addStatein interfaceMutableFSA<Integer,I>
-
clear
public void clear()
Description copied from interface:MutableAutomatonRemoves all states and transitions.
-
setStateProperty
public void setStateProperty(int stateId, @Nullable Boolean property)- Specified by:
setStatePropertyin classAbstractCompact<I,Integer,Boolean,Void>
-
getStateProperty
public Boolean getStateProperty(int state)
- Specified by:
getStatePropertyin classAbstractCompact<I,Integer,Boolean,Void>
-
powersetView
public AcceptorPowersetViewTS<BitSet,I,Integer> powersetView()
Description copied from interface:TransitionSystemReturns a powerset view of this transition system. A powerset view is a deterministic view on a (potentially) non-deterministic transition system.- Specified by:
powersetViewin interfaceAcceptorTS<Integer,I>- Specified by:
powersetViewin interfaceTransitionSystem<Integer,I,Integer>- Overrides:
powersetViewin classAbstractCompactSimpleNondet<I,Boolean>- Returns:
- a powerset view of this transition system.
-
-