Interface IOSignal<I>

Type Parameters:
I - the type of the input and output signals
All Known Implementing Classes:
AbstractIOSignal, IOContinuousSignal, IODiscreteSignal

public interface IOSignal<I>
A signal with both input and output values.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.automatalib.word.Word<I>
    Returns the input signal.
    net.automatalib.word.Word<I>
    Returns the output signal.
    Returns the input symbol at the given index.
    default boolean
    Returns true if the signal is empty.
    default int
    Returns the number of steps of the signal.
    prefixes(boolean longestFirst)
    Returns all the prefix of the signal.
    int
    Returns the number of steps of the signal.
    Returns a stream of the signal.
    subWord(int fromIndex)
    Constructs a sub-signal of the signal.
    subWord(int fromIndex, int toIndex)
    Constructs a sub-signal of the signal.
    suffix(int suffixLen)
    Constructs a suffix of the signal.
    suffixes(boolean longestFirst)
    Constructs all suffixes of the signal.
  • Method Details

    • size

      int size()
      Returns the number of steps of the signal.
      Returns:
      the number of steps of the signal.
    • length

      default int length()
      Returns the number of steps of the signal.
      Returns:
      the number of steps of the signal.
    • stream

      Stream<IOSignalPiece<I>> stream()
      Returns a stream of the signal.
      Returns:
      the stream of the signal.
    • prefixes

      List<IOSignal<I>> prefixes(boolean longestFirst)
      Returns all the prefix of the signal.
      Parameters:
      longestFirst - if true, the longest prefixes are returned first.
      Returns:
      the list of prefixes of the signal.
    • suffixes

      List<IOSignal<I>> suffixes(boolean longestFirst)
      Constructs all suffixes of the signal.
      Parameters:
      longestFirst - if true, the longest suffixes are returned first.
      Returns:
      the list of suffixes of the signal.
    • suffix

      IOSignal<I> suffix(int suffixLen)
      Constructs a suffix of the signal.
      Parameters:
      suffixLen - the length of the suffix
      Returns:
      the suffix of the signal with the given length.
    • subWord

      IOSignal<I> subWord(int fromIndex)
      Constructs a sub-signal of the signal.
      Parameters:
      fromIndex - the start index (inclusive)
      Returns:
      the sub-signal of the signal from the given index (inclusive) to the end of the signal.
    • subWord

      IOSignal<I> subWord(int fromIndex, int toIndex)
      Constructs a sub-signal of the signal.
      Parameters:
      fromIndex - the start index (inclusive)
      toIndex - the end index (exclusive)
      Returns:
      the sub-signal of the signal from the given index (inclusive) to the given index (exclusive).
    • isEmpty

      default boolean isEmpty()
      Returns true if the signal is empty.
      Returns:
      true if the signal is empty.
    • getOutputSymbol

      I getOutputSymbol(int i)
      Returns the input symbol at the given index.
      Parameters:
      i - the index
    • getInputSignal

      net.automatalib.word.Word<I> getInputSignal()
      Returns the input signal.
      Returns:
      the input signal as a word.
    • getOutputSignal

      net.automatalib.word.Word<I> getOutputSignal()
      Returns the output signal.
      Returns:
      the output signal as a word.