I
- input alphabet typepublic interface VPDAlphabet<I> extends Alphabet<I>
Modifier and Type | Interface and Description |
---|---|
static class |
VPDAlphabet.SymbolType |
Modifier and Type | Method and Description |
---|---|
default int |
callReturnBalance(Word<I> word) |
Alphabet<I> |
getCallAlphabet() |
I |
getCallSymbol(int index)
The
Alphabet.getSymbol(int) variant for the call alphabet. |
int |
getCallSymbolIndex(I symbol)
The
Alphabet.getSymbolIndex(Object) variant for the call alphabet. |
Alphabet<I> |
getInternalAlphabet() |
I |
getInternalSymbol(int index)
The
Alphabet.getSymbol(int) variant for the internal alphabet. |
int |
getInternalSymbolIndex(I symbol)
The
Alphabet.getSymbolIndex(Object) variant for the internal alphabet. |
int |
getNumCalls() |
int |
getNumInternals() |
int |
getNumReturns() |
Alphabet<I> |
getReturnAlphabet() |
I |
getReturnSymbol(int index)
The
Alphabet.getSymbol(int) variant for the return alphabet. |
int |
getReturnSymbolIndex(I symbol)
The
Alphabet.getSymbolIndex(Object) variant for the return alphabet. |
VPDAlphabet.SymbolType |
getSymbolType(I symbol)
Returns the
symbol type of the given alphabet symbol. |
default boolean |
isCallMatched(Word<I> word) |
default boolean |
isCallSymbol(I symbol) |
default boolean |
isInternalSymbol(I symbol) |
default boolean |
isReturnMatched(Word<I> word) |
default boolean |
isReturnSymbol(I symbol) |
default boolean |
isWellMatched(Word<I> word) |
default Word<I> |
longestWellMatchedPrefix(Word<I> word) |
default Word<I> |
longestWellMatchedSuffix(Word<I> word) |
apply, applyAsInt, compare, containsSymbol, getSymbol, getSymbolIndex, translateFrom, writeToArray
size
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
I getCallSymbol(int index)
Alphabet.getSymbol(int)
variant for the call alphabet.index
- the index of the symbolIllegalArgumentException
- if there is no symbol with this indexint getCallSymbolIndex(I symbol)
Alphabet.getSymbolIndex(Object)
variant for the call alphabet.symbol
- the symbol whose index should be determinedIllegalArgumentException
- if the provided symbol does not belong to the call alphabet.int getNumCalls()
I getInternalSymbol(int index)
Alphabet.getSymbol(int)
variant for the internal alphabet.index
- the index of the symbolIllegalArgumentException
- if there is no symbol with this indexint getInternalSymbolIndex(I symbol)
Alphabet.getSymbolIndex(Object)
variant for the internal alphabet.symbol
- the symbol whose index should be determinedIllegalArgumentException
- if the provided symbol does not belong to the internal alphabet.int getNumInternals()
I getReturnSymbol(int index)
Alphabet.getSymbol(int)
variant for the return alphabet.index
- the index of the symbolIllegalArgumentException
- if there is no symbol with this indexint getReturnSymbolIndex(I symbol)
Alphabet.getSymbolIndex(Object)
variant for the return alphabet.symbol
- the symbol whose index should be determinedIllegalArgumentException
- if the provided symbol does not belong to the return alphabet.int getNumReturns()
VPDAlphabet.SymbolType getSymbolType(I symbol)
symbol type
of the given alphabet symbol.symbol
- the symbol whose type should be returnedsymbol type
of the given alphabet symbol.IllegalArgumentException
- if the provided symbol does not belong to the alphabet.default boolean isCallSymbol(I symbol)
default boolean isInternalSymbol(I symbol)
default boolean isReturnSymbol(I symbol)
Copyright © 2020. All rights reserved.