Package net.automatalib.automaton.base
Class AbstractFastMutable<S extends AbstractFastState<?>,I,T,SP,TP>
- java.lang.Object
-
- net.automatalib.automaton.base.AbstractFastMutable<S,I,T,SP,TP>
-
- All Implemented Interfaces:
Iterable<S>,SupportsGrowingAlphabet<I>,Automaton<S,I,T>,FiniteRepresentation,InputAlphabetHolder<I>,StateIDs<S>,StateLocalInput<S,I>,FiniteAlphabetAutomaton<S,I,T>,MutableAutomaton<S,I,T,SP,TP>,ShrinkableAutomaton<S,I,T,SP,TP>,SimpleAutomaton<S,I>,UniversalAutomaton<S,I,T,SP,TP>,UniversalFiniteAlphabetAutomaton<S,I,T,SP,TP>,GraphViewable,SimpleTS<S,I>,TransitionSystem<S,I,T>,UniversalTransitionSystem<S,I,T,SP,TP>
- Direct Known Subclasses:
AbstractFastMutableDet,AbstractFastMutableNondet
public abstract class AbstractFastMutable<S extends AbstractFastState<?>,I,T,SP,TP> extends Object implements ShrinkableAutomaton<S,I,T,SP,TP>, UniversalFiniteAlphabetAutomaton<S,I,T,SP,TP>, StateIDs<S>, SupportsGrowingAlphabet<I>, StateLocalInput<S,I>
Shared functionality for (non-) deterministic mutable automata.
-
-
Field Summary
Fields Modifier and Type Field Description protected Alphabet<I>inputAlphabet
-
Constructor Summary
Constructors Constructor Description AbstractFastMutable(Alphabet<I> inputAlphabet)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddAlphabetSymbol(I symbol)SaddState(@Nullable SP property)voidclear()<@Nullable V>
MutableMapping<S,V>createDynamicStateMapping()protected abstract ScreateState(@Nullable SP property)Alphabet<I>getInputAlphabet()SgetState(int id)intgetStateId(S state)Collection<S>getStates()voidremoveAllTransitions(S state)voidremoveState(S state, @Nullable S replacement)StateIDs<S>stateIDs()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.automatalib.automaton.FiniteAlphabetAutomaton
getTransitions, graphView
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface net.automatalib.automaton.MutableAutomaton
addInitialState, addInitialState, addState, addTransition, addTransition, addTransitions, copyTransition, createTransition, removeAllTransitions, removeTransition, setInitial, setStateProperty, setTransitionProperty, setTransitions
-
Methods inherited from interface net.automatalib.automaton.ShrinkableAutomaton
removeState
-
Methods inherited from interface net.automatalib.automaton.simple.SimpleAutomaton
createStaticStateMapping, iterator, size
-
Methods inherited from interface net.automatalib.ts.simple.SimpleTS
getInitialStates, getStates, getSuccessors, getSuccessors
-
Methods inherited from interface net.automatalib.automaton.concept.StateLocalInput
getLocalInputs
-
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.automaton.UniversalFiniteAlphabetAutomaton
transitionGraphView
-
Methods inherited from interface net.automatalib.ts.UniversalTransitionSystem
getStateProperty, getTransitionProperty
-
-
-
-
Method Detail
-
getStateId
public int getStateId(S state)
- Specified by:
getStateIdin interfaceStateIDs<S extends AbstractFastState<?>>
-
getState
public S getState(int id)
- Specified by:
getStatein interfaceStateIDs<S extends AbstractFastState<?>>
-
addState
public S addState(@Nullable SP property)
- Specified by:
addStatein interfaceMutableAutomaton<S extends AbstractFastState<?>,I,T,SP,TP>
-
removeAllTransitions
public void removeAllTransitions(S state)
- Specified by:
removeAllTransitionsin interfaceMutableAutomaton<S extends AbstractFastState<?>,I,T,SP,TP>
-
removeState
public void removeState(S state, @Nullable S replacement)
- Specified by:
removeStatein interfaceShrinkableAutomaton<S extends AbstractFastState<?>,I,T,SP,TP>
-
clear
public void clear()
- Specified by:
clearin interfaceMutableAutomaton<S extends AbstractFastState<?>,I,T,SP,TP>
-
getInputAlphabet
public Alphabet<I> getInputAlphabet()
- Specified by:
getInputAlphabetin interfaceInputAlphabetHolder<S extends AbstractFastState<?>>
-
createDynamicStateMapping
public <@Nullable V> MutableMapping<S,V> createDynamicStateMapping()
- Specified by:
createDynamicStateMappingin interfaceSimpleAutomaton<S extends AbstractFastState<?>,I>- Specified by:
createDynamicStateMappingin interfaceSimpleTS<S extends AbstractFastState<?>,I>
-
addAlphabetSymbol
public void addAlphabetSymbol(I symbol)
- Specified by:
addAlphabetSymbolin interfaceSupportsGrowingAlphabet<S extends AbstractFastState<?>>
-
getStates
public Collection<S> getStates()
- Specified by:
getStatesin interfaceSimpleAutomaton<S extends AbstractFastState<?>,I>
-
stateIDs
public StateIDs<S> stateIDs()
- Specified by:
stateIDsin interfaceSimpleAutomaton<S extends AbstractFastState<?>,I>
-
-