Coverage Report - weka.associations.AssociationRulesProducer
 
Classes in this File Line Coverage Branch Coverage Complexity
AssociationRulesProducer
N/A
N/A
1
 
 1  
 /*
 2  
  *   This program is free software: you can redistribute it and/or modify
 3  
  *   it under the terms of the GNU General Public License as published by
 4  
  *   the Free Software Foundation, either version 3 of the License, or
 5  
  *   (at your option) any later version.
 6  
  *
 7  
  *   This program is distributed in the hope that it will be useful,
 8  
  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 9  
  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 10  
  *   GNU General Public License for more details.
 11  
  *
 12  
  *   You should have received a copy of the GNU General Public License
 13  
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 14  
  */
 15  
 
 16  
 /*
 17  
  *    AssociationRulesProducer.java
 18  
  *    Copyright (C) 2010-2012 University of Waikato, Hamilton, New Zealand
 19  
  *
 20  
  */
 21  
 
 22  
 package weka.associations;
 23  
 
 24  
 
 25  
 /**
 26  
  * Interface to something that can provide a list of
 27  
  * AssociationRules.
 28  
  * 
 29  
  * @author Mark Hall (mhall{[at]}pentaho{[dot]}com)
 30  
  * @version $Revision: 8034 $
 31  
  */
 32  
 public interface AssociationRulesProducer {
 33  
   
 34  
   /**
 35  
    * Gets the list of mined association rules.
 36  
    * 
 37  
    * @return the list of association rules discovered during mining.
 38  
    * Returns null if mining hasn't been performed yet.
 39  
    */
 40  
   AssociationRules getAssociationRules();
 41  
   
 42  
   /**
 43  
    * Gets a list of the names of the metrics output for
 44  
    * each rule. This list should be the same (in terms of
 45  
    * the names and order thereof) as that produced by
 46  
    * AssociationRule.getMetricNamesForRule().
 47  
    * 
 48  
    * @return an array of the names of the metrics available
 49  
    * for each rule learned by this producer.
 50  
    */
 51  
   String[] getRuleMetricNames();
 52  
   
 53  
   /**
 54  
    * Returns true if this AssociationRulesProducer can actually
 55  
    * produce rules. Most implementing classes will always return
 56  
    * true from this method (obviously :-)). However, an implementing
 57  
    * class that actually acts as a wrapper around things that may
 58  
    * or may not implement AssociationRulesProducer will want to
 59  
    * return false if the thing they wrap can't produce rules.
 60  
    * 
 61  
    * @return true if this producer can produce rules in its current
 62  
    * configuration
 63  
    */
 64  
   boolean canProduceRules();
 65  
 }