org.drools.analytics.components
Class PatternPossibility

java.lang.Object
  extended by org.drools.analytics.components.AnalyticsComponent
      extended by org.drools.analytics.components.PatternPossibility
All Implemented Interfaces:
Possibility, Cause

public class PatternPossibility
extends AnalyticsComponent
implements Possibility

Instance of this class represents a possible combination of Constraints under one Pattern. Each possibility returns true if all the Constraints in the combination are true.

Author:
Toni Rikkola

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.drools.analytics.result.Cause
Cause.CauseType
 
Field Summary
 
Fields inherited from class org.drools.analytics.components.AnalyticsComponent
id, ruleName
 
Constructor Summary
PatternPossibility()
           
 
Method Summary
 void add(Restriction restriction)
           
 int getAmountOfItems()
           
 Cause.CauseType getCauseType()
           
 AnalyticsComponentType getComponentType()
           
 java.util.Set<Cause> getItems()
           
 int getPatternId()
           
 int getRuleId()
           
 void setPatternId(int patternId)
           
 void setRuleId(int ruleId)
           
 java.lang.String toString()
           
 
Methods inherited from class org.drools.analytics.components.AnalyticsComponent
getId, getRuleName, setRuleName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.drools.analytics.result.Cause
getId, getRuleName
 

Constructor Detail

PatternPossibility

public PatternPossibility()
Method Detail

getComponentType

public AnalyticsComponentType getComponentType()
Specified by:
getComponentType in class AnalyticsComponent

getCauseType

public Cause.CauseType getCauseType()
Specified by:
getCauseType in interface Cause

getItems

public java.util.Set<Cause> getItems()
Specified by:
getItems in interface Possibility

getAmountOfItems

public int getAmountOfItems()
Specified by:
getAmountOfItems in interface Possibility

getPatternId

public int getPatternId()

getRuleId

public int getRuleId()

setRuleId

public void setRuleId(int ruleId)

setPatternId

public void setPatternId(int patternId)

add

public void add(Restriction restriction)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object