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

AgendaItem - JBoss RULES 3.0.6 API 英文版文档


org.drools.common
Class AgendaItem

java.lang.Object
  extended by org.drools.common.AgendaItem
All Implemented Interfaces:
java.io.Serializable, Activation, Queueable

public class AgendaItem
extends java.lang.Object
implements Activation, Queueable, java.io.Serializable

Item entry in the Agenda.

See Also:
Serialized Form

Constructor Summary
AgendaItem(long activationNumber, Tuple tuple, PropagationContext context, Rule rule)
          Construct.
 
Method Summary
 void addLogicalDependency(LogicalDependency node)
           
 void dequeue()
           
 void enqueued(Queue queue, int index)
           
 boolean equals(java.lang.Object object)
           
 ActivationGroupNode getActivationGroupNode()
           
 long getActivationNumber()
          Retrieve the activation number.
 LinkedList getLogicalDependencies()
           
 PropagationContext getPropagationContext()
          Retrieve the PropagationContext for the Activation
 Rule getRule()
          Retrieve the rule.
 Tuple getTuple()
          Retrieve the tuple.
 int hashCode()
          Return the hashCode of the TupleKey as the hashCode of the AgendaItem
 boolean isActivated()
           
 void remove()
          Cancel the Activation by removing it from the Agenda.
 void setActivated(boolean activated)
           
 void setActivationGroupNode(ActivationGroupNode activationNode)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgendaItem

public AgendaItem(long activationNumber,
                  Tuple tuple,
                  PropagationContext context,
                  Rule rule)
Construct.

Parameters:
tuple - The tuple.
rule - The rule.
Method Detail

getPropagationContext

public PropagationContext getPropagationContext()
Description copied from interface: Activation
Retrieve the PropagationContext for the Activation

Specified by:
getPropagationContext in interface Activation
Returns:
The propagation context

getRule

public Rule getRule()
Retrieve the rule.

Specified by:
getRule in interface Activation
Returns:
The rule.

getTuple

public Tuple getTuple()
Retrieve the tuple.

Specified by:
getTuple in interface Activation
Returns:
The tuple.

getActivationNumber

public long getActivationNumber()
Description copied from interface: Activation
Retrieve the activation number.

Specified by:
getActivationNumber in interface Activation
Returns:
The activation number

addLogicalDependency

public void addLogicalDependency(LogicalDependency node)
Specified by:
addLogicalDependency in interface Activation

getLogicalDependencies

public LinkedList getLogicalDependencies()
Specified by:
getLogicalDependencies in interface Activation

isActivated

public boolean isActivated()
Specified by:
isActivated in interface Activation

setActivated

public void setActivated(boolean activated)
Specified by:
setActivated in interface Activation

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Return the hashCode of the TupleKey as the hashCode of the AgendaItem

Overrides:
hashCode in class java.lang.Object
Returns:

enqueued

public void enqueued(Queue queue,
                     int index)
Specified by:
enqueued in interface Queueable

dequeue

public void dequeue()
Specified by:
dequeue in interface Queueable

remove

public void remove()
Description copied from interface: Activation
Cancel the Activation by removing it from the Agenda.

Specified by:
remove in interface Activation

getActivationGroupNode

public ActivationGroupNode getActivationGroupNode()
Specified by:
getActivationGroupNode in interface Activation

setActivationGroupNode

public void setActivationGroupNode(ActivationGroupNode activationNode)
Specified by:
setActivationGroupNode in interface Activation