- java.lang.Object
-
- net.automatalib.automaton.procedural.impl.EmptySPMM<I,O>
-
- Type Parameters:
I- input symbol typeO- output symbol type
- All Implemented Interfaces:
FiniteRepresentation,InputAlphabetHolder<I>,Output<I,Word<O>>,SuffixOutput<I,Word<O>>,TransitionOutput<Void,O>,SPMM<Void,I,Void,O>,GraphViewable,DeterministicTransitionSystem<Void,I,Void>,DeterministicOutputTS<Void,I,Void,O>,DeterministicTransitionOutputTS<Void,I,Void,O>,MealyTransitionSystem<Void,I,Void,O>,SimpleDTS<Void,I>,SimpleTS<Void,I>,TransitionSystem<Void,I,Void>,UniversalDTS<Void,I,Void,Void,O>,UniversalTransitionSystem<Void,I,Void,Void,O>
public class EmptySPMM<I,O> extends Object implements SPMM<Void,I,Void,O>
A utility implementation of anSPMMthat transduces all input words to a sequence of the given erroneous output symbol.
-
-
Constructor Summary
Constructors Constructor Description EmptySPMM(ProceduralInputAlphabet<I> alphabet, O errorOutput)
-
Method Summary
All Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description Word<O>computeSuffixOutput(Iterable<? extends I> prefix, Iterable<? extends I> suffix)OgetErrorOutput()Returns the output symbol that identifies erroneous transitions.@Nullable IgetInitialProcedure()@Nullable VoidgetInitialState()Retrieves the initial state of this transition system.ProceduralInputAlphabet<I>getInputAlphabet()default Collection<I>getProceduralInputs()Convenience method forgetProceduralInputs(Collection)which uses theinput alphabetofthissystem asconstraints.default @Nullable MgetProcedure(I callSymbol)Convenience method forgetProcedures()to quickly return the procedure of a given call symbol.Map<I,MealyMachine<?,I,?,O>>getProcedures()VoidgetSuccessor(Void transition)Retrieves the successor state of a given transition.VoidgetTransition(Void state, I input)Retrieves the transition triggered by the given input symbol.OgetTransitionOutput(Void transition)default Graph<?,?>graphView()default intsize()Returns the size ofthissystem which is given by the sum of the sizes of allprocedures.-
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.output.DeterministicOutputTS
trace
-
Methods inherited from interface net.automatalib.ts.output.DeterministicTransitionOutputTS
getOutput, trace
-
Methods inherited from interface net.automatalib.ts.DeterministicTransitionSystem
getSuccessor, getSuccessors, getTransitions, powersetView
-
Methods inherited from interface net.automatalib.ts.output.MealyTransitionSystem
getStateProperty, getTransitionProperty
-
Methods inherited from interface net.automatalib.ts.simple.SimpleDTS
getInitialStates, getState, getStates, getSuccessor
-
Methods inherited from interface net.automatalib.ts.simple.SimpleTS
createDynamicStateMapping, createStaticStateMapping, getSuccessors
-
Methods inherited from interface net.automatalib.automaton.procedural.SPMM
getProceduralInputs, isErrorOutput
-
Methods inherited from interface net.automatalib.automaton.concept.SuffixOutput
computeOutput
-
Methods inherited from interface net.automatalib.ts.UniversalDTS
getTransitionProperty
-
-
-
-
Constructor Detail
-
EmptySPMM
public EmptySPMM(ProceduralInputAlphabet<I> alphabet, O errorOutput)
-
-
Method Detail
-
getInputAlphabet
public ProceduralInputAlphabet<I> getInputAlphabet()
- Specified by:
getInputAlphabetin interfaceInputAlphabetHolder<I>
-
getErrorOutput
public O getErrorOutput()
Description copied from interface:SPMMReturns the output symbol that identifies erroneous transitions. Note that for the validity of thisSPMM, each transition labeled with this output symbol must lead into a sink state that continues to output this symbol.
-
getProcedures
public Map<I,MealyMachine<?,I,?,O>> getProcedures()
-
computeSuffixOutput
public Word<O> computeSuffixOutput(Iterable<? extends I> prefix, Iterable<? extends I> suffix)
- Specified by:
computeSuffixOutputin interfaceSPMM<Void,I,Void,O>- Specified by:
computeSuffixOutputin interfaceSuffixOutput<I,O>
-
getTransition
public Void getTransition(Void state, I input)
Description copied from interface:DeterministicTransitionSystemRetrieves the transition triggered by the given input symbol.- Specified by:
getTransitionin interfaceDeterministicTransitionSystem<Void,I,Void>- Parameters:
state- the source state.input- the input symbol.- Returns:
- the transition triggered by the given input symbol, or
nullif no transition is triggered. - See Also:
TransitionSystem.getTransitions(Object, Object)
-
getInitialState
public @Nullable Void getInitialState()
Description copied from interface:SimpleDTSRetrieves the initial state of this transition system.- Specified by:
getInitialStatein interfaceSimpleDTS<I,O>- Returns:
- the initial state.
- See Also:
SimpleTS.getInitialStates()
-
getTransitionOutput
public O getTransitionOutput(Void transition)
- Specified by:
getTransitionOutputin interfaceTransitionOutput<I,O>
-
getSuccessor
public Void getSuccessor(Void transition)
Description copied from interface:TransitionSystemRetrieves the successor state of a given transition.- Specified by:
getSuccessorin interfaceTransitionSystem<Void,I,Void>- Parameters:
transition- the transition.- Returns:
- the successor state.
-
getProceduralInputs
public default Collection<I> getProceduralInputs()
Convenience method forgetProceduralInputs(Collection)which uses theinput alphabetofthissystem asconstraints.- Returns:
- a collection of defined inputs for
thissystem's procedures.
-
getProcedure
public default @Nullable M getProcedure(I callSymbol)
Convenience method forgetProcedures()to quickly return the procedure of a given call symbol.- Parameters:
callSymbol- the call symbol- Returns:
- the corresponding procedure. May be
nullifthissystem does not have a procedure for the given call symbol. - See Also:
getProcedures()
-
size
public default int size()
Returns the size ofthissystem which is given by the sum of the sizes of allprocedures. Note that this value does not necessarily correspond to the classical notion ofSimpleAutomaton.size(), since semantically aProceduralSystemmay be infinite-sizedSimpleTS.- Specified by:
sizein interfaceFiniteRepresentation- Returns:
- the size of
thissystem
-
graphView
public default Graph<?,?> graphView()
- Specified by:
graphViewin interfaceGraphViewable
-
-