|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ExecutionType> com.googlecode.sarasvati.ExecutionType
public enum ExecutionType
Specifies the different execution types. During normal
execution, only Forward
is used.
The other execution types are using when backtracking
(see Engine.backtrack(NodeToken)
.
Enum Constant Summary | |
---|---|
Backtracked
Indicates that the associated token was generated during a backtracking operation, as part of the reverse execution. |
|
Forward
Indicates that the associated token was generated via normal execution and has not been backtracked. |
|
ForwardBacktracked
Indicates that the associated token was generated via normal execution but has since been backtracked. |
|
UTurn
Indicates that the associated token was generated during a backtracking operation, on an arc token which was backtracked but not as far as the previous node. |
|
UTurnBacktracked
Indicates that the associated token was generated during a backtracking operation, as a U-turn and has now been backtracked as part of a second backtrack operation. |
Method Summary | |
---|---|
ExecutionType |
getCorrespondingBacktracked(boolean isComplete)
Returns the backtracked version of the execution type, or itself if the execution type is already a backtracking type. |
boolean |
isBacktracked()
Returns true if the execution type indicates that the token has been backtracked and false otherwise. |
static ExecutionType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ExecutionType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ExecutionType Forward
public static final ExecutionType ForwardBacktracked
public static final ExecutionType Backtracked
public static final ExecutionType UTurn
public static final ExecutionType UTurnBacktracked
Method Detail |
---|
public static ExecutionType[] values()
for (ExecutionType c : ExecutionType.values()) System.out.println(c);
public static ExecutionType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic ExecutionType getCorrespondingBacktracked(boolean isComplete)
isComplete
- Indicates if the associated token is complete
public boolean isBacktracked()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |