Package ptolemy.cg.lib.syntactic
Enum SyntacticNode.NodeType
- java.lang.Object
-
- java.lang.Enum<SyntacticNode.NodeType>
-
- ptolemy.cg.lib.syntactic.SyntacticNode.NodeType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SyntacticNode.NodeType>
- Enclosing class:
- SyntacticNode
public static enum SyntacticNode.NodeType extends java.lang.Enum<SyntacticNode.NodeType>
Internal enum representing the types of nodes and how they are ordered, compared, and categorized.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CAP
Cap node.IDENTITY
Identity node.INPUT
Input node.MERGE
Merge mediator.OUTPUT
Output node.PERMUTATION
Permutation node.RECEIVE
Feedback receive.REPRESENTATIVE
Representative node.SEND
Feedback send.SPLIT
Split mediator.UNKNOWN
Other node type.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOrder()
Sort order of type.boolean
isExterior()
Decide whether type is an input or output.boolean
isFeedback()
Decide whether type is feedback in or out.boolean
isIncoming()
Decide whether type is incoming.boolean
isMediator()
Decide whether type is a mediator.boolean
isOutgoing()
Decide whether type is outgoing.boolean
isPure()
Decide whether type is a purely syntactic one.boolean
isUnknown()
Decide whether type is unknown.static SyntacticNode.NodeType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SyntacticNode.NodeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PERMUTATION
public static final SyntacticNode.NodeType PERMUTATION
Permutation node.
-
REPRESENTATIVE
public static final SyntacticNode.NodeType REPRESENTATIVE
Representative node.
-
SPLIT
public static final SyntacticNode.NodeType SPLIT
Split mediator.
-
MERGE
public static final SyntacticNode.NodeType MERGE
Merge mediator.
-
CAP
public static final SyntacticNode.NodeType CAP
Cap node.
-
SEND
public static final SyntacticNode.NodeType SEND
Feedback send.
-
RECEIVE
public static final SyntacticNode.NodeType RECEIVE
Feedback receive.
-
INPUT
public static final SyntacticNode.NodeType INPUT
Input node.
-
OUTPUT
public static final SyntacticNode.NodeType OUTPUT
Output node.
-
IDENTITY
public static final SyntacticNode.NodeType IDENTITY
Identity node.
-
UNKNOWN
public static final SyntacticNode.NodeType UNKNOWN
Other node type.
-
-
Method Detail
-
values
public static SyntacticNode.NodeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SyntacticNode.NodeType c : SyntacticNode.NodeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SyntacticNode.NodeType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isUnknown
public boolean isUnknown()
Decide whether type is unknown.- Returns:
- whether type is unknown.
-
isExterior
public boolean isExterior()
Decide whether type is an input or output.- Returns:
- whether type is input or output.
-
isFeedback
public boolean isFeedback()
Decide whether type is feedback in or out.- Returns:
- whether type is feedback in or out.
-
isPure
public boolean isPure()
Decide whether type is a purely syntactic one.- Returns:
- whether type is a purely syntactic one.
-
isMediator
public boolean isMediator()
Decide whether type is a mediator.- Returns:
- whether type is a mediator.
-
isIncoming
public boolean isIncoming()
Decide whether type is incoming. True if an input or feedback input.- Returns:
- whether type is incoming.
-
isOutgoing
public boolean isOutgoing()
Decide whether type is outgoing. True if an output or feedback output.- Returns:
- whether type is outgoing.
-
getOrder
public int getOrder()
Sort order of type.- Returns:
- sort order of type.
-
-