org.drools.planner.core.score.constraint
Class ConstraintOccurrence
java.lang.Object
  
org.drools.planner.core.score.constraint.ConstraintOccurrence
- All Implemented Interfaces: 
 - Serializable, Comparable<ConstraintOccurrence>
 
- Direct Known Subclasses: 
 - DoubleConstraintOccurrence, IntConstraintOccurrence, LongConstraintOccurrence, UnweightedConstraintOccurrence
 
public abstract class ConstraintOccurrence
- extends Object
- implements Comparable<ConstraintOccurrence>, Serializable
  
- See Also:
 - Serialized Form
 
 
 
 
 
ruleId
protected String ruleId
constraintType
protected ConstraintType constraintType
causes
protected Object[] causes
ConstraintOccurrence
public ConstraintOccurrence(String ruleId,
                            Object... causes)
ConstraintOccurrence
public ConstraintOccurrence(String ruleId,
                            ConstraintType constraintType,
                            Object... causes)
getRuleId
public String getRuleId()
 
 
getConstraintType
public ConstraintType getConstraintType()
 
 
getCauses
public Object[] getCauses()
 
 
equals
public boolean equals(Object o)
- Overrides:
 equals in class Object
 
 
hashCode
public int hashCode()
- Overrides:
 hashCode in class Object
 
 
compareTo
public int compareTo(ConstraintOccurrence other)
- Specified by:
 compareTo in interface Comparable<ConstraintOccurrence>
 
 
toString
public String toString()
- Overrides:
 toString in class Object
 
 
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.