Enum Class SolverAlgorithm
- All Implemented Interfaces:
Serializable, Comparable<SolverAlgorithm>, java.lang.constant.Constable
Enum class for all implemented algorithm solvers
- Author:
- Abhimanyu Chugh
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic SolverAlgorithm[]Returns an array of all closed SolverAlgorithm valuesstatic SolverAlgorithmfromString(String algName) Find the enum value that corresponds to the given stringbooleanisExact()Checks whether exact.booleanChecks whether iterative.static SolverAlgorithm[]Returns an array of all mixed SolverAlgorithm valuesstatic String[]names()Returns an array of string representations of all potential SolverAlgorithm valuesstatic SolverAlgorithm[]Returns an array of all open SolverAlgorithm valuesbooleanMethod supportsClosedClasses.booleanMethod supportsLoadDependent.booleanMethod supportsOpenClasses.booleanMethod supportsPriorities.toString()static SolverAlgorithmReturns the enum constant of this class with the specified name.static SolverAlgorithm[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXACT
-
RECAL
-
COMOM
-
TREE_MVA
-
CHOW
-
BARD_SCHWEITZER
-
AQL
-
LINEARIZER
-
DESOUZA_MUNTZ_LINEARIZER
-
MONTE_CARLO_LOGISTIC
-
PRIO_MVA_BKT
-
PRIO_MVA_CL
-
SCA
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<SolverAlgorithm>
-
supportsClosedClasses
public boolean supportsClosedClasses()Method supportsClosedClasses.- Returns:
- true if this algorithm supports closed classes
-
supportsOpenClasses
public boolean supportsOpenClasses()Method supportsOpenClasses.- Returns:
- true if this algorithm supports open classes
-
isExact
public boolean isExact()Checks whether exact.- Returns:
- true if this algorithm is exact
-
supportsLoadDependent
public boolean supportsLoadDependent()Method supportsLoadDependent.- Returns:
- true if the algorithm supports load dependent, false otherwise.
-
supportsPriorities
public boolean supportsPriorities()Method supportsPriorities.- Returns:
- true if the algorithm supports priorities, false otherwise.
-
isIterative
public boolean isIterative()Checks whether iterative.- Returns:
- true if the algorithm is iterative, false otherwise.
-
fromString
Find the enum value that corresponds to the given string -
names
Returns an array of string representations of all potential SolverAlgorithm values -
closedValues
Returns an array of all closed SolverAlgorithm values -
openValues
Returns an array of all open SolverAlgorithm values -
mixedValues
Returns an array of all mixed SolverAlgorithm values
-