I - input symbol typeO - output symbol typepublic interface StateLocalInputSUL<I,O> extends SUL<I,O>
SULException when used in the next invocation of the SUL.step(Object) method return an otherwise "undefined" behavior.| Modifier and Type | Method and Description |
|---|---|
Collection<I> |
currentlyEnabledInputs()
Returns the enabled symbols for the current state of the
SUL. |
default StateLocalInputSUL<I,O> |
fork()
Forks this SUL, if possible.
|
Collection<I> currentlyEnabledInputs()
SUL.SULException - if the SUL cannot provide information about the currently enabled inputsdefault StateLocalInputSUL<I,O> fork()
SULSUL.pre() and
SUL.post().
If SUL.canFork() returns true, this method must return a non-null object, which should
behave exactly like this SUL (in particular, it must be forkable as well). Otherwise, a UnsupportedOperationException must 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.
Copyright © 2020. All rights reserved.