Package net.automatalib.alphabet
Class DefaultProceduralOutputAlphabet<O>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<I>
-
- net.automatalib.alphabet.AbstractAlphabet<I>
-
- net.automatalib.alphabet.MapAlphabet<O>
-
- net.automatalib.alphabet.DefaultProceduralOutputAlphabet<O>
-
- Type Parameters:
O
- input symbol type
- All Implemented Interfaces:
Iterable<O>
,Collection<O>
,Comparator<O>
,IntFunction<O>
,ToIntFunction<O>
,List<O>
,Alphabet<O>
,ProceduralOutputAlphabet<O>
,ArrayWritable<O>
public class DefaultProceduralOutputAlphabet<O> extends MapAlphabet<O> implements ProceduralOutputAlphabet<O>
Default implementation of aProceduralOutputAlphabet
.
-
-
Field Summary
-
Fields inherited from class net.automatalib.alphabet.MapAlphabet
indexMap, symbols
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description DefaultProceduralOutputAlphabet(Alphabet<O> regularAlphabet, O errorSymbol)
-
Method Summary
All Methods Instance Methods Concrete 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.-
Methods inherited from class net.automatalib.alphabet.MapAlphabet
containsSymbol, getSymbol, getSymbolIndex, size
-
Methods inherited from class net.automatalib.alphabet.AbstractAlphabet
get, reversed
-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
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
parallelStream, removeIf, stream
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Methods inherited from interface net.automatalib.alphabet.ProceduralOutputAlphabet
isErrorSymbol
-
-
-
-
Method Detail
-
getRegularAlphabet
public Alphabet<O> getRegularAlphabet()
Description copied from interface:ProceduralOutputAlphabet
Returns the regular output symbols of this alphabet. Note that this alphabet must not contain theerror symbol
.- Specified by:
getRegularAlphabet
in interfaceProceduralOutputAlphabet<O>
- Returns:
- the regular output symbols of this alphabet
-
getErrorSymbol
public O getErrorSymbol()
Description copied from interface:ProceduralOutputAlphabet
Returns the error symbol of this alphabet.- Specified by:
getErrorSymbol
in interfaceProceduralOutputAlphabet<O>
- Returns:
- the error symbol
-
-