Package net.maswag.falcaun
Interface NumericSUL
- All Superinterfaces:
AutoCloseable,SUL<List<Double>,IOSignalPiece<List<Double>>>
- All Known Subinterfaces:
ContinuousNumericSUL
A
SUL with numerical inputs and outputs.
In addition to the step-wise execution defined by SUL, this interface supports
full-word execution through execute(Word).
- Author:
- Masaki Waga <masakiwaga@gmail.com>
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the counter and the time measure.Executes an input word from the initial state and returns its input/output signal.intReturns the number of the executions of the SUL.doubleReturns the execution time for the simulationsdefault voidpost()default voidpre()Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
execute
default IOSignal<List<Double>> execute(net.automatalib.word.Word<List<Double>> inputSignal) throws InterruptedException, ExecutionException Executes an input word from the initial state and returns its input/output signal.The default implementation calls
pre(), executes each input usingSUL.step(Object), and callspost()in afinallyblock. Thus,post()is called even if a step fails, providedpre()completed successfully.Implementations may override this method for backend-specific batch execution without individually calling
pre(),step(), orpost().Batch execution must not be interleaved with an active step-wise execution session.
- Parameters:
inputSignal- the input word- Returns:
- the corresponding input/output signal, with one output per input symbol
- Throws:
InterruptedExceptionExecutionException
-
getExecutionCount
int getExecutionCount()Returns the number of the executions of the SUL.What is counted as an execution is backend specific. Typically, it is the number of the sessions, i.e., the calls of
pre()orexecute(Word). -
getSimulationTimeSecond
double getSimulationTimeSecond()Returns the execution time for the simulations -
clear
void clear()Clear the counter and the time measure. -
pre
default void pre() -
post
default void post()
-