Interface TransitionSymbol<T>
-
- Type Parameters:
T
- the concrete type of the symbol
- All Superinterfaces:
java.lang.Comparable<T>
public interface TransitionSymbol<T> extends java.lang.Comparable<T>
A symbol that can be read byTransition
s of anAutomaton
.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EPSILON
The string used to represent an empty transaction symbol, usually called epsilon.static java.lang.String
UNKNOWN_SYMBOL
The string used to represent an unknown transaction symbol, that can take the form of any other (e.g., any character, any string, ...).
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isEpsilon()
Yieldstrue
if and only if this symbol represents the empty string epsilon.int
maxLength()
Yields the maximum length of this symbol.int
minLength()
Yields the minimum length of this symbol.T
reverse()
Yields a new symbol that corresponds to this one, but read back-to-front.
-
-
-
Field Detail
-
UNKNOWN_SYMBOL
static final java.lang.String UNKNOWN_SYMBOL
The string used to represent an unknown transaction symbol, that can take the form of any other (e.g., any character, any string, ...).- See Also:
- Constant Field Values
-
EPSILON
static final java.lang.String EPSILON
The string used to represent an empty transaction symbol, usually called epsilon.- See Also:
- Constant Field Values
-
-
Method Detail
-
isEpsilon
boolean isEpsilon()
Yieldstrue
if and only if this symbol represents the empty string epsilon.- Returns:
true
if that condition holds.
-
reverse
T reverse()
Yields a new symbol that corresponds to this one, but read back-to-front.- Returns:
- the reversed symbol
-
maxLength
int maxLength()
Yields the maximum length of this symbol.- Returns:
- the maximum length
-
minLength
int minLength()
Yields the minimum length of this symbol.- Returns:
- the minimum length
-
-