站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

PropagationContextImpl (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.common
Class PropagationContextImpl

java.lang.Object
  extended by org.drools.common.PropagationContextImpl
All Implemented Interfaces:
Serializable, PropagationContext

public class PropagationContextImpl
extends Object
implements PropagationContext

See Also:
Serialized Form

Field Summary
 int activeActivations
           
 int dormantActivations
           
 ObjectHashMap retracted
           
 
Fields inherited from interface org.drools.spi.PropagationContext
ASSERTION, MODIFICATION, RETRACTION, RULE_ADDITION, RULE_REMOVAL
 
Constructor Summary
PropagationContextImpl(long number, int type, Rule rule, Activation activation)
           
PropagationContextImpl(long number, int type, Rule rule, Activation activation, int activeActivations, int dormantActivations)
           
 
Method Summary
 void addRetractedTuple(Rule rule, Activation activation)
           
 void clearRetractedTuples()
           
 Activation getActivationOrigin()
           
 int getActiveActivations()
           
 int getDormantActivations()
           
 long getPropagationNumber()
           
 Rule getRuleOrigin()
           
 int getType()
           
 Activation removeRetractedTuple(Rule rule, ReteTuple tuple)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

activeActivations

public final int activeActivations

dormantActivations

public final int dormantActivations

retracted

public ObjectHashMap retracted
Constructor Detail

PropagationContextImpl

public PropagationContextImpl(long number,
                              int type,
                              Rule rule,
                              Activation activation)

PropagationContextImpl

public PropagationContextImpl(long number,
                              int type,
                              Rule rule,
                              Activation activation,
                              int activeActivations,
                              int dormantActivations)
Method Detail

getPropagationNumber

public long getPropagationNumber()
Specified by:
getPropagationNumber in interface PropagationContext

getRuleOrigin

public Rule getRuleOrigin()
Specified by:
getRuleOrigin in interface PropagationContext

getActivationOrigin

public Activation getActivationOrigin()
Specified by:
getActivationOrigin in interface PropagationContext

getType

public int getType()
Specified by:
getType in interface PropagationContext

getActiveActivations

public int getActiveActivations()
Specified by:
getActiveActivations in interface PropagationContext

getDormantActivations

public int getDormantActivations()
Specified by:
getDormantActivations in interface PropagationContext

addRetractedTuple

public void addRetractedTuple(Rule rule,
                              Activation activation)
Specified by:
addRetractedTuple in interface PropagationContext

removeRetractedTuple

public Activation removeRetractedTuple(Rule rule,
                                       ReteTuple tuple)
Specified by:
removeRetractedTuple in interface PropagationContext

clearRetractedTuples

public void clearRetractedTuples()
Specified by:
clearRetractedTuples in interface PropagationContext


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.