net.sf.myra.hantminer
Class HybridRule

java.lang.Object
  extended by net.sf.myra.framework.Trail
      extended by net.sf.myra.hantminer.HybridRule
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<HybridRule>

public class HybridRule
extends net.sf.myra.framework.Trail
implements java.lang.Comparable<HybridRule>

Version:
$Revision$ $Date:: $
Author:
Fernando Esteban Barril Otero
See Also:
Serialized Form

Constructor Summary
HybridRule(net.sf.myra.datamining.Rule antecedent, net.sf.myra.framework.Trail consequent)
          Default constructor.
 
Method Summary
 void add(net.sf.myra.framework.Vertex<?> vertex)
           
 HybridRule clone()
           
 int compareTo(HybridRule o)
          Compares this HybridRule instance agains the specified o instance.
 net.sf.myra.datamining.Rule getAntecedent()
          Returns the antecedent part of the rule.
 net.sf.myra.framework.Trail getConsequent()
          Returns the consequent part of the rule.
 net.sf.myra.framework.Cost getCost()
          Returns the rule cost.
 net.sf.myra.framework.Vertex<?> getLast()
           
 java.util.Collection<net.sf.myra.framework.Vertex<?>> getVertices()
           
 boolean isEmpty()
           
 void remove(net.sf.myra.framework.Vertex<?> vertex)
           
 void setCost(net.sf.myra.framework.Cost cost)
          Sets the rule cost.
 
Methods inherited from class net.sf.myra.framework.Trail
getIteration, getSize, setIteration, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HybridRule

public HybridRule(net.sf.myra.datamining.Rule antecedent,
                  net.sf.myra.framework.Trail consequent)
Default constructor.

Parameters:
antecedent - the rule instance representing the antecedent.
consequent - the trail instance representing the consequent.
Method Detail

getAntecedent

public net.sf.myra.datamining.Rule getAntecedent()
Returns the antecedent part of the rule.

Returns:
the antecedent part of the rule.

getConsequent

public net.sf.myra.framework.Trail getConsequent()
Returns the consequent part of the rule.

Returns:
the consequent part of the rule.

setCost

public void setCost(net.sf.myra.framework.Cost cost)
Sets the rule cost.

Overrides:
setCost in class net.sf.myra.framework.Trail
Parameters:
cost - the rule cost to set.

getCost

public net.sf.myra.framework.Cost getCost()
Returns the rule cost.

Overrides:
getCost in class net.sf.myra.framework.Trail
Returns:
the rule cost.

compareTo

public int compareTo(HybridRule o)
Compares this HybridRule instance agains the specified o instance.

Specified by:
compareTo in interface java.lang.Comparable<HybridRule>
Parameters:
o - the HybridRule instance to be compared.

add

public final void add(net.sf.myra.framework.Vertex<?> vertex)
Specified by:
add in class net.sf.myra.framework.Trail

remove

public final void remove(net.sf.myra.framework.Vertex<?> vertex)
Specified by:
remove in class net.sf.myra.framework.Trail

getLast

public final net.sf.myra.framework.Vertex<?> getLast()
Specified by:
getLast in class net.sf.myra.framework.Trail

getVertices

public final java.util.Collection<net.sf.myra.framework.Vertex<?>> getVertices()
Specified by:
getVertices in class net.sf.myra.framework.Trail

isEmpty

public final boolean isEmpty()
Specified by:
isEmpty in class net.sf.myra.framework.Trail

clone

public HybridRule clone()
Overrides:
clone in class net.sf.myra.framework.Trail


Copyright © 2013. All Rights Reserved.