org.deri.iris.evaluation.topdown.oldt
Enum NodeType
java.lang.Object
java.lang.Enum<NodeType>
org.deri.iris.evaluation.topdown.oldt.NodeType
- All Implemented Interfaces:
- Serializable, Comparable<NodeType>
public enum NodeType
- extends Enum<NodeType>
Used to classify nodes.
LINK A link node which is a special form of a memo node.
A link node is not evaluated by resolution, but
previously computed answers are used to expand the node.
By trying to expand the link node using resolution,
the node gets paused.
ANSWER A answer node which is a special form of a memo node.
A answer node is evaluated by resolution. The answers
are stored in the corresponding entry in the memo table.
NORMAL A ordinary node (not a memo node).
- Author:
- gigi
|
Method Summary |
static NodeType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static NodeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
LINK
public static final NodeType LINK
ANSWER
public static final NodeType ANSWER
NORMAL
public static final NodeType NORMAL
values
public static final NodeType[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(NodeType c : NodeType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static NodeType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name