private boolean classifyExample(Instance example) throws Exception {
  double classValue=-1.0;
  for (Enumeration<RuleList> e=new WekaEnumeration<RuleList>(m_DecisionList); e.hasMoreElements() && classValue < 0.0; ) {
    RuleList rl=e.nextElement();
    classValue=rl.classifyInstance(example);
  }
  if (classValue >= 0.0) {
    example.setClassValue(classValue);
    return true;
  }
 else {
    return false;
  }
}

private boolean classifyExample ( Instance example ) throws Exception { double classValue = - 1.0 ; for ( Enumeration < RuleList > e = new WekaEnumeration < RuleList > ( m_DecisionList ) ; e . hasMoreElements ( ) && classValue < 0.0 ; ) { RuleList rl = e . nextElement ( ) ; classValue = rl . classifyInstance ( example ) ; } if ( classValue >= 0.0 ) { example . setClassValue ( classValue ) ; return true ; } else { return false ; } }
tries to classify an example .
