Package net.automatalib.alphabet
Interface ProceduralOutputAlphabet<O>
-
- Type Parameters:
O
- output symbol type
- All Superinterfaces:
Alphabet<O>
,ArrayWritable<O>
,Collection<O>
,Comparator<O>
,IntFunction<O>
,Iterable<O>
,ToIntFunction<O>
- All Known Implementing Classes:
DefaultProceduralOutputAlphabet
public interface ProceduralOutputAlphabet<O> extends Alphabet<O>
A specializedAlphabet
for procedural systems that combines a regular output alphabet with a designated error symbol.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description O
getErrorSymbol()
Returns the error symbol of this alphabet.Alphabet<O>
getRegularAlphabet()
Returns the regular output symbols of this alphabet.default boolean
isErrorSymbol(O symbol)
-
Methods inherited from interface net.automatalib.alphabet.Alphabet
apply, applyAsInt, compare, containsSymbol, getSymbol, getSymbolIndex, translateFrom, writeToArray
-
Methods inherited from interface net.automatalib.common.smartcollection.ArrayWritable
size
-
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
getRegularAlphabet
Alphabet<O> getRegularAlphabet()
Returns the regular output symbols of this alphabet. Note that this alphabet must not contain theerror symbol
.- Returns:
- the regular output symbols of this alphabet
-
getErrorSymbol
O getErrorSymbol()
Returns the error symbol of this alphabet.- Returns:
- the error symbol
-
isErrorSymbol
default boolean isErrorSymbol(O symbol)
- Parameters:
symbol
- the symbol to check- Returns:
true
ifsymbol
equals this alphabet'serror symbol
,false
otherwise.
-
-