Class AbstractIOSignal<I>

java.lang.Object
net.maswag.falcaun.AbstractIOSignal<I>
Type Parameters:
I - Type of the input symbols
All Implemented Interfaces:
IOSignal<I>
Direct Known Subclasses:
IOContinuousSignal, IODiscreteSignal

public abstract class AbstractIOSignal<I> extends Object implements IOSignal<I>
Abstract class representing an Input-Output (IO) signal. This class provides a framework for handling input and output signals in a system, ensuring that the input and output signals have the same length.
  • Field Details

    • inputSignal

      net.automatalib.word.Word<I> inputSignal
      The input signal represented as a Word.
    • outputSignal

      net.automatalib.word.Word<I> outputSignal
      The output signal represented as a Word.
  • Constructor Details

    • AbstractIOSignal

      public AbstractIOSignal(net.automatalib.word.Word<I> inputSignal, net.automatalib.word.Word<I> outputSignal)
      Constructs an instance of AbstractIOSignal with the given input and output signals.
      Parameters:
      inputSignal - The input signal as a Word.
      outputSignal - The output signal as a Word. Must have the same length as the input signal.
  • Method Details

    • size

      public int size()
      Returns the size of the input signal.
      Specified by:
      size in interface IOSignal<I>
      Returns:
      The number of symbols in the input signal.
    • getOutputSymbol

      public I getOutputSymbol(int i)
      Retrieves the output symbol at the specified index.
      Specified by:
      getOutputSymbol in interface IOSignal<I>
      Parameters:
      i - The index of the output symbol to retrieve.
      Returns:
      The output symbol at the specified index.