Package ptolemy.graph
Enum NonLatticeCounterExample.GraphExampleType
- java.lang.Object
-
- java.lang.Enum<NonLatticeCounterExample.GraphExampleType>
-
- ptolemy.graph.NonLatticeCounterExample.GraphExampleType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NonLatticeCounterExample.GraphExampleType>
,NonLatticeCounterExample.ExampleType
- Enclosing class:
- NonLatticeCounterExample
public static enum NonLatticeCounterExample.GraphExampleType extends java.lang.Enum<NonLatticeCounterExample.GraphExampleType> implements NonLatticeCounterExample.ExampleType
An enumeration type to represent the types of counterexamples that can be found when checking to see if a graph is a lattice.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GRAPHCYCLE
Represents a counterexample where the graph has a cycle.GREATESTLOWER
Represents a counterexample where some nodes have no greatest lower bound.LEASTUPPER
Represents a counterexample where some nodes have no least upper bound.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NonLatticeCounterExample.GraphExampleType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static NonLatticeCounterExample.GraphExampleType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GREATESTLOWER
public static final NonLatticeCounterExample.GraphExampleType GREATESTLOWER
Represents a counterexample where some nodes have no greatest lower bound.
-
LEASTUPPER
public static final NonLatticeCounterExample.GraphExampleType LEASTUPPER
Represents a counterexample where some nodes have no least upper bound.
-
GRAPHCYCLE
public static final NonLatticeCounterExample.GraphExampleType GRAPHCYCLE
Represents a counterexample where the graph has a cycle.
-
-
Method Detail
-
values
public static NonLatticeCounterExample.GraphExampleType[] 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 (NonLatticeCounterExample.GraphExampleType c : NonLatticeCounterExample.GraphExampleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NonLatticeCounterExample.GraphExampleType 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
-
-