Package net.maswag.falcaun
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 TypeMethodDescriptionnet.automatalib.word.Word
<I> Returns the input signal.net.automatalib.word.Word
<I> Returns the output signal.getOutputSymbol
(int i) Returns the input symbol at the given index.default boolean
isEmpty()
Returns true if the signal is empty.default int
length()
Returns the number of steps of the signal.prefixes
(boolean longestFirst) Returns all the prefix of the signal.int
size()
Returns the number of steps of the signal.stream()
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
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
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
Constructs a suffix of the signal.- Parameters:
suffixLen
- the length of the suffix- Returns:
- the suffix of the signal with the given length.
-
subWord
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
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
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.
-