Package net.automatalib.alphabet
Class AbstractVPAlphabet<I>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<I>
-
- net.automatalib.alphabet.AbstractAlphabet<I>
-
- net.automatalib.alphabet.AbstractVPAlphabet<I>
-
- All Implemented Interfaces:
Iterable<I>,Collection<I>,Comparator<I>,IntFunction<I>,ToIntFunction<I>,List<I>,Alphabet<I>,VPAlphabet<I>,ArrayWritable<I>
- Direct Known Subclasses:
DefaultVPAlphabet,GrowingVPAlphabet
public abstract class AbstractVPAlphabet<I> extends AbstractAlphabet<I> implements VPAlphabet<I>
Abstract utility class that implements functionality shared across different subtypes.
-
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsSymbol(I symbol)Alphabet<I>getCallAlphabet()IgetCallSymbol(int index)intgetCallSymbolIndex(I symbol)Alphabet<I>getInternalAlphabet()IgetInternalSymbol(int index)intgetInternalSymbolIndex(I symbol)intgetNumCalls()intgetNumInternals()intgetNumReturns()Alphabet<I>getReturnAlphabet()IgetReturnSymbol(int index)intgetReturnSymbolIndex(I symbol)IgetSymbol(int index)intgetSymbolIndex(I symbol)VPAlphabet.SymbolTypegetSymbolType(I symbol)booleanisCallSymbol(I symbol)booleanisInternalSymbol(I symbol)booleanisReturnSymbol(I symbol)intsize()-
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, isCallMatched, isReturnMatched, isWellMatched, longestWellMatchedPrefix, longestWellMatchedSuffix
-
-
-
-
Method Detail
-
getCallAlphabet
public Alphabet<I> getCallAlphabet()
- Specified by:
getCallAlphabetin interfaceVPAlphabet<I>
-
getCallSymbol
public I getCallSymbol(int index)
- Specified by:
getCallSymbolin interfaceVPAlphabet<I>
-
getCallSymbolIndex
public int getCallSymbolIndex(I symbol)
- Specified by:
getCallSymbolIndexin interfaceVPAlphabet<I>
-
getNumCalls
public int getNumCalls()
- Specified by:
getNumCallsin interfaceVPAlphabet<I>
-
getInternalAlphabet
public Alphabet<I> getInternalAlphabet()
- Specified by:
getInternalAlphabetin interfaceVPAlphabet<I>
-
getInternalSymbol
public I getInternalSymbol(int index)
- Specified by:
getInternalSymbolin interfaceVPAlphabet<I>
-
getInternalSymbolIndex
public int getInternalSymbolIndex(I symbol)
- Specified by:
getInternalSymbolIndexin interfaceVPAlphabet<I>
-
getNumInternals
public int getNumInternals()
- Specified by:
getNumInternalsin interfaceVPAlphabet<I>
-
getReturnAlphabet
public Alphabet<I> getReturnAlphabet()
- Specified by:
getReturnAlphabetin interfaceVPAlphabet<I>
-
getReturnSymbol
public I getReturnSymbol(int index)
- Specified by:
getReturnSymbolin interfaceVPAlphabet<I>
-
getReturnSymbolIndex
public int getReturnSymbolIndex(I symbol)
- Specified by:
getReturnSymbolIndexin interfaceVPAlphabet<I>
-
getNumReturns
public int getNumReturns()
- Specified by:
getNumReturnsin interfaceVPAlphabet<I>
-
getSymbolType
public VPAlphabet.SymbolType getSymbolType(I symbol)
- Specified by:
getSymbolTypein interfaceVPAlphabet<I>
-
isCallSymbol
public boolean isCallSymbol(I symbol)
- Specified by:
isCallSymbolin interfaceVPAlphabet<I>
-
isInternalSymbol
public boolean isInternalSymbol(I symbol)
- Specified by:
isInternalSymbolin interfaceVPAlphabet<I>
-
isReturnSymbol
public boolean isReturnSymbol(I symbol)
- Specified by:
isReturnSymbolin interfaceVPAlphabet<I>
-
size
public int size()
- Specified by:
sizein interfaceArrayWritable<I>- Specified by:
sizein interfaceCollection<I>- Specified by:
sizein interfaceList<I>- Specified by:
sizein classAbstractCollection<I>
-
getSymbolIndex
public int getSymbolIndex(I symbol)
- Specified by:
getSymbolIndexin interfaceAlphabet<I>
-
containsSymbol
public boolean containsSymbol(I symbol)
- Specified by:
containsSymbolin interfaceAlphabet<I>
-
-