Package org.xcsp.common
Enum Types.TypeVar
- java.lang.Object
-
- java.lang.Enum<Types.TypeVar>
-
- org.xcsp.common.Types.TypeVar
-
- All Implemented Interfaces:
Serializable
,Comparable<Types.TypeVar>
- Enclosing class:
- Types
public static enum Types.TypeVar extends Enum<Types.TypeVar>
The enum type describing the different types of variables.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description directed_graph
integer
interval
point
real
region
set
stochastic
symbolic
symbolic_set
symbolic_stochastic
undirected_graph
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isBasic()
Returns true if the constant corresponds to integer, symbolic, real or (symbolic) stochastic.boolean
isComplex()
boolean
isGraph()
boolean
isQualitative()
boolean
isSet()
boolean
isStochastic()
static Types.TypeVar
valueOf(String name)
Returns the enum constant of this type with the specified name.static Types.TypeVar[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
integer
public static final Types.TypeVar integer
-
symbolic
public static final Types.TypeVar symbolic
-
real
public static final Types.TypeVar real
-
stochastic
public static final Types.TypeVar stochastic
-
symbolic_stochastic
public static final Types.TypeVar symbolic_stochastic
-
set
public static final Types.TypeVar set
-
symbolic_set
public static final Types.TypeVar symbolic_set
-
undirected_graph
public static final Types.TypeVar undirected_graph
-
directed_graph
public static final Types.TypeVar directed_graph
-
point
public static final Types.TypeVar point
-
interval
public static final Types.TypeVar interval
-
region
public static final Types.TypeVar region
-
-
Method Detail
-
values
public static Types.TypeVar[] 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 (Types.TypeVar c : Types.TypeVar.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Types.TypeVar 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 nameNullPointerException
- if the argument is null
-
isBasic
public boolean isBasic()
Returns true if the constant corresponds to integer, symbolic, real or (symbolic) stochastic.
-
isStochastic
public boolean isStochastic()
-
isSet
public boolean isSet()
-
isGraph
public boolean isGraph()
-
isComplex
public boolean isComplex()
-
isQualitative
public boolean isQualitative()
-
-