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

public Rule getRule()
Retrieve the Rule that was activated.

Returns:
The rule.

getTuple

public Tuple getTuple()
Retrieve the Tuple that was activated.

Returns:
The tuple.

getPropagationContext

public PropagationContext getPropagationContext()
Retrieve the PropagationContext for the Activation

Returns:
The propagation context

getActivationNumber

public long getActivationNumber()
Retrieve the activation number.

Returns:
The activation number

remove

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


addLogicalDependency

public void addLogicalDependency(LogicalDependency node)

getLogicalDependencies

public LinkedList getLogicalDependencies()

isActivated

public boolean isActivated()

setActivated

public void setActivated(boolean activated)

getActivationGroupNode

public ActivationGroupNode getActivationGroupNode()

setActivationGroupNode

public void setActivationGroupNode(ActivationGroupNode activationGroupNode)