I - input symbol typepublic class GrowingVPDAlphabet<I> extends AbstractVPDAlphabet<VPDSym<I>> implements VPDAlphabet<VPDSym<I>>
VPDAlphabet implementation that allows to add new symbols after its construction.
Wraps input symbols in a VPDSym instance to allow faster mappings from symbols to indexes.VPDAlphabet.SymbolTypemodCount| Constructor and Description |
|---|
GrowingVPDAlphabet() |
| Modifier and Type | Method and Description |
|---|---|
VPDSym<I> |
addNewSymbol(I userObject,
VPDAlphabet.SymbolType type) |
boolean |
containsSymbol(VPDSym<I> symbol) |
VPDSym<I> |
getSymbol(int index) |
int |
getSymbolIndex(VPDSym<I> symbol) |
VPDAlphabet.SymbolType |
getSymbolType(VPDSym<I> symbol) |
int |
size() |
getCallAlphabet, getCallSymbol, getCallSymbolIndex, getInternalAlphabet, getInternalSymbol, getInternalSymbolIndex, getNumCalls, getNumInternals, getNumReturns, getReturnAlphabet, getReturnSymbol, getReturnSymbolIndexgetadd, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcallReturnBalance, getCallAlphabet, getCallSymbol, getCallSymbolIndex, getInternalAlphabet, getInternalSymbol, getInternalSymbolIndex, getNumCalls, getNumInternals, getNumReturns, getReturnAlphabet, getReturnSymbol, getReturnSymbolIndex, isCallMatched, isCallSymbol, isInternalSymbol, isReturnMatched, isReturnSymbol, isWellMatched, longestWellMatchedPrefix, longestWellMatchedSuffixapply, applyAsInt, compare, translateFrom, writeToArrayadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArraycomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArraypublic VPDSym<I> addNewSymbol(I userObject, VPDAlphabet.SymbolType type)
public VPDAlphabet.SymbolType getSymbolType(VPDSym<I> symbol)
getSymbolType in interface VPDAlphabet<VPDSym<I>>getSymbolType in class AbstractVPDAlphabet<VPDSym<I>>public int size()
public int getSymbolIndex(VPDSym<I> symbol)
getSymbolIndex in interface Alphabet<VPDSym<I>>getSymbolIndex in class AbstractVPDAlphabet<VPDSym<I>>public boolean containsSymbol(VPDSym<I> symbol)
containsSymbol in interface Alphabet<VPDSym<I>>containsSymbol in class AbstractVPDAlphabet<VPDSym<I>>Copyright © 2020. All rights reserved.