Module net.automatalib.core
Class DefaultMMLTSemantics<S,I,T,O>
java.lang.Object
net.automatalib.automaton.mmlt.impl.DefaultMMLTSemantics<S,I,T,O>
- Type Parameters:
S- location type of the original MMLTI- input symbol of the original MMLTT- transition type of the original MMLTO- output symbol type of the original MMLT
- All Implemented Interfaces:
InitialState<State<S,,O>> InitialStates<State<S,,O>> InputAlphabetHolder<TimedInput<I>>,Output<TimedInput<I>,,Word<TimedOutput<O>>> SuffixOutput<TimedInput<I>,,Word<TimedOutput<O>>> TransitionOutput<MealyTransition<State<S,,O>, TimedOutput<O>>, TimedOutput<O>> MMLTSemantics<S,,I, MealyTransition<State<S, O>, TimedOutput<O>>, O> DeterministicOutputTS<State<S,,O>, TimedInput<I>, MealyTransition<State<S, O>, TimedOutput<O>>, Word<TimedOutput<O>>> DeterministicSuffixOutputTS<State<S,,O>, TimedInput<I>, MealyTransition<State<S, O>, TimedOutput<O>>, Word<TimedOutput<O>>> OutputTS<State<S,,O>, TimedInput<I>, MealyTransition<State<S, O>, TimedOutput<O>>, Word<TimedOutput<O>>> DeterministicTransitionSystem<State<S,,O>, TimedInput<I>, MealyTransition<State<S, O>, TimedOutput<O>>> DeterministicTraceableTS<State<S,,O>, TimedInput<I>, MealyTransition<State<S, O>, TimedOutput<O>>, TimedOutput<O>> DeterministicTransitionOutputTS<State<S,,O>, TimedInput<I>, MealyTransition<State<S, O>, TimedOutput<O>>, TimedOutput<O>> MealyTransitionSystem<State<S,,O>, TimedInput<I>, MealyTransition<State<S, O>, TimedOutput<O>>, TimedOutput<O>> SimpleDTS<State<S,,O>, TimedInput<I>> SimpleTS<State<S,,O>, TimedInput<I>> TransitionSystem<State<S,,O>, TimedInput<I>, MealyTransition<State<S, O>, TimedOutput<O>>> UniversalDTS<State<S,,O>, TimedInput<I>, MealyTransition<State<S, O>, TimedOutput<O>>, Void, TimedOutput<O>> UniversalTransitionSystem<State<S,O>, TimedInput<I>, MealyTransition<State<S, O>, TimedOutput<O>>, Void, TimedOutput<O>>
public class DefaultMMLTSemantics<S,I,T,O>
extends Object
implements MMLTSemantics<S,I,MealyTransition<State<S,O>,TimedOutput<O>>,O>
Default implementation for an
MMLTSemantics that wraps arbitrary MMLTs.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the initial state of a transition system.Returns the symbol used for silent outputs.getSuccessor(MealyTransition<State<S, O>, TimedOutput<O>> transition) Retrieves the successor state of a given transition.getTransition(State<S, O> source, TimedInput<I> input) Retrieves the transition triggered by the given input symbol.getTransition(State<S, O> source, TimedInput<I> input, long maxWaitingTime) Retrieves the transition in the semantics automaton that has the provided input and source configuration.getTransitionOutput(MealyTransition<State<S, O>, TimedOutput<O>> transition) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.automatalib.ts.output.DeterministicTraceableTS
computeStateOutput, computeSuffixOutput, traceMethods inherited from interface net.automatalib.ts.output.DeterministicTransitionOutputTS
getOutput, traceMethods inherited from interface net.automatalib.ts.DeterministicTransitionSystem
getSuccessor, getSuccessors, getTransitions, powersetViewMethods inherited from interface net.automatalib.automaton.concept.InitialState
getInitialStatesMethods inherited from interface net.automatalib.ts.output.MealyTransitionSystem
getStateProperty, getTransitionPropertyMethods inherited from interface net.automatalib.ts.simple.SimpleDTS
getState, getStates, getSuccessorMethods inherited from interface net.automatalib.ts.simple.SimpleTS
createDynamicStateMapping, createStaticStateMapping, getSuccessorsMethods inherited from interface net.automatalib.automaton.concept.SuffixOutput
computeOutputMethods inherited from interface net.automatalib.ts.UniversalDTS
getTransitionProperty
-
Constructor Details
-
DefaultMMLTSemantics
-
-
Method Details
-
getInputAlphabet
- Specified by:
getInputAlphabetin interfaceInputAlphabetHolder<S>
-
getSilentOutput
Description copied from interface:MMLTSemanticsReturns the symbol used for silent outputs.- Specified by:
getSilentOutputin interfaceMMLTSemantics<S,I, T, O> - Returns:
- the silent output symbol
-
getInitialState
Description copied from interface:InitialStateRetrieves the initial state of a transition system.- Specified by:
getInitialStatein interfaceInitialState<S>- Returns:
- the initial state
- See Also:
-
getTransition
public MealyTransition<State<S,O>, getTransitionTimedOutput<O>> (State<S, O> source, TimedInput<I> input) Description copied from interface:DeterministicTransitionSystemRetrieves the transition triggered by the given input symbol.- Specified by:
getTransitionin interfaceDeterministicTransitionSystem<S,I, T> - Parameters:
source- the source state.input- the input symbol.- Returns:
- the transition triggered by the given input symbol, or
nullif no transition is triggered. - See Also:
-
getTransition
public MealyTransition<State<S,O>, getTransitionTimedOutput<O>> (State<S, O> source, TimedInput<I> input, long maxWaitingTime) Description copied from interface:MMLTSemanticsRetrieves the transition in the semantics automaton that has the provided input and source configuration.If the input is a sequence of time steps, the target of the transition is the configuration reached after executing all time steps. The output of the transition is the output of the time step that was executed last. This output might belong to a timeout or be silence. The delay of this output is set to zero.
Please note that a sequence with more than one time step may trigger multiple timeouts. Regardless of that, only the output at the last time step is returned.
- Specified by:
getTransitionin interfaceMMLTSemantics<S,I, T, O> - Parameters:
source- the source configurationinput- the input symbolmaxWaitingTime- the maximum time steps to wait for a timeout- Returns:
- the transition in semantics automaton
-
getTransitionOutput
- Specified by:
getTransitionOutputin interfaceTransitionOutput<S,I>
-
getSuccessor
Description copied from interface:TransitionSystemRetrieves the successor state of a given transition.- Specified by:
getSuccessorin interfaceTransitionSystem<S,I, T> - Parameters:
transition- the transition.- Returns:
- the successor state.
-