net.sf.jdmf.data.output
Class RuleInfo
java.lang.Object
net.sf.jdmf.data.output.RuleInfo
- All Implemented Interfaces:
- java.lang.Comparable<RuleInfo>
public class RuleInfo
- extends java.lang.Object
- implements java.lang.Comparable<RuleInfo>
Associates a rule with information about its coverage and accuracy against
an instance.
- Author:
- quorthon
Constructor Summary |
RuleInfo(Rule rule,
java.lang.Integer coverage,
java.lang.Double accuracy)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuleInfo
public RuleInfo(Rule rule,
java.lang.Integer coverage,
java.lang.Double accuracy)
compareTo
public int compareTo(RuleInfo ruleInfo)
- Compares two rule infos using their accuracy and coverage.
- Specified by:
compareTo
in interface java.lang.Comparable<RuleInfo>
getAccuracy
public java.lang.Double getAccuracy()
getCoverage
public java.lang.Integer getCoverage()
getRule
public Rule getRule()