org.optaplanner.core.config.score.definition
Enum ScoreDefinitionType
java.lang.Object
java.lang.Enum<ScoreDefinitionType>
org.optaplanner.core.config.score.definition.ScoreDefinitionType
- All Implemented Interfaces:
- Serializable, Comparable<ScoreDefinitionType>
public enum ScoreDefinitionType
- extends Enum<ScoreDefinitionType>
SIMPLE
public static final ScoreDefinitionType SIMPLE
SIMPLE_LONG
public static final ScoreDefinitionType SIMPLE_LONG
SIMPLE_DOUBLE
public static final ScoreDefinitionType SIMPLE_DOUBLE
- WARNING: NOT RECOMMENDED TO USE DUE TO ROUNDING ERRORS THAT CAUSE SCORE CORRUPTION.
Use
SIMPLE_BIG_DECIMAL
instead.
SIMPLE_BIG_DECIMAL
public static final ScoreDefinitionType SIMPLE_BIG_DECIMAL
HARD_SOFT
public static final ScoreDefinitionType HARD_SOFT
HARD_SOFT_LONG
public static final ScoreDefinitionType HARD_SOFT_LONG
HARD_SOFT_DOUBLE
public static final ScoreDefinitionType HARD_SOFT_DOUBLE
- WARNING: NOT RECOMMENDED TO USE DUE TO ROUNDING ERRORS THAT CAUSE SCORE CORRUPTION.
Use
HARD_SOFT_BIG_DECIMAL
instead.
HARD_SOFT_BIG_DECIMAL
public static final ScoreDefinitionType HARD_SOFT_BIG_DECIMAL
HARD_MEDIUM_SOFT
public static final ScoreDefinitionType HARD_MEDIUM_SOFT
HARD_MEDIUM_SOFT_LONG
public static final ScoreDefinitionType HARD_MEDIUM_SOFT_LONG
BENDABLE
public static final ScoreDefinitionType BENDABLE
BENDABLE_BIG_DECIMAL
public static final ScoreDefinitionType BENDABLE_BIG_DECIMAL
values
public static ScoreDefinitionType[] 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 (ScoreDefinitionType c : ScoreDefinitionType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ScoreDefinitionType 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 name
NullPointerException
- if the argument is null
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.