oracle.dmt.odm.rule
Class RuleComponent

java.lang.Object
  |
  +--oracle.dmt.odm.rule.RuleComponent
Direct Known Subclasses:
PredicateRuleComponent

public class RuleComponent
extends java.lang.Object

An instance of RuleComponent can be used as an antecedent or consequent of a MiningRule instance. A RuleComponent contains an itemset (a set of ItemValues) and the support of the itemset.

See Also:
MiningRule, ItemValue

Constructor Summary
RuleComponent(float support, ItemValue[] itemset)
          Creates an instance of RuleComponent with a support value and an itemset.
 
Method Summary
TypeMethod
 void addItemSet(ItemValue item)
          Adds an instance of ItemValue to the itemset.
 ItemValue[] getItemSet()
          Returns the itemset as an array of ItemValues.
 float getSupport()
          Returns the support of the itemset.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleComponent

public RuleComponent(float support,
                     ItemValue[] itemset)
              throws MiningObjectException
Creates an instance of RuleComponent with a support value and an itemset.
Parameters:
support - The support value of the itemset
itemset - The itemset
Throws:
MiningObjectException - thrown when the support value is out of range.
Method Detail

addItemSet

public void addItemSet(ItemValue item)
Adds an instance of ItemValue to the itemset.
Parameters:
item - An item to be added to the itemset.
Returns:
void

getSupport

public float getSupport()
Returns the support of the itemset.
Returns:
float The support of the itemset

getItemSet

public ItemValue[] getItemSet()
Returns the itemset as an array of ItemValues.
Returns:
ItemValue[] The itemset