Package net.automatalib.alphabet
Class GrowingVPAlphabet<I>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<I>
-
- net.automatalib.alphabet.AbstractAlphabet<I>
-
- net.automatalib.alphabet.AbstractVPAlphabet<VPSym<I>>
-
- net.automatalib.alphabet.GrowingVPAlphabet<I>
-
- Type Parameters:
I- input symbol type
- All Implemented Interfaces:
Iterable<VPSym<I>>,Collection<VPSym<I>>,Comparator<VPSym<I>>,IntFunction<VPSym<I>>,ToIntFunction<VPSym<I>>,List<VPSym<I>>,Alphabet<VPSym<I>>,VPAlphabet<VPSym<I>>,ArrayWritable<VPSym<I>>
public class GrowingVPAlphabet<I> extends AbstractVPAlphabet<VPSym<I>> implements VPAlphabet<VPSym<I>>
AVPAlphabetimplementation that allows to add new symbols after its construction. Wraps input symbols in aVPSyminstance to allow faster mappings from symbols to indexes.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.automatalib.alphabet.VPAlphabet
VPAlphabet.SymbolType
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description GrowingVPAlphabet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VPSym<I>addNewSymbol(I userObject, VPAlphabet.SymbolType type)booleancontainsSymbol(VPSym<I> symbol)VPSym<I>getSymbol(int index)intgetSymbolIndex(VPSym<I> symbol)VPAlphabet.SymbolTypegetSymbolType(VPSym<I> symbol)intsize()-
Methods inherited from class net.automatalib.alphabet.AbstractVPAlphabet
getCallAlphabet, getCallSymbol, getCallSymbolIndex, getInternalAlphabet, getInternalSymbol, getInternalSymbolIndex, getNumCalls, getNumInternals, getNumReturns, getReturnAlphabet, getReturnSymbol, getReturnSymbolIndex, isCallSymbol, isInternalSymbol, isReturnSymbol
-
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, translateFrom, writeToArray
-
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.VPAlphabet
callReturnBalance, getCallAlphabet, getCallSymbol, getCallSymbolIndex, getInternalAlphabet, getInternalSymbol, getInternalSymbolIndex, getNumCalls, getNumInternals, getNumReturns, getReturnAlphabet, getReturnSymbol, getReturnSymbolIndex, isCallMatched, isCallSymbol, isInternalSymbol, isReturnMatched, isReturnSymbol, isWellMatched, longestWellMatchedPrefix, longestWellMatchedSuffix
-
-
-
-
Method Detail
-
addNewSymbol
public VPSym<I> addNewSymbol(I userObject, VPAlphabet.SymbolType type)
-
getSymbolType
public VPAlphabet.SymbolType getSymbolType(VPSym<I> symbol)
- Specified by:
getSymbolTypein interfaceVPAlphabet<I>- Overrides:
getSymbolTypein classAbstractVPAlphabet<VPSym<I>>
-
size
public int size()
- Specified by:
sizein interfaceArrayWritable<I>- Specified by:
sizein interfaceCollection<I>- Specified by:
sizein interfaceList<I>- Overrides:
sizein classAbstractVPAlphabet<VPSym<I>>
-
getSymbolIndex
public int getSymbolIndex(VPSym<I> symbol)
- Specified by:
getSymbolIndexin interfaceAlphabet<I>- Overrides:
getSymbolIndexin classAbstractVPAlphabet<VPSym<I>>
-
containsSymbol
public boolean containsSymbol(VPSym<I> symbol)
- Specified by:
containsSymbolin interfaceAlphabet<I>- Overrides:
containsSymbolin classAbstractVPAlphabet<VPSym<I>>
-
-