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() |
default StateLocalInputSUL<I,O> |
fork()
Forks this SUL, if possible.
|
Collection<I> currentlyEnabledInputs()
default StateLocalInputSUL<I,O> fork() throws UnsupportedOperationException
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.
fork in interface SUL<I,O>UnsupportedOperationException - if this SUL can't be forked.Copyright © 2019. All rights reserved.