@Target(value={METHOD,FIELD}) @Retention(value=RUNTIME) public @interface PlanningScore
PlanningSolution
class holds the Score
of that solution.
This property can be null if the PlanningSolution
is uninitialized.
This property is modified by the Solver
,
every time when the Score
of this PlanningSolution
has been calculated.
Modifier and Type | Fields and Description |
---|---|
static int |
NO_LEVEL_SIZE
Workaround for annotation limitation in
bendableHardLevelsSize() and bendableSoftLevelsSize() . |
Modifier and Type | Optional Element and Description |
---|---|
int |
bendableHardLevelsSize
Required for bendable scores.
|
int |
bendableSoftLevelsSize
Required for bendable scores.
|
Class<? extends ScoreDefinition> |
scoreDefinitionClass
Overrides the default determined
ScoreDefinition to implement a custom one. |
public static final int NO_LEVEL_SIZE
bendableHardLevelsSize()
and bendableSoftLevelsSize()
.public abstract int bendableHardLevelsSize
For example with 3 hard levels, hard level 0 always outweighs hard level 1 which always outweighs hard level 2, which outweighs all the soft levels.
Score
is a AbstractBendableScore
, not used otherwisepublic abstract int bendableSoftLevelsSize
For example with 3 soft levels, soft level 0 always outweighs soft level 1 which always outweighs soft level 2.
Score
is a AbstractBendableScore
, not used otherwisepublic abstract Class<? extends ScoreDefinition> scoreDefinitionClass
ScoreDefinition
to implement a custom one.
If this is not specified, the ScoreDefinition
is automatically determined
based on the return type of the annotated property (or field) on a PlanningSolution
.
PlanningScore.NullScoreDefinition
when it is null (workaround for annotation limitation)Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.