Package net.automatalib.automaton.fsa
Class CompactDFA<I>
- java.lang.Object
-
- net.automatalib.automaton.base.AbstractCompact<I,T,SP,TP>
-
- net.automatalib.automaton.base.AbstractCompactDeterministic<I,Integer,SP,Void>
-
- net.automatalib.automaton.base.AbstractCompactSimpleDeterministic<I,Boolean>
-
- net.automatalib.automaton.fsa.CompactDFA<I>
-
- All Implemented Interfaces:
Iterable<Integer>,SupportsGrowingAlphabet<I>,Automaton<Integer,I,Integer>,DetOutputAutomaton<Integer,I,Integer,Boolean>,DetSuffixOutputAutomaton<Integer,I,Integer,Boolean>,FiniteRepresentation,InputAlphabetHolder<I>,Output<I,Boolean>,OutputAutomaton<Integer,I,Integer,Boolean>,StateIDs<Integer>,StateLocalInput<Integer,I>,SuffixOutput<I,Boolean>,DeterministicAutomaton<Integer,I,Integer>,DeterministicAutomaton.FullIntAbstraction<Integer>,DeterministicAutomaton.IntAbstraction<Integer>,DeterministicAutomaton.StateIntAbstraction<I,Integer>,FiniteAlphabetAutomaton<Integer,I,Integer>,DFA<Integer,I>,FiniteStateAcceptor<Integer,I>,MutableDFA<Integer,I>,MutableFSA<Integer,I>,NFA<Integer,I>,MutableAutomaton<Integer,I,Integer,Boolean,Void>,MutableDeterministic<Integer,I,Integer,Boolean,Void>,MutableDeterministic.FullIntAbstraction<Integer,Boolean,Void>,MutableDeterministic.IntAbstraction<Integer,Boolean,Void>,MutableDeterministic.StateIntAbstraction<I,Integer,Boolean,Void>,SimpleAutomaton<Integer,I>,SimpleDeterministicAutomaton<Integer,I>,SimpleDeterministicAutomaton.FullIntAbstraction,SimpleDeterministicAutomaton.IntAbstraction,SimpleDeterministicAutomaton.StateIntAbstraction<I>,UniversalAutomaton<Integer,I,Integer,Boolean,Void>,UniversalDeterministicAutomaton<Integer,I,Integer,Boolean,Void>,UniversalDeterministicAutomaton.FullIntAbstraction<Integer,Boolean,Void>,UniversalDeterministicAutomaton.IntAbstraction<Integer,Boolean,Void>,UniversalDeterministicAutomaton.StateIntAbstraction<I,Integer,Boolean,Void>,UniversalFiniteAlphabetAutomaton<Integer,I,Integer,Boolean,Void>,GraphViewable,AcceptorTS<Integer,I>,DeterministicAcceptorTS<Integer,I>,DeterministicTransitionSystem<Integer,I,Integer>,SimpleDTS<Integer,I>,SimpleTS<Integer,I>,TransitionSystem<Integer,I,Integer>,UniversalDTS<Integer,I,Integer,Boolean,Void>,UniversalTransitionSystem<Integer,I,Integer,Boolean,Void>
public class CompactDFA<I> extends AbstractCompactSimpleDeterministic<I,Boolean> implements MutableDFA<Integer,I>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCompactDFA.Creator<I>-
Nested classes/interfaces inherited from class net.automatalib.automaton.base.AbstractCompact
AbstractCompact.Payload
-
Nested classes/interfaces inherited from interface net.automatalib.automaton.DeterministicAutomaton
DeterministicAutomaton.FullIntAbstraction<T extends Object>, DeterministicAutomaton.IntAbstraction<T extends Object>, DeterministicAutomaton.StateIntAbstraction<I extends Object,T extends Object>
-
Nested classes/interfaces inherited from interface net.automatalib.automaton.fsa.FiniteStateAcceptor
FiniteStateAcceptor.FSAGraphView<S extends Object,I extends Object,A extends FiniteStateAcceptor<S,I>>
-
Nested classes/interfaces inherited from interface net.automatalib.automaton.MutableDeterministic
MutableDeterministic.FullIntAbstraction<T extends Object,SP extends Object,TP extends Object>, MutableDeterministic.IntAbstraction<T extends Object,SP extends Object,TP extends Object>, MutableDeterministic.StateIntAbstraction<I extends Object,T extends Object,SP extends Object,TP extends Object>
-
Nested classes/interfaces inherited from interface net.automatalib.automaton.UniversalDeterministicAutomaton
UniversalDeterministicAutomaton.FullIntAbstraction<T extends Object,SP extends Object,TP extends Object>, UniversalDeterministicAutomaton.IntAbstraction<T extends Object,SP extends Object,TP extends Object>, UniversalDeterministicAutomaton.StateIntAbstraction<I extends Object,T extends Object,SP extends Object,TP extends Object>
-
-
Field Summary
-
Fields inherited from class net.automatalib.automaton.base.AbstractCompactSimpleDeterministic
transitions
-
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
-
Fields inherited from interface net.automatalib.automaton.simple.SimpleDeterministicAutomaton.IntAbstraction
INVALID_STATE
-
-
Constructor Summary
Constructors Modifier Constructor Description CompactDFA(Alphabet<I> alphabet)CompactDFA(Alphabet<I> alphabet, float resizeFactor)CompactDFA(Alphabet<I> alphabet, int stateCapacity)CompactDFA(Alphabet<I> alphabet, int stateCapacity, float resizeFactor)protectedCompactDFA(Alphabet<I> alphabet, CompactDFA<?> other)CompactDFA(CompactDFA<I> other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegeraddState(boolean accepting)voidclear()voidflipAcceptance()BooleangetStateProperty(int stateId)booleanisAccepting(int stateId)booleanisAccepting(Integer state)voidsetAccepting(int state, boolean accepting)voidsetAccepting(Integer state, boolean accepting)voidsetStateProperty(int stateId, @Nullable Boolean property)<I2> CompactDFA<I2>translate(Alphabet<I2> newAlphabet)-
Methods inherited from class net.automatalib.automaton.base.AbstractCompactSimpleDeterministic
createTransition, getIntSuccessor, getState, getSuccessor, getTransition, getTransitionProperty, removeAllTransitions, setTransition, setTransition, setTransition, setTransitionProperty, updateTransitionStorage
-
Methods inherited from class net.automatalib.automaton.base.AbstractCompactDeterministic
addIntInitialState, createTransition, fullIntAbstraction, getInitialState, getIntInitialState, getLocalInputs, getStateProperty, getSuccessor, getTransition, getTransition, powersetView, setInitialState, setInitialState, setStateProperty, setTransition, setTransition, setTransition, stateIntAbstraction
-
Methods inherited from class net.automatalib.automaton.base.AbstractCompact
addAlphabetSymbol, addIntState, addState, getInputAlphabet, getState, getStateId, getStates, getSymbolIndex, numInputs, 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
getStateProperty, getSuccessor, getTransitionProperty
-
Methods inherited from interface net.automatalib.automaton.DeterministicAutomaton.FullIntAbstraction
getSuccessor
-
Methods inherited from interface net.automatalib.automaton.DeterministicAutomaton.StateIntAbstraction
getSuccessor
-
Methods inherited from interface net.automatalib.ts.DeterministicTransitionSystem
getSuccessor, getSuccessors, getTransition, getTransitions
-
Methods inherited from interface net.automatalib.automaton.fsa.DFA
accepts, computeOutput, computeStateOutput, computeSuffixOutput, isAccepting
-
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, addTransitions, removeAllTransitions
-
Methods inherited from interface net.automatalib.automaton.MutableDeterministic
addTransition, fullIntAbstraction, fullIntAbstraction, removeAllTransitions, removeTransition, setInitial, setInitialState, setTransition, setTransition, setTransitions, stateIntAbstraction
-
Methods inherited from interface net.automatalib.automaton.MutableDeterministic.IntAbstraction
addIntInitialState, addIntState, addIntState
-
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.simple.SimpleAutomaton
createDynamicStateMapping, createStaticStateMapping, getStates, iterator, size, stateIDs
-
Methods inherited from interface net.automatalib.automaton.simple.SimpleDeterministicAutomaton.FullIntAbstraction
numInputs
-
Methods inherited from interface net.automatalib.ts.simple.SimpleDTS
getInitialState, getInitialStates, getState, getStates, getSuccessor, getSuccessors, getSuccessors
-
Methods inherited from interface net.automatalib.ts.simple.SimpleTS
getSuccessors
-
Methods inherited from interface net.automatalib.ts.TransitionSystem
powersetView
-
Methods inherited from interface net.automatalib.automaton.UniversalDeterministicAutomaton.FullIntAbstraction
getTransitionProperty
-
Methods inherited from interface net.automatalib.automaton.UniversalDeterministicAutomaton.StateIntAbstraction
getTransitionProperty
-
Methods inherited from interface net.automatalib.ts.UniversalDTS
getTransitionProperty
-
Methods inherited from interface net.automatalib.automaton.UniversalFiniteAlphabetAutomaton
transitionGraphView
-
-
-
-
Constructor Detail
-
CompactDFA
public CompactDFA(CompactDFA<I> other)
-
CompactDFA
protected CompactDFA(Alphabet<I> alphabet, CompactDFA<?> other)
-
-
Method Detail
-
translate
public <I2> CompactDFA<I2> translate(Alphabet<I2> newAlphabet)
-
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 state, boolean accepting)
-
addState
public Integer addState(boolean accepting)
- Specified by:
addStatein interfaceMutableFSA<Integer,I>
-
clear
public void clear()
-
setStateProperty
public void setStateProperty(int stateId, @Nullable Boolean property)- Specified by:
setStatePropertyin interfaceMutableDeterministic.IntAbstraction<Integer,Boolean,Void>- Specified by:
setStatePropertyin classAbstractCompact<I,Integer,Boolean,Void>
-
getStateProperty
public Boolean getStateProperty(int stateId)
- Specified by:
getStatePropertyin interfaceUniversalDeterministicAutomaton.IntAbstraction<Integer,Boolean,Void>
-
isAccepting
public boolean isAccepting(int stateId)
-
isAccepting
public boolean isAccepting(Integer state)
- Specified by:
isAcceptingin interfaceAcceptorTS<Integer,I>
-
-