oracle.dmt.odm.rule
Class SimplePredicate

java.lang.Object
  |
  +--oracle.dmt.odm.rule.Predicate
        |
        +--oracle.dmt.odm.rule.SimplePredicate

public class SimplePredicate
extends Predicate

An instance of SimplePredicate consists of a single comparison between a mining attribute value and a set of constants. The constant can be either numeric or categorical.

Examples for SimplePredicate include "gender = Male" or "marital_status IN (Single, Separated)".

Since:
9.2.0

Constructor Summary
SimplePredicate()
          For internal use only
SimplePredicate(SimplePredicate predicate)
          For internal use only
 
Method Summary
TypeMethod
 void addValue(Category value)
          For internal use only
 ComparisonFunction getCompareFunction()
          Returns the ComparisonFunction.
 MiningAttribute getItem()
          Returns the MiningAttribute which is the subject of the comparison.
 Category[] getValue()
          Returns the array of Category value to which the mining attribute value is compared.
 Category[] getValueSortByDisplayName()
          For internal use only
 Category[] getValueSortByValue()
          For internal use only
 void setCompareFunction(ComparisonFunction compFunc)
          For internal use only
 void setItem(MiningAttribute item)
          For internal use only
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePredicate

public SimplePredicate()
For internal use only

SimplePredicate

public SimplePredicate(SimplePredicate predicate)
For internal use only
Method Detail

setCompareFunction

public void setCompareFunction(ComparisonFunction compFunc)
For internal use only

setItem

public void setItem(MiningAttribute item)
For internal use only

addValue

public void addValue(Category value)
For internal use only

getValueSortByDisplayName

public Category[] getValueSortByDisplayName()
For internal use only

getValueSortByValue

public Category[] getValueSortByValue()
For internal use only

getCompareFunction

public ComparisonFunction getCompareFunction()
Returns the ComparisonFunction.
Returns:
ComparsionFunction - the comparison function

getItem

public MiningAttribute getItem()
Returns the MiningAttribute which is the subject of the comparison.
Returns:
MiningAttribute - the mining attribute

getValue

public Category[] getValue()
Returns the array of Category value to which the mining attribute value is compared.
Returns:
Category[] - array of category values