org.drools.analytics.result
Class Redundancy

java.lang.Object
  extended by org.drools.analytics.result.Redundancy

public class Redundancy
extends java.lang.Object

Presents a redundancy between two Causes. The link between them can be WEAK or STRONG. WEAK redundancy is for example two AnalyticsRules, but not theys rule possibilities. STRONG redundancy includes possibilities.

Author:
Toni Rikkola

Nested Class Summary
static class Redundancy.RedundancyType
           
 
Constructor Summary
Redundancy(Cause left, Cause right)
           
Redundancy(Redundancy.RedundancyType type, Cause left, Cause right)
           
 
Method Summary
 Cause.CauseType getCauseType()
           
 Cause getLeft()
           
 Cause getRight()
           
 Redundancy.RedundancyType getType()
           
 void setLeft(Cause left)
           
 void setRight(Cause right)
           
 void setType(Redundancy.RedundancyType type)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Redundancy

public Redundancy(Cause left,
                  Cause right)

Redundancy

public Redundancy(Redundancy.RedundancyType type,
                  Cause left,
                  Cause right)
Method Detail

getLeft

public Cause getLeft()

setLeft

public void setLeft(Cause left)

getRight

public Cause getRight()

setRight

public void setRight(Cause right)

getType

public Redundancy.RedundancyType getType()

setType

public void setType(Redundancy.RedundancyType type)

toString

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

getCauseType

public Cause.CauseType getCauseType()