javax.datamining.algorithm.tree
Interface TreeSettingsFactory

All Superinterfaces:
Factory

public interface TreeSettingsFactory
extends Factory

A factory class that creates instances of TreeSettings.

Author:
JSR-73 Java Data Mining Expert Group
See Also:
Factory

Method Summary
 TreeSettings create()
          Creates an instance of TreeSettings initialized to vendor-specific default values.
 int getMaxDepthAllowed()
          Returns the maximum depth allowed.
 int getMaxSurrogatesAllowed()
          Returns the maximum number of surrogates allowed.
 boolean supportsCapability(TreeCapability capability)
          Returns true if the specified capability is supported in the JDM implementation.
 

Method Detail

create

public TreeSettings create()
                    throws JDMException
Creates an instance of TreeSettings initialized to vendor-specific default values.

The maximum number of surrogates is set to the default max surrogates, or 0 if not supported. The maximum depth is set to the default max depth.

Returns:
TreeSettings
Throws:
JDMException

getMaxDepthAllowed

public int getMaxDepthAllowed()
Returns the maximum depth allowed.

Returns:
int

getMaxSurrogatesAllowed

public int getMaxSurrogatesAllowed()
Returns the maximum number of surrogates allowed.

Returns:
int

supportsCapability

public boolean supportsCapability(TreeCapability capability)
                           throws JDMException
Returns true if the specified capability is supported in the JDM implementation. Retruns false otherwise.

Parameters:
capability - An enumeration value that represents a specific capability.
Returns:
boolean
Throws:
JDMException