Module de.learnlib.driver.simulator
Package de.learnlib.driver.simulator
Class ObservableMealySimulatorSUL<S,I,O>
java.lang.Object
de.learnlib.driver.simulator.MealySimulatorSUL<I,O>
de.learnlib.driver.simulator.ObservableMealySimulatorSUL<S,I,O>
- All Implemented Interfaces:
ObservableSUL<S,,I, O> SUL<I,O>
public class ObservableMealySimulatorSUL<S,I,O>
extends MealySimulatorSUL<I,O>
implements ObservableSUL<S,I,O>
-
Constructor Summary
ConstructorsConstructorDescriptionObservableMealySimulatorSUL(MealyMachine<S, I, ?, O> mealy) ObservableMealySimulatorSUL(MealyMachine<S, I, ?, O> mealy, O noTransOut) -
Method Summary
Methods inherited from class de.learnlib.driver.simulator.MealySimulatorSUL
canFork, post, pre, stepMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.learnlib.sul.ObservableSUL
deepCopies
-
Constructor Details
-
ObservableMealySimulatorSUL
-
ObservableMealySimulatorSUL
-
-
Method Details
-
getState
Description copied from interface:ObservableSULReturns the current state of the system.Implementation note: it is important that the returned Object has a well-defined
Object.equals(Object)method, and a goodObject.hashCode()function.- Specified by:
getStatein interfaceObservableSUL<S,I, O> - Returns:
- the current state of the system.
-
fork
Description copied from interface:SULForks this SUL, if possible. The fork of a SUL is a copy which behaves exactly the same as this SUL. This method should always return a reset SUL, regardless of whether this call is made between a call toSUL.pre()andSUL.post().If
SUL.canFork()returnstrue, this method must return a non-nullobject, which should behave exactly like this SUL (in particular, it must be forkable as well). Otherwise, aUnsupportedOperationExceptionmust be thrown.Implementation note: if resetting a SUL changes the internal state of this object in a non-trivial way (e.g., incrementing a counter to ensure independent sessions), care must be taken that forks of this SUL manipulate the same internal state.
-