Class IODiscreteSignal<I>

java.lang.Object
net.maswag.falcaun.AbstractIOSignal<I>
net.maswag.falcaun.IODiscreteSignal<I>
Type Parameters:
I - the type of the input and output signals
All Implemented Interfaces:
IOSignal<I>

public class IODiscreteSignal<I> extends AbstractIOSignal<I>
A discrete-time signal with both input and output values.
  • Constructor Details

    • IODiscreteSignal

      public IODiscreteSignal(net.automatalib.word.Word<I> inputSignal, net.automatalib.word.Word<I> outputSignal)
  • Method Details

    • stream

      public Stream<IOSignalPiece<I>> stream()
      Description copied from interface: IOSignal
      Returns a stream of the signal.
      Returns:
      the stream of the signal.
    • prefixes

      public List<IOSignal<I>> prefixes(boolean longestFirst)
      Description copied from interface: IOSignal
      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

      public List<IOSignal<I>> suffixes(boolean longestFirst)
      Description copied from interface: IOSignal
      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

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

      public IOSignal<I> subWord(int fromIndex)
      Description copied from interface: IOSignal
      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

      public 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).