- java.lang.Object
-
- java.lang.Enum<NetworkGenerator.NodeType>
-
- org.jgrapht.generate.netgen.NetworkGenerator.NodeType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NetworkGenerator.NodeType>
- Enclosing class:
- NetworkGenerator<V,E>
private static enum NetworkGenerator.NodeType extends java.lang.Enum<NetworkGenerator.NodeType>
Enum specifying the nodes type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PURE_SINK
PURE_SOURCE
TRANSSHIP_NODE
TRANSSHIP_SINK
TRANSSHIP_SOURCE
-
Constructor Summary
Constructors Modifier Constructor Description private
NodeType()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.String
toString()
static NetworkGenerator.NodeType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static NetworkGenerator.NodeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PURE_SOURCE
public static final NetworkGenerator.NodeType PURE_SOURCE
-
TRANSSHIP_SOURCE
public static final NetworkGenerator.NodeType TRANSSHIP_SOURCE
-
TRANSSHIP_NODE
public static final NetworkGenerator.NodeType TRANSSHIP_NODE
-
TRANSSHIP_SINK
public static final NetworkGenerator.NodeType TRANSSHIP_SINK
-
PURE_SINK
public static final NetworkGenerator.NodeType PURE_SINK
-
-
Method Detail
-
values
public static NetworkGenerator.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 (NetworkGenerator.NodeType c : NetworkGenerator.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 NetworkGenerator.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
-
toString
public abstract java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<NetworkGenerator.NodeType>
-
-