Package | Description |
---|---|
org.optaplanner.core.api.score.buildin.bendable |
Support for a
Score with a configurable number of score levels
and int score weights. |
org.optaplanner.core.impl.score.buildin.bendable | |
org.optaplanner.persistence.jackson.api.score.buildin.bendable | |
org.optaplanner.persistence.jaxb.api.score.buildin.bendable |
Modifier and Type | Field and Description |
---|---|
protected Map<org.kie.api.definition.rule.Rule,BiConsumer<org.kie.api.runtime.rule.RuleContext,BendableScore>> |
BendableScoreHolder.matchExecutorByScoreMap
Slower than
BendableScoreHolder.matchExecutorByNumberMap |
Modifier and Type | Method and Description |
---|---|
BendableScore |
BendableScore.add(BendableScore augment) |
BendableScore |
BendableScore.divide(double divisor) |
BendableScore |
BendableScoreHolder.extractScore(int initScore) |
BendableScore |
BendableScore.multiply(double multiplicand) |
BendableScore |
BendableScore.negate() |
static BendableScore |
BendableScore.of(int[] hardScores,
int[] softScores)
Creates a new
BendableScore . |
static BendableScore |
BendableScore.ofHard(int hardLevelsSize,
int softLevelsSize,
int hardLevel,
int hardScore)
Creates a new
BendableScore . |
static BendableScore |
BendableScore.ofSoft(int hardLevelsSize,
int softLevelsSize,
int softLevel,
int softScore)
Creates a new
BendableScore . |
static BendableScore |
BendableScore.ofUninitialized(int initScore,
int[] hardScores,
int[] softScores)
Creates a new
BendableScore . |
static BendableScore |
BendableScore.parseScore(String scoreString) |
BendableScore |
BendableScore.power(double exponent) |
BendableScore |
BendableScore.subtract(BendableScore subtrahend) |
BendableScore |
BendableScore.toInitializedScore() |
static BendableScore |
BendableScore.valueOf(int[] hardScores,
int[] softScores)
Deprecated.
in favor of
of(int[], int[]) |
static BendableScore |
BendableScore.valueOfUninitialized(int initScore,
int[] hardScores,
int[] softScores)
Deprecated.
in favor of
ofUninitialized(int, int[], int[]) |
BendableScore |
BendableScore.withInitScore(int newInitScore) |
static BendableScore |
BendableScore.zero(int hardLevelsSize,
int softLevelsSize)
Creates a new
BendableScore . |
Modifier and Type | Method and Description |
---|---|
BendableScore |
BendableScore.add(BendableScore augment) |
int |
BendableScore.compareTo(BendableScore other) |
void |
BendableScoreHolder.configureConstraintWeight(org.kie.api.definition.rule.Rule rule,
BendableScore constraintWeight) |
BendableScore |
BendableScore.subtract(BendableScore subtrahend) |
void |
BendableScore.validateCompatible(BendableScore other) |
Modifier and Type | Method and Description |
---|---|
BendableScore |
BendableScoreDefinition.buildOptimisticBound(InitializingScoreTrend initializingScoreTrend,
BendableScore score) |
BendableScore |
BendableScoreDefinition.buildPessimisticBound(InitializingScoreTrend initializingScoreTrend,
BendableScore score) |
BendableScore |
BendableScoreDefinition.createScore(int... scores) |
BendableScore |
BendableScoreDefinition.createScoreUninitialized(int initScore,
int... scores) |
BendableScore |
BendableScoreDefinition.fromLevelNumbers(int initScore,
Number[] levelNumbers) |
BendableScore |
BendableScoreDefinition.getZeroScore() |
BendableScore |
BendableScoreDefinition.parseScore(String scoreString) |
Modifier and Type | Method and Description |
---|---|
Class<BendableScore> |
BendableScoreDefinition.getScoreClass() |
Modifier and Type | Method and Description |
---|---|
BendableScore |
BendableScoreDefinition.buildOptimisticBound(InitializingScoreTrend initializingScoreTrend,
BendableScore score) |
BendableScore |
BendableScoreDefinition.buildPessimisticBound(InitializingScoreTrend initializingScoreTrend,
BendableScore score) |
Modifier and Type | Method and Description |
---|---|
BendableScore |
BendableScoreJacksonJsonDeserializer.deserialize(com.fasterxml.jackson.core.JsonParser parser,
com.fasterxml.jackson.databind.DeserializationContext context) |
Modifier and Type | Method and Description |
---|---|
BendableScore |
BendableScoreJaxbXmlAdapter.unmarshal(String scoreString) |
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.