org.drools.leaps
Class LeapsRuleHandle

java.lang.Object
  extended byorg.drools.common.DefaultFactHandle
      extended byorg.drools.leaps.LeapsRuleHandle
All Implemented Interfaces:
FactHandle, InternalFactHandle, java.io.Serializable

public class LeapsRuleHandle
extends DefaultFactHandle

class container for rules. Re-using defaultfact handle class container for rules used in the system. Handle is created for each leaps rule, dominant position (column/ce position), dominant position type (class at the column/ce position) or indicator if handle is for asserted or retracted tuple combination

See Also:
Serialized Form
 

Constructor Summary
LeapsRuleHandle(long id, org.drools.leaps.LeapsRule rule, int dominantPosition)
           
 
Method Summary
 boolean equals(java.lang.Object that)
           
 int getDominantPosition()
           
 org.drools.leaps.LeapsRule getLeapsRule()
           
 int getRuleComplexity()
           
 int getSalience()
           
 java.lang.String toString()
           
 
Methods inherited from class org.drools.common.DefaultFactHandle
getEqualityKey, getId, getObject, getObjectHashCode, getRecency, hashCode, invalidate, setEqualityKey, setObject, setRecency, toExternalForm
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LeapsRuleHandle

public LeapsRuleHandle(long id,
                       org.drools.leaps.LeapsRule rule,
                       int dominantPosition)
Method Detail

getLeapsRule

public org.drools.leaps.LeapsRule getLeapsRule()
Returns:
leaps wrapped rule

getDominantPosition

public int getDominantPosition()
Returns:
base column / ce position

getRuleComplexity

public int getRuleComplexity()
See Also:
Rule

getSalience

public int getSalience()
See Also:
Rule

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class DefaultFactHandle
See Also:
Object

toString

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