Package org.ssclab.pl.milp
Enum Variable.TYPE_VAR
- java.lang.Object
-
- java.lang.Enum<Variable.TYPE_VAR>
-
- org.ssclab.pl.milp.Variable.TYPE_VAR
-
- All Implemented Interfaces:
Serializable
,Comparable<Variable.TYPE_VAR>
- Enclosing interface:
- Variable
public static enum Variable.TYPE_VAR extends Enum<Variable.TYPE_VAR>
Defines the type of variable: integer, binary, or continuous.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getValue()
Retrieves the value associated with the enumeration.String
toString()
Returns a string representation of the enumeration value.static Variable.TYPE_VAR
valueOf(String name)
Returns the enum constant of this type with the specified name.static Variable.TYPE_VAR[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REAL
public static final Variable.TYPE_VAR REAL
-
INTEGER
public static final Variable.TYPE_VAR INTEGER
-
BINARY
public static final Variable.TYPE_VAR BINARY
-
-
Method Detail
-
values
public static Variable.TYPE_VAR[] 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 (Variable.TYPE_VAR c : Variable.TYPE_VAR.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Variable.TYPE_VAR 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
-
getValue
public String getValue()
Retrieves the value associated with the enumeration.- Returns:
- The value associated with the enumeration.
-
toString
public String toString()
Returns a string representation of the enumeration value.- Overrides:
toString
in classEnum<Variable.TYPE_VAR>
- Returns:
- A string representation of the enumeration value.
-
-