com.rapidminer.operator.learner.associations
Class FrequentItemSets

java.lang.Object
  extended by com.rapidminer.operator.AbstractIOObject
      extended by com.rapidminer.operator.ResultObjectAdapter
          extended by com.rapidminer.operator.learner.associations.FrequentItemSets
All Implemented Interfaces:
IOObject, ResultObject, Saveable, LoggingHandler, java.io.Serializable, java.lang.Iterable<FrequentItemSet>

public class FrequentItemSets
extends ResultObjectAdapter
implements java.lang.Iterable<FrequentItemSet>

Contains a collection of FrequentItemSets.

Author:
Sebastian Land, Ingo Mierswa
See Also:
Serialized Form

Constructor Summary
FrequentItemSets(int numberOfTransactions)
           
 
Method Summary
 void addFrequentSet(FrequentItemSet itemSet)
          Adds a frequent item set to this container.
 java.lang.String getExtension()
          Returns the default extension in file choosers.
 java.lang.String getFileDescription()
          Returns the file description used in file choosers.
 FrequentItemSet getItemSet(int index)
           
 int getMaximumSetSize()
           
 int getNumberOfTransactions()
           
 javax.swing.Icon getResultIcon()
          Returns null.
 java.awt.Component getVisualizationComponent(IOContainer container)
          Returns the visualization component.
 java.util.Iterator<FrequentItemSet> iterator()
           
 int size()
           
 void sortSets()
           
 void sortSets(java.util.Comparator<FrequentItemSet> comparator)
           
 java.lang.String toResultString()
          The default implementation simply returns the result of the method Object.toString().
 java.lang.String toString()
          This method generates the a string representation of this object.
 java.lang.String toString(int maxNumber)
          This method generates the a string representation of this object.
 
Methods inherited from class com.rapidminer.operator.ResultObjectAdapter
addAction, getActions, getName, isSavable, log, logError, logNote, logWarning, save, toHTML
 
Methods inherited from class com.rapidminer.operator.AbstractIOObject
copy, getLog, getSource, initWriting, read, setLoggingHandler, setSource, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.rapidminer.operator.IOObject
copy, getLog, getSource, setLoggingHandler, setSource, write
 

Constructor Detail

FrequentItemSets

public FrequentItemSets(int numberOfTransactions)
Method Detail

addFrequentSet

public void addFrequentSet(FrequentItemSet itemSet)
Adds a frequent item set to this container. ConditionalItems and frequentItems are merged.

Parameters:
itemSet - the frequent set

getExtension

public java.lang.String getExtension()
Description copied from interface: Saveable
Returns the default extension in file choosers.

Specified by:
getExtension in interface Saveable

getFileDescription

public java.lang.String getFileDescription()
Description copied from interface: Saveable
Returns the file description used in file choosers.

Specified by:
getFileDescription in interface Saveable

getMaximumSetSize

public int getMaximumSetSize()

iterator

public java.util.Iterator<FrequentItemSet> iterator()
Specified by:
iterator in interface java.lang.Iterable<FrequentItemSet>

getItemSet

public FrequentItemSet getItemSet(int index)

sortSets

public void sortSets()

sortSets

public void sortSets(java.util.Comparator<FrequentItemSet> comparator)

size

public int size()

getNumberOfTransactions

public int getNumberOfTransactions()

toResultString

public java.lang.String toResultString()
Description copied from class: ResultObjectAdapter
The default implementation simply returns the result of the method Object.toString().

Specified by:
toResultString in interface ResultObject
Overrides:
toResultString in class ResultObjectAdapter

toString

public java.lang.String toString()
This method generates the a string representation of this object.

Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(int maxNumber)
This method generates the a string representation of this object.


getVisualizationComponent

public java.awt.Component getVisualizationComponent(IOContainer container)
Returns the visualization component.

Specified by:
getVisualizationComponent in interface ResultObject
Overrides:
getVisualizationComponent in class ResultObjectAdapter

getResultIcon

public javax.swing.Icon getResultIcon()
Description copied from class: ResultObjectAdapter
Returns null. Subclasses might want to override this method and returns an appropriate icon.

Specified by:
getResultIcon in interface ResultObject
Overrides:
getResultIcon in class ResultObjectAdapter


Copyright © 2001-2009 by Rapid-I