当前页面:
在线文档首页 >
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.RuleFlowSequenceNodeInstance
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
RuleFlowGroupImpl with the given name.
- Parameters:
name - The RuleFlowGroup name.
getName
public String getName()
- Specified by:
getName in interface RuleFlowGroup
setActive
public void setActive(boolean active)
- Description copied from interface:
InternalRuleFlowGroup
- Activates or deactivates this
RuleFlowGroup.
When activating, all activations of this RuleFlowGroup are added
to the agenda.
As long as the RuleFlowGroup remains active,
its activations are automatically added to the agenda.
When deactivating, all activations of this RuleFlowGroup are removed
to the agenda.
As long as the RuleFlowGroup remains deactive,
its activations are not added to the agenda.
- Specified by:
setActive in interface InternalRuleFlowGroup
isActive
public boolean isActive()
- Specified by:
isActive in interface InternalRuleFlowGroup- Specified by:
isActive in interface RuleFlowGroup
isAutoDeactivate
public boolean isAutoDeactivate()
- Specified by:
isAutoDeactivate in 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:
setAutoDeactivate in interface RuleFlowGroup
clear
public void clear()
size
public int size()
- Specified by:
size in interface RuleFlowGroup
addActivation
public void addActivation(Activation activation)
- Specified by:
addActivation in interface InternalRuleFlowGroup
removeActivation
public void removeActivation(Activation activation,
InternalWorkingMemory workingMemory)
- Specified by:
removeActivation in interface InternalRuleFlowGroup
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface RuleFlowGroup
iterator
public Iterator iterator()
- Specified by:
iterator in interface RuleFlowGroup
toString
public String toString()
- Overrides:
toString in class Object
equal
public boolean equal(Object object)
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
trigger
public void trigger(IRuleFlowNodeInstance parent)
- Specified by:
trigger in interface IRuleFlowNodeInstance- Overrides:
trigger in class RuleFlowSequenceNodeInstance
Copyright © 2001-2007
JBoss Inc.. All Rights Reserved.