Package net.automatalib.automaton
Interface MutableAutomaton<S,I,T,SP,TP>
-
- Type Parameters:
S- state class.I- input symbol class.T- transition class.SP- state property.TP- transition property.
- All Superinterfaces:
Automaton<S,I,T>,FiniteRepresentation,Iterable<S>,SimpleAutomaton<S,I>,SimpleTS<S,I>,TransitionSystem<S,I,T>,UniversalAutomaton<S,I,T,SP,TP>,UniversalTransitionSystem<S,I,T,SP,TP>
- All Known Subinterfaces:
MutableDeterministic<S,I,T,SP,TP>,MutableDFA<S,I>,MutableFSA<S,I>,MutableMealyMachine<S,I,T,O>,MutableModalTransitionSystem<S,I,T,TP>,MutableMooreMachine<S,I,T,O>,MutableNFA<S,I>,MutableProbabilisticMealy<S,I,T,O>,MutableSubsequentialTransducer<S,I,T,O>,ShrinkableAutomaton<S,I,T,SP,TP>,ShrinkableDeterministic<S,I,T,SP,TP>
public interface MutableAutomaton<S,I,T,SP,TP> extends UniversalAutomaton<S,I,T,SP,TP>
A mutable automaton. This interface adds support for non-destructive modifications, i.e., adding and modifying states and transitions. If also removal of states and single transitions (from the set of outgoing transitions) should be removed, thenShrinkableAutomatonis the adequate interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default SaddInitialState()default SaddInitialState(@Nullable SP property)default SaddState()SaddState(@Nullable SP property)Adds a state to the automaton.default TaddTransition(S state, I input, S successor, TP properties)default voidaddTransition(S state, I input, T transition)default voidaddTransitions(S state, I input, Collection<? extends T> transitions)voidclear()Removes all states and transitions.default TcopyTransition(T trans, S succ)TcreateTransition(S successor, TP properties)voidremoveAllTransitions(S state)default voidremoveAllTransitions(S state, I input)default voidremoveTransition(S state, I input, T transition)voidsetInitial(S state, boolean initial)voidsetStateProperty(S state, SP property)voidsetTransitionProperty(T transition, TP property)voidsetTransitions(S state, I input, Collection<? extends T> transitions)-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
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, getSuccessors
-
Methods inherited from interface net.automatalib.ts.TransitionSystem
getSuccessor, getSuccessors, getTransitions, powersetView
-
Methods inherited from interface net.automatalib.automaton.UniversalAutomaton
transitionGraphView
-
Methods inherited from interface net.automatalib.ts.UniversalTransitionSystem
getStateProperty, getTransitionProperty
-
-
-
-
Method Detail
-
clear
void clear()
Removes all states and transitions.
-
addState
default S addState()
-
addInitialState
default S addInitialState()
-
setInitial
void setInitial(S state, boolean initial)
-
addTransitions
default void addTransitions(S state, I input, Collection<? extends T> transitions)
-
setTransitions
void setTransitions(S state, I input, Collection<? extends T> transitions)
-
removeAllTransitions
void removeAllTransitions(S state)
-
-