org.knime.base.node.mine.subgroupminer
Class PMMLAssociationRuleHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.knime.core.node.port.pmml.PMMLContentHandler
          extended by org.knime.base.node.mine.subgroupminer.PMMLAssociationRuleHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

Deprecated.

@Deprecated
public class PMMLAssociationRuleHandler
extends PMMLContentHandler

This class is not sufficently tested yet and the API of this class might be still subject to changes.

Author:
Fabian Dill, University of Konstanz

Field Summary
static String ID
          Deprecated. Id of this handler.
 
Constructor Summary
PMMLAssociationRuleHandler()
          Deprecated. Creates a new empty association rule handler.
PMMLAssociationRuleHandler(int nrOfTransactions, double minSupport, double minConfidence, Map<String,String> items, Set<FrequentItemSet> itemsets, Set<AssociationRule> rules)
          Deprecated. Creates an initialized association rule handler that can be used to output the association rule model by invoking PMMLContentHandler.addPMMLModel(org.w3c.dom.DocumentFragment, PMMLPortObjectSpec).
 
Method Summary
protected  void addPMMLModelContent(TransformerHandler handler, PMMLPortObjectSpec spec)
          Deprecated. Derived classes should override this method to add the model content.
 void characters(char[] ch, int start, int length)
          Deprecated. 
 void endDocument()
          Deprecated. 
 void endElement(String uri, String localName, String name)
          Deprecated. 
 Map<String,String> getItems()
          Deprecated.  
 Set<FrequentItemSet> getItemsets()
          Deprecated.  
 double getMinConfidence()
          Deprecated.  
 double getMinSupport()
          Deprecated.  
 int getNrOfItems()
          Deprecated.  
 int getNrOfItemsets()
          Deprecated.  
 int getNrOfRules()
          Deprecated.  
 int getNrOfTransactions()
          Deprecated.  
 Set<AssociationRule> getRules()
          Deprecated.  
 void startElement(String uri, String localName, String name, Attributes atts)
          Deprecated. 
 
Methods inherited from class org.knime.core.node.port.pmml.PMMLContentHandler
addPMMLModel, canReadPMMLVersion, endPrefixMapping, getPMMLModelFragment, getPreferredWriteVersion, getSupportedVersions, ignorableWhitespace, parse, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
error, fatalError, notationDecl, resolveEntity, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
Deprecated. 
Id of this handler.

See Also:
Constant Field Values
Constructor Detail

PMMLAssociationRuleHandler

public PMMLAssociationRuleHandler()
Deprecated. 
Creates a new empty association rule handler. The initialization has to be performed by registering the handler to a parser.


PMMLAssociationRuleHandler

public PMMLAssociationRuleHandler(int nrOfTransactions,
                                  double minSupport,
                                  double minConfidence,
                                  Map<String,String> items,
                                  Set<FrequentItemSet> itemsets,
                                  Set<AssociationRule> rules)
Deprecated. 
Creates an initialized association rule handler that can be used to output the association rule model by invoking PMMLContentHandler.addPMMLModel(org.w3c.dom.DocumentFragment, PMMLPortObjectSpec).

Parameters:
nrOfTransactions - the number of transactions
minSupport - the minimum support
minConfidence - the minimum confidence
items - the items
itemsets - the itemsets
rules - the association rules
Method Detail

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException
Deprecated. 

Specified by:
characters in interface ContentHandler
Specified by:
characters in class PMMLContentHandler
Throws:
SAXException

endDocument

public void endDocument()
                 throws SAXException
Deprecated. 

Specified by:
endDocument in interface ContentHandler
Specified by:
endDocument in class PMMLContentHandler
Throws:
SAXException

endElement

public void endElement(String uri,
                       String localName,
                       String name)
                throws SAXException
Deprecated. 

Specified by:
endElement in interface ContentHandler
Specified by:
endElement in class PMMLContentHandler
Throws:
SAXException

startElement

public void startElement(String uri,
                         String localName,
                         String name,
                         Attributes atts)
                  throws SAXException
Deprecated. 

Specified by:
startElement in interface ContentHandler
Specified by:
startElement in class PMMLContentHandler
Throws:
SAXException

getMinSupport

public double getMinSupport()
Deprecated. 
Returns:
the minSupport

getMinConfidence

public double getMinConfidence()
Deprecated. 
Returns:
the minConfidence

getNrOfTransactions

public int getNrOfTransactions()
Deprecated. 
Returns:
the nrOfTransactions

getNrOfItems

public int getNrOfItems()
Deprecated. 
Returns:
the nrOfItems

getNrOfItemsets

public int getNrOfItemsets()
Deprecated. 
Returns:
the nrOfItemsets

getNrOfRules

public int getNrOfRules()
Deprecated. 
Returns:
the nrOfRules

getItems

public Map<String,String> getItems()
Deprecated. 
Returns:
the items

getItemsets

public Set<FrequentItemSet> getItemsets()
Deprecated. 
Returns:
the itemsets

getRules

public Set<AssociationRule> getRules()
Deprecated. 
Returns:
the rules

addPMMLModelContent

protected void addPMMLModelContent(TransformerHandler handler,
                                   PMMLPortObjectSpec spec)
                            throws SAXException
Deprecated. 
Derived classes should override this method to add the model content. They can assume that the document is started and will be ended and should only provided the content starting with the mining scheme. If they want to support the addition of LocalTransformations they have to provide an empty element that can be filled later with preprocessing operations.

Overrides:
addPMMLModelContent in class PMMLContentHandler
Parameters:
handler - the transformer handler
spec - the port object spec
Throws:
SAXException - if the model cannot be added


Copyright, 2003 - 2012. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.