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

Activation - JBoss RULES 3.0.6 API 英文版文档


org.drools.spi
Interface Activation

All Known Implementing Classes:
AgendaItem, ScheduledAgendaItem

public interface Activation

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.


Method Summary
 void addLogicalDependency(LogicalDependency node)
           
 ActivationGroupNode getActivationGroupNode()
           
 long getActivationNumber()
          Retrieve the activation number.
 LinkedList getLogicalDependencies()
           
 PropagationContext getPropagationContext()
          Retrieve the PropagationContext for the Activation
 Rule getRule()
          Retrieve the Rule 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)
           
 

Method Detail

getRule

Rule getRule()
Retrieve the Rule that was activated.

Returns:
The rule.

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()

isActivated

boolean isActivated()

setActivated

void setActivated(boolean activated)

getActivationGroupNode

ActivationGroupNode getActivationGroupNode()

setActivationGroupNode

void setActivationGroupNode(ActivationGroupNode activationGroupNode)