Package net.maswag.falcaun
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
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractIOSignal(net.automatalib.word.Word<I> inputSignal, net.automatalib.word.Word<I> outputSignal) Constructs an instance of AbstractIOSignal with the given input and output signals. -
Method Summary
Modifier and TypeMethodDescriptiongetOutputSymbol(int i) Retrieves the output symbol at the specified index.intsize()Returns the size of the input signal.
-
Field Details
-
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. -
getOutputSymbol
Retrieves the output symbol at the specified index.- Specified by:
getOutputSymbolin interfaceIOSignal<I>- Parameters:
i- The index of the output symbol to retrieve.- Returns:
- The output symbol at the specified index.
-