org.drools.planner.examples.common.business
Class ScoreDetail
java.lang.Object
org.drools.planner.examples.common.business.ScoreDetail
- All Implemented Interfaces:
- Comparable<ScoreDetail>
public class ScoreDetail
- extends Object
- implements Comparable<ScoreDetail>
TODO Replace this class with the ConstraintOccurrenceTotal class: https://jira.jboss.org/jira/browse/JBRULES-2510
ScoreDetail
public ScoreDetail(String ruleId,
ConstraintType constraintType)
getRuleId
public String getRuleId()
getConstraintType
public ConstraintType getConstraintType()
getConstraintOccurrenceSet
public Set<ConstraintOccurrence> getConstraintOccurrenceSet()
getOccurrenceSize
public int getOccurrenceSize()
getScoreTotal
public double getScoreTotal()
addConstraintOccurrence
public void addConstraintOccurrence(ConstraintOccurrence constraintOccurrence)
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
compareTo
public int compareTo(ScoreDetail other)
- Specified by:
compareTo
in interface Comparable<ScoreDetail>
toString
public String toString()
- Overrides:
toString
in class Object
buildConstraintOccurrenceListText
public String buildConstraintOccurrenceListText()
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.