net.sf.myra.cantminer.preselect
Class ClassEdgeTrailFactory

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

public class ClassEdgeTrailFactory
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.
 
Constructor Summary
ClassEdgeTrailFactory(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, java.lang.String consequent)
          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

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

ClassEdgeTrailFactory

public ClassEdgeTrailFactory(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,
                                                                                 java.lang.String consequent)
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.