Drools Planner distribution 6.0.0.Alpha9

org.drools.planner.examples.common.business
Class ScoreDetail

java.lang.Object
  extended by 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


Constructor Summary
ScoreDetail(String ruleId, ConstraintType constraintType)
           
 
Method Summary
 void addConstraintOccurrence(ConstraintOccurrence constraintOccurrence)
           
 String buildConstraintOccurrenceListText()
           
 int compareTo(ScoreDetail other)
           
 boolean equals(Object o)
           
 Set<ConstraintOccurrence> getConstraintOccurrenceSet()
           
 ConstraintType getConstraintType()
           
 int getOccurrenceSize()
           
 String getRuleId()
           
 double getScoreTotal()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScoreDetail

public ScoreDetail(String ruleId,
                   ConstraintType constraintType)
Method Detail

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()

Drools Planner distribution 6.0.0.Alpha9

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.