org.knime.base.node.mine.subgroupminer.freqitemset
Class FrequentItemSetModel

java.lang.Object
  extended by org.knime.base.node.mine.subgroupminer.freqitemset.FrequentItemSetModel

public class FrequentItemSetModel
extends Object

Author:
Fabian Dill, University of Konstanz

Constructor Summary
FrequentItemSetModel()
           
 
Method Summary
 int getDBSize()
           
 Collection<FrequentItemSet> getItemSets()
           
 List<String> getNameMapping()
           
 void loadFromModelContent(ModelContentRO model)
           
 void saveToModelContent(ModelContentWO model)
          Saves the itemsets to the model.
 void setDBSize(int dbSize)
           
 void setFrequentItemsets(Collection<FrequentItemSet> frequentItemSets)
           
 void setNameMapping(List<String> nameMapping)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrequentItemSetModel

public FrequentItemSetModel()
Method Detail

loadFromModelContent

public void loadFromModelContent(ModelContentRO model)
                          throws InvalidSettingsException
Parameters:
model - the model containing information about the itemsets
Throws:
InvalidSettingsException - if the model is not valid

saveToModelContent

public void saveToModelContent(ModelContentWO model)
Saves the itemsets to the model.

Parameters:
model - the model the itemsets are saved to

setNameMapping

public void setNameMapping(List<String> nameMapping)
Parameters:
nameMapping - the mapping from index to name

getNameMapping

public List<String> getNameMapping()
Returns:
the integer name mapping

getDBSize

public int getDBSize()
Returns:
the total number of transactions

setDBSize

public void setDBSize(int dbSize)
Parameters:
dbSize - the toal number of transactions

getItemSets

public Collection<FrequentItemSet> getItemSets()
Returns:
the loaded itemsets

setFrequentItemsets

public void setFrequentItemsets(Collection<FrequentItemSet> frequentItemSets)
Parameters:
frequentItemSets - the frequent itemsets to store


Copyright, 2003 - 2010. 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.