当前页面: 
在线文档首页 > 
JBoss RULES 4.0.0.11754MR2 API 英文版文档
RuleFlowGroupImpl (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档
org.drools.common
Class RuleFlowGroupImpl
java.lang.Object
   org.drools.ruleflow.instance.impl.RuleFlowNodeInstance
org.drools.ruleflow.instance.impl.RuleFlowNodeInstance
       org.drools.ruleflow.instance.impl.RuleFlowSequenceNodeInstance
org.drools.ruleflow.instance.impl.RuleFlowSequenceNodeInstance
           org.drools.common.RuleFlowGroupImpl
org.drools.common.RuleFlowGroupImpl
- All Implemented Interfaces: 
- InternalRuleFlowGroup, IRuleFlowNodeInstance, RuleFlowGroup
- public class RuleFlowGroupImpl 
- extends RuleFlowSequenceNodeInstance- implements InternalRuleFlowGroup
Implementation of a RuleFlowGroup that collects activations
 of rules of this ruleflow-group.
 If this group is activated, all its activations are added to the agenda.
 As long as this group is active, its activations are added to the agenda.
 Deactivating the group removes all its activations from the agenda and
 collects them until it is activated again.
 By default, RuleFlowGroups are automatically deactivated when there are no more
 activations in the RuleFlowGroup.  However, this can be configured.
- Author:
- Mark Proctor, Kris Verlaenen
 
 
 
 
 
 
 
RuleFlowGroupImpl
public RuleFlowGroupImpl(String name)
- Construct a RuleFlowGroupImplwith the given name.
 
- Parameters:
- name- The RuleFlowGroup name.
 
getName
public String getName()
- 
- Specified by:
- getNamein interface- RuleFlowGroup
 
- 
 
setActive
public void setActive(boolean active)
- Description copied from interface: InternalRuleFlowGroup
- Activates or deactivates this RuleFlowGroup.
 When activating, all activations of thisRuleFlowGroupare added
 to the agenda.
 As long as theRuleFlowGroupremains active,
 its activations are automatically added to the agenda. 
 When deactivating, all activations of thisRuleFlowGroupare removed
 to the agenda.
 As long as theRuleFlowGroupremains deactive,
 its activations are not added to the agenda.
 
- 
- Specified by:
- setActivein interface- InternalRuleFlowGroup
 
- 
 
isActive
public boolean isActive()
- 
- Specified by:
- isActivein interface- InternalRuleFlowGroup
- Specified by:
- isActivein interface- RuleFlowGroup
 
- 
 
isAutoDeactivate
public boolean isAutoDeactivate()
- 
- Specified by:
- isAutoDeactivatein interface- RuleFlowGroup
 
- 
 
setAutoDeactivate
public void setAutoDeactivate(boolean autoDeactivate)
- Description copied from interface: RuleFlowGroup
- Sets the auto-deactivate status of this RuleFlowGroup.
 If this is set to true, an active RuleFlowGroup automatically
 deactivates if it has no more activations.  If it had no
 activations when it was activated, it will be deactivated immediately.
 
- 
- Specified by:
- setAutoDeactivatein interface- RuleFlowGroup
 
- 
 
clear
public void clear()
- 
 
- 
 
size
public int size()
- 
- Specified by:
- sizein interface- RuleFlowGroup
 
- 
 
addActivation
public void addActivation(Activation activation)
- 
- Specified by:
- addActivationin interface- InternalRuleFlowGroup
 
- 
 
removeActivation
public void removeActivation(Activation activation,
                             InternalWorkingMemory workingMemory)
- 
- Specified by:
- removeActivationin interface- InternalRuleFlowGroup
 
- 
 
isEmpty
public boolean isEmpty()
- 
- Specified by:
- isEmptyin interface- RuleFlowGroup
 
- 
 
iterator
public Iterator iterator()
- 
- Specified by:
- iteratorin interface- RuleFlowGroup
 
- 
 
toString
public String toString()
- 
- Overrides:
- toStringin class- Object
 
- 
 
equal
public boolean equal(Object object)
- 
 
- 
 
hashCode
public int hashCode()
- 
- Overrides:
- hashCodein class- Object
 
- 
 
trigger
public void trigger(IRuleFlowNodeInstance parent)
- 
- Specified by:
- triggerin interface- IRuleFlowNodeInstance
- Overrides:
- triggerin class- RuleFlowSequenceNodeInstance
 
- 
 
Copyright © 2001-2007 
JBoss Inc.. All Rights Reserved.