Tabnine Logo
HardSoftScore.parseScore
Code IndexAdd Tabnine to your IDE (free)

How to use
parseScore
method
in
org.optaplanner.core.api.score.buildin.hardsoft.HardSoftScore

Best Java code snippets using org.optaplanner.core.api.score.buildin.hardsoft.HardSoftScore.parseScore (Showing top 10 results out of 315)

origin: kiegroup/optaplanner

@Override
public HardSoftScore parseScore(String scoreString) {
  return HardSoftScore.parseScore(scoreString);
}
origin: kiegroup/optaplanner

@Override
public HardSoftScore unmarshal(String scoreString) {
  return HardSoftScore.parseScore(scoreString);
}
origin: kiegroup/optaplanner

@Override
public HardSoftScore deserialize(JsonParser parser, DeserializationContext context) throws IOException {
  return HardSoftScore.parseScore(parser.getValueAsString());
}
origin: kiegroup/optaplanner

@Override
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) {
  String scoreString = reader.getValue();
  return HardSoftScore.parseScore(scoreString);
}
origin: kiegroup/optaplanner

@Test(expected = IllegalArgumentException.class)
public void parseScoreIllegalArgument() {
  HardSoftScore.parseScore("-147");
}
origin: kiegroup/optaplanner

  return SimpleBigDecimalScore.parseScore(scoreString);
} else if (scoreClassSimpleName.equals(HardSoftScore.class.getSimpleName())) {
  return HardSoftScore.parseScore(scoreString);
} else if (scoreClassSimpleName.equals(HardSoftLongScore.class.getSimpleName())) {
  return HardSoftLongScore.parseScore(scoreString);
origin: kiegroup/optaplanner

  return SimpleBigDecimalScore.parseScore(scoreString);
} else if (HardSoftScore.class.equals(scoreClass)) {
  return HardSoftScore.parseScore(scoreString);
} else if (HardSoftLongScore.class.equals(scoreClass)) {
  return HardSoftLongScore.parseScore(scoreString);
origin: kiegroup/optaplanner

@Test
public void parseScore() {
  assertEquals(HardSoftScore.of(-147, -258), HardSoftScore.parseScore("-147hard/-258soft"));
  assertEquals(HardSoftScore.ofUninitialized(-7, -147, -258), HardSoftScore.parseScore("-7init/-147hard/-258soft"));
  assertEquals(HardSoftScore.of(-147, Integer.MIN_VALUE), HardSoftScore.parseScore("-147hard/*soft"));
}
origin: org.optaplanner/optaplanner-persistence-jaxb

@Override
public HardSoftScore unmarshal(String scoreString) {
  return HardSoftScore.parseScore(scoreString);
}
origin: org.optaplanner/optaplanner-persistence-xstream

@Override
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) {
  String scoreString = reader.getValue();
  return HardSoftScore.parseScore(scoreString);
}
org.optaplanner.core.api.score.buildin.hardsoftHardSoftScoreparseScore

Popular methods of HardSoftScore

  • of
  • ofUninitialized
  • getSoftScore
  • getHardScore
    The total of the broken negative hard constraints and fulfilled positive hard constraints. Their wei
  • getInitScore
  • ofSoft
  • toString
  • <init>
  • add
  • assertNoInitScore
  • buildShortString
  • divide
  • buildShortString,
  • divide,
  • equals,
  • getInitPrefix,
  • isFeasible,
  • multiply,
  • negate,
  • ofHard,
  • parseInitScore

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Reference (javax.naming)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now