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

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


org.drools.spi
Interface Activation

All Superinterfaces:
Serializable
All Known Implementing Classes:
AgendaItem, ScheduledAgendaItem

public interface Activation
extends Serializable

When a Tuple fully matches a rule it is added to the Agenda As an Activation. Each Activation is assigned a number, this number is determined by the WorkingMemory all Activations created from a single assert, modify, retract are assgigned the same Activation number.

Author:
Mark Proctor, Bob McWhirter

Method Summary
 void addLogicalDependency(LogicalDependency node)
           
 ActivationGroupNode getActivationGroupNode()
           
 long getActivationNumber()
          Retrieve the activation number.
 AgendaGroup getAgendaGroup()
           
 LinkedList getLogicalDependencies()
           
 PropagationContext getPropagationContext()
          Retrieve the PropagationContext for the Activation
 Rule getRule()
          Retrieve the Rule that was activated.
 RuleFlowGroupNode getRuleFlowGroupNode()
           
 GroupElement getSubRule()
          Retrieve the subrule that was activated.
 Tuple getTuple()
          Retrieve the Tuple that was activated.
 boolean isActivated()
           
 void remove()
          Cancel the Activation by removing it from the Agenda.
 void setActivated(boolean activated)
           
 void setActivationGroupNode(ActivationGroupNode activationGroupNode)
           
 void setLogicalDependencies(LinkedList justified)
           
 void setRuleFlowGroupNode(RuleFlowGroupNode ruleFlowGroupNode)
           
 

Method Detail

getRule

Rule getRule()
Retrieve the Rule that was activated.

Returns:
The rule.

getSubRule

GroupElement getSubRule()
Retrieve the subrule that was activated.

Returns:

getTuple

Tuple getTuple()
Retrieve the Tuple that was activated.

Returns:
The tuple.

getPropagationContext

PropagationContext getPropagationContext()
Retrieve the PropagationContext for the Activation

Returns:
The propagation context

getActivationNumber

long getActivationNumber()
Retrieve the activation number.

Returns:
The activation number

remove

void remove()
Cancel the Activation by removing it from the Agenda.


addLogicalDependency

void addLogicalDependency(LogicalDependency node)

getLogicalDependencies

LinkedList getLogicalDependencies()

setLogicalDependencies

void setLogicalDependencies(LinkedList justified)

isActivated

boolean isActivated()

setActivated

void setActivated(boolean activated)

getAgendaGroup

AgendaGroup getAgendaGroup()

getActivationGroupNode

ActivationGroupNode getActivationGroupNode()

setActivationGroupNode

void setActivationGroupNode(ActivationGroupNode activationGroupNode)

getRuleFlowGroupNode

RuleFlowGroupNode getRuleFlowGroupNode()

setRuleFlowGroupNode

void setRuleFlowGroupNode(RuleFlowGroupNode ruleFlowGroupNode)


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