net.sf.myra.cantminer
Class EdgeTrailFactory

java.lang.Object
  extended by net.sf.myra.cantminer.EdgeTrailFactory
All Implemented Interfaces:
net.sf.myra.framework.TrailFactory

public class EdgeTrailFactory
extends java.lang.Object
implements net.sf.myra.framework.TrailFactory

Version:
$Revision$ $Date:: $
Author:
Fernando Esteban Barril Otero

Field Summary
protected  net.sf.myra.datamining.data.Dataset dataset
          The dataset instance to validate the vertices selection.
protected  net.sf.myra.framework.Graph<net.sf.myra.datamining.data.Term> graph
          The problem construction graph to create the trails.
protected  ThresholdHelper helper
          The threshold selection helper.
static java.lang.String MINIMUM_RULE_CASES
          The property key under which the minimum rule cases value is stored.
static int NO_MINIMUM_CASES
          Constant to indicate that there is no minimum number of covered cases.
static java.lang.String RULE
          The property key under which the rule implementation class is stored.
 
Constructor Summary
EdgeTrailFactory(net.sf.myra.framework.Graph<net.sf.myra.datamining.data.Term> graph, net.sf.myra.datamining.data.Dataset dataset)
          Default constructor.
 
Method Summary
 net.sf.myra.framework.Trail createTrail()
           
protected  net.sf.myra.datamining.data.Dataset getDataset()
          Returns the dataset reference.
 net.sf.myra.framework.Graph<?> getGraph()
           
protected  net.sf.myra.framework.Vertex<net.sf.myra.datamining.data.Term> process(net.sf.myra.datamining.data.Metadata metadata, net.sf.myra.framework.Vertex<net.sf.myra.datamining.data.Term> vertex, java.util.List<net.sf.myra.datamining.data.Instance> covered, boolean first)
          Prepares the vertex to be added to a rule.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MINIMUM_RULE_CASES

public static final java.lang.String MINIMUM_RULE_CASES
The property key under which the minimum rule cases value is stored.

See Also:
Constant Field Values

RULE

public static final java.lang.String RULE
The property key under which the rule implementation class is stored.

See Also:
Constant Field Values

NO_MINIMUM_CASES

public static final int NO_MINIMUM_CASES
Constant to indicate that there is no minimum number of covered cases.

See Also:
Constant Field Values

graph

protected net.sf.myra.framework.Graph<net.sf.myra.datamining.data.Term> graph
The problem construction graph to create the trails.


dataset

protected net.sf.myra.datamining.data.Dataset dataset
The dataset instance to validate the vertices selection.


helper

protected ThresholdHelper helper
The threshold selection helper.

Constructor Detail

EdgeTrailFactory

public EdgeTrailFactory(net.sf.myra.framework.Graph<net.sf.myra.datamining.data.Term> graph,
                        net.sf.myra.datamining.data.Dataset dataset)
Default constructor.

Parameters:
graph - the problem construction graph.
dataset - the dataset reference.
Method Detail

createTrail

public net.sf.myra.framework.Trail createTrail()
Specified by:
createTrail in interface net.sf.myra.framework.TrailFactory

process

protected net.sf.myra.framework.Vertex<net.sf.myra.datamining.data.Term> process(net.sf.myra.datamining.data.Metadata metadata,
                                                                                 net.sf.myra.framework.Vertex<net.sf.myra.datamining.data.Term> vertex,
                                                                                 java.util.List<net.sf.myra.datamining.data.Instance> covered,
                                                                                 boolean first)
Prepares the vertex to be added to a rule. The default implementation just returns the vertex.

Parameters:
vertex - the vertex to be added to the rule.
Returns:
the same vertex instance.

getGraph

public net.sf.myra.framework.Graph<?> getGraph()
Specified by:
getGraph in interface net.sf.myra.framework.TrailFactory

getDataset

protected net.sf.myra.datamining.data.Dataset getDataset()
Returns the dataset reference.

Returns:
the dataset reference.


Copyright © 2013. All Rights Reserved.