- java.lang.Object
-
- net.automatalib.ts.powerset.PowersetView<S,I,T>
-
- Type Parameters:
S- (original) state typeI- input symbol typeT- (original) transition type
- All Implemented Interfaces:
DeterministicTransitionSystem<Set<S>,I,Collection<T>>,PowersetViewTS<Set<S>,I,Collection<T>,S,T>,SimpleDTS<Set<S>,I>,SimpleTS<Set<S>,I>,TransitionSystem<Set<S>,I,Collection<T>>
- Direct Known Subclasses:
FastPowersetDTS
public class PowersetView<S,I,T> extends Object implements PowersetViewTS<Set<S>,I,Collection<T>,S,T>
A (default)PowersetViewTSimplementation that represents states and transitions of the original transition system viaSets andCollections.
-
-
Constructor Summary
Constructors Constructor Description PowersetView(TransitionSystem<S,I,T> ts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<S>getInitialState()Retrieves the initial state of this transition system.Collection<S>getOriginalStates(Set<S> state)Returns the original states that the given view state represents.Collection<T>getOriginalTransitions(Collection<T> transition)Returns the original transitions that the given view transition represents.Set<S>getSuccessor(Collection<T> transition)Retrieves the successor state of a given transition.Collection<T>getTransition(Set<S> state, I input)Retrieves the transition triggered by the given input symbol.-
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.DeterministicTransitionSystem
getSuccessor, getSuccessors, getTransitions, powersetView
-
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
-
-
-
-
Constructor Detail
-
PowersetView
public PowersetView(TransitionSystem<S,I,T> ts)
-
-
Method Detail
-
getInitialState
public Set<S> getInitialState()
Description copied from interface:SimpleDTSRetrieves the initial state of this transition system.- Specified by:
getInitialStatein interfaceSimpleDTS<S,I>- Returns:
- the initial state.
- See Also:
SimpleTS.getInitialStates()
-
getSuccessor
public Set<S> getSuccessor(Collection<T> transition)
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.
-
getTransition
public Collection<T> getTransition(Set<S> state, I input)
Description copied from interface:DeterministicTransitionSystemRetrieves the transition triggered by the given input symbol.- Specified by:
getTransitionin interfaceDeterministicTransitionSystem<S,I,T>- 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)
-
getOriginalStates
public Collection<S> getOriginalStates(Set<S> state)
Description copied from interface:PowersetViewTSReturns the original states that the given view state represents.- Specified by:
getOriginalStatesin interfacePowersetViewTS<Set<S>,I,Collection<T>,S,T>- Parameters:
state- the view state- Returns:
- the original states that the given view state represents
-
getOriginalTransitions
public Collection<T> getOriginalTransitions(Collection<T> transition)
Description copied from interface:PowersetViewTSReturns the original transitions that the given view transition represents.- Specified by:
getOriginalTransitionsin interfacePowersetViewTS<Set<S>,I,Collection<T>,S,T>- Parameters:
transition- the view transition- Returns:
- the original transitions that the given view transition represents
-
-