- java.lang.Object
-
- net.automatalib.automaton.procedural.impl.EmptySBA<I>
-
- Type Parameters:
I- input symbol type
- All Implemented Interfaces:
FiniteRepresentation,InputAlphabetHolder<I>,Output<I,Boolean>,SuffixOutput<I,Boolean>,SBA<Void,I>,GraphViewable,AcceptorTS<Void,I>,DeterministicAcceptorTS<Void,I>,DeterministicTransitionSystem<Void,I,Void>,SimpleDTS<Void,I>,SimpleTS<Void,I>,TransitionSystem<Void,I,Void>,UniversalDTS<Void,I,Void,Boolean,Void>,UniversalTransitionSystem<Void,I,Void,Boolean,Void>
public class EmptySBA<I> extends Object implements SBA<Void,I>
A utility implementation of anSBAthat rejects all inputs, i.e., which describes the empty language.
-
-
Constructor Summary
Constructors Constructor Description EmptySBA(ProceduralInputAlphabet<I> alphabet)
-
Method Summary
All Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description @Nullable IgetInitialProcedure()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,DFA<?,I>>getProcedures()VoidgetTransition(Void state, I input)Retrieves the transition triggered by the given input symbol.default Graph<?,?>graphView()booleanisAccepting(Void state)Checks whether the given state is accepting.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.acceptor.AcceptorTS
getStateProperty, getSuccessor, getTransitionProperty
-
Methods inherited from interface net.automatalib.ts.acceptor.DeterministicAcceptorTS
accepts, computeOutput, computeSuffixOutput, isAccepting, powersetView
-
Methods inherited from interface net.automatalib.ts.DeterministicTransitionSystem
getSuccessor, getSuccessors, getTransitions
-
Methods inherited from interface net.automatalib.automaton.procedural.SBA
getProceduralInputs
-
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.ts.UniversalDTS
getTransitionProperty
-
-
-
-
Constructor Detail
-
EmptySBA
public EmptySBA(ProceduralInputAlphabet<I> alphabet)
-
-
Method Detail
-
getInputAlphabet
public ProceduralInputAlphabet<I> getInputAlphabet()
- Specified by:
getInputAlphabetin interfaceInputAlphabetHolder<I>
-
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)
-
isAccepting
public boolean isAccepting(Void state)
Description copied from interface:AcceptorTSChecks whether the given state is accepting.- Specified by:
isAcceptingin interfaceAcceptorTS<Void,I>- Parameters:
state- the state- Returns:
trueif the state is accepting,falseotherwise.
-
getInitialState
public Void getInitialState()
Description copied from interface:SimpleDTSRetrieves the initial state of this transition system.- Specified by:
getInitialStatein interfaceSimpleDTS<Void,I>- Returns:
- the initial state.
- See Also:
SimpleTS.getInitialStates()
-
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
-
-