Package org.tweetyproject.lp.asp.syntax
Enum ASPOperator.OptimizeFunction
java.lang.Object
java.lang.Enum<ASPOperator.OptimizeFunction>
org.tweetyproject.lp.asp.syntax.ASPOperator.OptimizeFunction
- All Implemented Interfaces:
Serializable
,Comparable<ASPOperator.OptimizeFunction>
,Constable
- Enclosing class:
ASPOperator
An enum representing optimization functions:
MINIMIZE
and
MAXIMIZE
.
This enum is used to specify whether an optimization function is minimizing
or maximizing.
It provides a toString()
method that converts the enum values to
their corresponding string representations
for optimization operations.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptiontoString()
static ASPOperator.OptimizeFunction
Returns the enum constant of this type with the specified name.static ASPOperator.OptimizeFunction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
MINIMIZE
Represents the minimization function. -
MAXIMIZE
Represents the maximization function.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
toString
- Overrides:
toString
in classEnum<ASPOperator.OptimizeFunction>
-