@PlanningScore(bendableHardLevelsSize = 1, bendableSoftLevelsSize = 2) public BendableScore getScore() { return score; }
public ScoreDefinition buildScoreDefinition(Class<? extends Score> scoreType, PlanningScore annotation) { Class<? extends ScoreDefinition> scoreDefinitionClass = annotation.scoreDefinitionClass(); if (scoreDefinitionClass != PlanningScore.NullScoreDefinition.class) { if (annotation.bendableHardLevelsSize() != PlanningScore.NO_LEVEL_SIZE || annotation.bendableSoftLevelsSize() != PlanningScore.NO_LEVEL_SIZE) { throw new IllegalArgumentException("The solutionClass (" + solutionClass + ") has a " + PlanningScore.class.getSimpleName() + " annotated member (" + scoreMemberAccessor + ") that has a scoreDefinition (" + scoreDefinitionClass + ") that must not have a bendableHardLevelsSize (" + annotation.bendableHardLevelsSize() + ") or a bendableSoftLevelsSize (" + annotation.bendableSoftLevelsSize() + ")."); if (annotation.bendableHardLevelsSize() != PlanningScore.NO_LEVEL_SIZE || annotation.bendableSoftLevelsSize() != PlanningScore.NO_LEVEL_SIZE) { throw new IllegalArgumentException("The solutionClass (" + solutionClass + ") has a " + PlanningScore.class.getSimpleName() + " annotated member (" + scoreMemberAccessor + ") that returns a scoreType (" + scoreType + ") that must not have a bendableHardLevelsSize (" + annotation.bendableHardLevelsSize() + ") or a bendableSoftLevelsSize (" + annotation.bendableSoftLevelsSize() + ")."); int bendableHardLevelsSize = annotation.bendableHardLevelsSize(); int bendableSoftLevelsSize = annotation.bendableSoftLevelsSize(); if (bendableHardLevelsSize == PlanningScore.NO_LEVEL_SIZE || bendableSoftLevelsSize == PlanningScore.NO_LEVEL_SIZE) { + " annotated member (" + scoreMemberAccessor + ") that returns a scoreType (" + scoreType + ") that must have a bendableHardLevelsSize (" + annotation.bendableHardLevelsSize() + ") and a bendableSoftLevelsSize (" + annotation.bendableSoftLevelsSize() + ").");
@PlanningScore public HardMediumSoftScore getScore() { return score; }
@PlanningScore public HardSoftLongScore getScore() { return score; }
private static class AutoDiscoverAnnotationDefaults { @PlanningScore private static final Object PLANNING_SCORE = new Object(); }
@PlanningScore public HardMediumSoftLongScore getScore() { return score; }
@PlanningScore public HardSoftLongScore getScore() { return score; }
@PlanningScore public SimpleScore getScore() { return score; }
@PlanningScore public SimpleScore getScore() { return score; }
@PlanningScore public HardSoftScore getScore() { return score; }
@PlanningScore public HardSoftScore getScore() { return score; }
@PlanningScore public S getScore() { return score; }
@PlanningScore public HardSoftLongScore getScore() { return score; }
@PlanningScore public SimpleLongScore getScore() { return score; }
@PlanningScore public HardMediumSoftScore getScore() { return score; }
@PlanningScore public HardSoftScore getScore() { return score; }
@PlanningScore public HardSoftLongScore getScore() { return score; }
@PlanningScore public HardMediumSoftScore getScore() { return score; }
@PlanningScore public HardSoftScore getScore() { return score; }
@PlanningScore public SimpleScore getScore() { return score; }