org.knime.base.node.mine.sota.logic
Class SotaTreeCellFactory

java.lang.Object
  extended by org.knime.base.node.mine.sota.logic.SotaTreeCellFactory

public final class SotaTreeCellFactory
extends Object

Author:
Kilian Thiel, University of Konstanz

Method Summary
 SotaTreeCell createCell()
          Creates new instance of Cell with the factorys dimension and returns it.
 SotaTreeCell createCell(double[] minSupp, double[] minCore, double[] maxCore, double[] maxSupp, int level)
          Creates new insatnce of Cell with given min, max Core and Support data and level and returns it.
 SotaTreeCell createCell(double[] data, int level)
          Creates new instance of Cell with given data and level and returns it.
 SotaTreeCell createCell(FuzzyIntervalValue[] data, int level)
          Creates new insatnce of Cell with given FuzzyIntervalValue data and level and returns it.
 SotaTreeCell createCell(int level)
          Creates new instance of Cell with the factorys dimension and the given level and returns it.
 SotaTreeCell createCell(SotaCell[] data, int level)
          Creates new instance of Cell with given data and level and returns it.
 SotaTreeCell createNode()
          Creates new instance of Cell with the factorys dimension and returns it.
 SotaTreeCell createNode(int level)
          Creates new instance of Cell with the factorys dimension and given level and returns it.
 SotaTreeCell createNode(SotaCell[] data, int level)
          Creates new instance of Cell with given data and level and returns it.
 int getDimension()
          Returns the dimension of the Cells to create.
static SotaTreeCellFactory initCellFactory()
          Initialises the SotaTreeCellFactory instance.
static SotaTreeCellFactory initCellFactory(int dimension)
          Initialises the SotaTreeCellFactory instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initCellFactory

public static SotaTreeCellFactory initCellFactory(int dimension)
Initialises the SotaTreeCellFactory instance. Since the SotaTreeCellFactory constructor is private an instance can just be accessed via this method.

Parameters:
dimension - dimension of the cells data vector
Returns:
the instance of SotaTreeCellFactory

initCellFactory

public static SotaTreeCellFactory initCellFactory()
Initialises the SotaTreeCellFactory instance. Since the SotaTreeCellFactory constructor is private an instance can just be accessed via this method. If no cellFactory instance is created yet, null is returned.

Returns:
the instance of SotaTreeCellFactory or null

getDimension

public int getDimension()
Returns the dimension of the Cells to create.

Returns:
The dimension of the Cells to create.

createCell

public SotaTreeCell createCell()
Creates new instance of Cell with the factorys dimension and returns it.

Returns:
the created cell

createCell

public SotaTreeCell createCell(int level)
Creates new instance of Cell with the factorys dimension and the given level and returns it.

Parameters:
level - level of hierarchy to set
Returns:
the created cell

createCell

public SotaTreeCell createCell(SotaCell[] data,
                               int level)
Creates new instance of Cell with given data and level and returns it. If length of the data array and the factorys dimension does not fit null is returned.

Parameters:
data - data to set to the Cell
level - level of hierarchy to set
Returns:
the created Cell

createCell

public SotaTreeCell createCell(double[] data,
                               int level)
Creates new instance of Cell with given data and level and returns it. If length of the data array and the factorys dimension does not fit null is returned.

Parameters:
data - data to set to the Cell
level - level of hierarchy to set
Returns:
the created Cell

createCell

public SotaTreeCell createCell(FuzzyIntervalValue[] data,
                               int level)
Creates new insatnce of Cell with given FuzzyIntervalValue data and level and returns it. If length of the data array and the factorys dimension does not fit null is returned.

Parameters:
data - FuzzyIntervalValue data to set to the Cell
level - level of hierarchy to set
Returns:
the created Cell

createCell

public SotaTreeCell createCell(double[] minSupp,
                               double[] minCore,
                               double[] maxCore,
                               double[] maxSupp,
                               int level)
Creates new insatnce of Cell with given min, max Core and Support data and level and returns it. If length of the arrays and the factorys dimension does not fit null is returned.

Parameters:
minSupp - array with minimal support values
minCore - array with minimal core values
maxCore - array with maxmal core values
maxSupp - array with maxmal support values
level - level of hierarchy to set
Returns:
the created Cell

createNode

public SotaTreeCell createNode()
Creates new instance of Cell with the factorys dimension and returns it. The isCell flag is set to false, since a Node shell be created.

Returns:
the created Cell

createNode

public SotaTreeCell createNode(int level)
Creates new instance of Cell with the factorys dimension and given level and returns it. The isCell flag is set to false, since a Node shell be created.

Parameters:
level - level of hierarchy to set
Returns:
the created Cell

createNode

public SotaTreeCell createNode(SotaCell[] data,
                               int level)
Creates new instance of Cell with given data and level and returns it. If length of the data array and the factorys dimension does not fit null is returned. The isCell flag is set to false, since a Node shell be created.

Parameters:
data - data to set to the Cell
level - level of hierarchy to set
Returns:
the created Cell


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.