Class ScoreWrapper
- java.lang.Object
-
- org.kie.server.api.model.instance.ScoreWrapper
-
@XStreamConverter(value=com.thoughtworks.xstream.converters.extended.ToAttributedValueConverter.class, strings="scoreString") public class ScoreWrapper extends Object
-
-
Constructor Summary
Constructors Constructor Description ScoreWrapper(org.optaplanner.core.api.score.Score score)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends org.optaplanner.core.api.score.Score>getScoreClass()StringgetScoreString()org.optaplanner.core.api.score.ScoretoScore()Returns score representation of the object.StringtoString()
-
-
-
Method Detail
-
getScoreClass
public Class<? extends org.optaplanner.core.api.score.Score> getScoreClass()
-
getScoreString
public String getScoreString()
-
toScore
public org.optaplanner.core.api.score.Score toScore()
Returns score representation of the object.- Returns:
- Score representation of the object. Returns null if the score has not been assigned by the solver yet.
- Throws:
IllegalArgumentException- IfscoreClassis not one of the out-of-box score implementations. In this case clients may implement their own way to extract the score object.
-
-