Interface NumericSUL

All Superinterfaces:
AutoCloseable, SUL<List<Double>,IOSignalPiece<List<Double>>>
All Known Subinterfaces:
ContinuousNumericSUL

public interface NumericSUL extends SUL<List<Double>,IOSignalPiece<List<Double>>>, AutoCloseable
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 Type
    Method
    Description
    void
    Clear the counter and the time measure.
    default IOSignal<List<Double>>
    execute(net.automatalib.word.Word<List<Double>> inputSignal)
    Executes an input word from the initial state and returns its input/output signal.
    int
    Returns the number of the executions of the SUL.
    double
    Returns the execution time for the simulations
    default void
    default void
    pre()

    Methods inherited from interface java.lang.AutoCloseable

    close

    Methods inherited from interface de.learnlib.sul.SUL

    canFork, fork, step
  • 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 using SUL.step(Object), and calls post() in a finally block. Thus, post() is called even if a step fails, provided pre() completed successfully.

      Implementations may override this method for backend-specific batch execution without individually calling pre(), step(), or post().

      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:
      InterruptedException
      ExecutionException
    • 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() or execute(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()
      Specified by:
      pre in interface SUL<List<Double>,IOSignalPiece<List<Double>>>
    • post

      default void post()
      Specified by:
      post in interface SUL<List<Double>,IOSignalPiece<List<Double>>>