Class ScoreWrapper


  • @XStreamConverter(value=com.thoughtworks.xstream.converters.extended.ToAttributedValueConverter.class,
                      strings="scoreString")
    public class ScoreWrapper
    extends Object
    • Constructor Detail

      • ScoreWrapper

        public ScoreWrapper​(org.optaplanner.core.api.score.Score score)
    • 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 - If scoreClass is not one of the out-of-box score implementations. In this case clients may implement their own way to extract the score object.