net.sf.myra.antree.representation
Class NodeFactory

java.lang.Object
  extended by net.sf.myra.antree.representation.NodeFactory

public abstract class NodeFactory
extends java.lang.Object

Version:
$Revision: 2320 $ $Date:: 2011-01-25 13:06:10#$
Author:
Fernando Esteban Barril Otero

Constructor Summary
NodeFactory()
           
 
Method Summary
static Node create(net.sf.myra.datamining.data.Attribute attribute, net.sf.myra.datamining.data.Dataset dataset, int level)
          Creates a new node (internal or leaf) according to the type of the specified attribute.
static Node create(net.sf.myra.datamining.data.Attribute attribute, net.sf.myra.datamining.data.Metadata metadata, java.util.List<net.sf.myra.datamining.data.Instance> instances, int level)
          Creates a new node (internal or leaf) according to the type of the specified attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeFactory

public NodeFactory()
Method Detail

create

public static Node create(net.sf.myra.datamining.data.Attribute attribute,
                          net.sf.myra.datamining.data.Dataset dataset,
                          int level)
Creates a new node (internal or leaf) according to the type of the specified attribute.

Parameters:
attribute - the attribute to be represented by the node.
dataset - the current data set.
level - the level of the node.
Returns:
a new node (internal or leaf) according to the type of the specified attribute.
See Also:
InternalNode, LeafNode

create

public static Node create(net.sf.myra.datamining.data.Attribute attribute,
                          net.sf.myra.datamining.data.Metadata metadata,
                          java.util.List<net.sf.myra.datamining.data.Instance> instances,
                          int level)
Creates a new node (internal or leaf) according to the type of the specified attribute.

Parameters:
attribute - the attribute to be represented by the node.
metadata - the current data set metadata.
instances - the list of instances.
level - the level of the node.
Returns:
a new node (internal or leaf) according to the type of the specified attribute.
See Also:
InternalNode, LeafNode


Copyright © 2013. All Rights Reserved.