net.sf.myra.datamining
Class SequentialRule

java.lang.Object
  extended by net.sf.myra.framework.Trail
      extended by net.sf.myra.framework.DefaultTrail
          extended by net.sf.myra.datamining.Rule
              extended by net.sf.myra.datamining.SequentialRule
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class SequentialRule
extends Rule

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

Constructor Summary
SequentialRule(Metadata metadata)
          Creates a new DefaultTrail instance.
 
Method Summary
 void add(net.sf.myra.framework.Vertex<?> vertex)
           
 SequentialRule clone()
           
 boolean equals(java.lang.Object o)
           
 Term[] getAntecedent()
          Returns the rule antecedent.
 net.sf.myra.framework.Vertex<?> getLast()
           
 java.util.Collection<net.sf.myra.framework.Vertex<?>> getVertices()
           
 boolean isCovered(Instance instance)
          Checks if this rule covers the specified instance.
 boolean isEmpty()
           
 void remove(net.sf.myra.framework.Vertex<?> vertex)
           
 
Methods inherited from class net.sf.myra.datamining.Rule
getConfidence, getConsequent, setConfidence, setConsequent, toString
 
Methods inherited from class net.sf.myra.framework.Trail
getCost, getIteration, getSize, setCost, setIteration
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SequentialRule

public SequentialRule(Metadata metadata)
Creates a new DefaultTrail instance.

Method Detail

add

public void add(net.sf.myra.framework.Vertex<?> vertex)
Overrides:
add in class Rule

getLast

public net.sf.myra.framework.Vertex<?> getLast()
Overrides:
getLast in class net.sf.myra.framework.DefaultTrail

getVertices

public java.util.Collection<net.sf.myra.framework.Vertex<?>> getVertices()
Overrides:
getVertices in class net.sf.myra.framework.DefaultTrail

isEmpty

public boolean isEmpty()
Overrides:
isEmpty in class net.sf.myra.framework.DefaultTrail

remove

public void remove(net.sf.myra.framework.Vertex<?> vertex)
Overrides:
remove in class Rule

clone

public SequentialRule clone()
Overrides:
clone in class Rule

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class Rule

getAntecedent

public Term[] getAntecedent()
Description copied from class: Rule
Returns the rule antecedent.

Overrides:
getAntecedent in class Rule
Returns:
the rule antecedent.

isCovered

public boolean isCovered(Instance instance)
Description copied from class: Rule
Checks if this rule covers the specified instance.

Overrides:
isCovered in class Rule
Parameters:
instance - the instance to check.
Returns:
true if this rule covers the specified instances; false otherwise.


Copyright © 2013. All Rights Reserved.