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

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


org.drools.common
Class AgendaItem

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

public class AgendaItem
extends Object
implements Activation, Queueable, Serializable

Item entry in the Agenda.

Author:
Mark Proctor, Bob McWhirter
See Also:
Serialized Form

Constructor Summary
AgendaItem(long activationNumber, Tuple tuple, PropagationContext context, Rule rule, GroupElement subrule)
          Construct.
 
Method Summary
 void addLogicalDependency(LogicalDependency node)
           
 void dequeue()
           
 void enqueued(Queue queue, int index)
           
 boolean equals(Object object)
           
 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.
 RuleFlowGroupNode getRuleFlowGroupNode()
           
 GroupElement getSubRule()
          Retrieve the subrule that was activated.
 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)
           
 void setAgendaGroup(AgendaGroupImpl agendaGroup)
           
 void setLogicalDependencies(LinkedList justified)
           
 void setRuleFlowGroupNode(RuleFlowGroupNode ruleFlowGroupNode)
           
 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,
                  GroupElement subrule)
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

setLogicalDependencies

public void setLogicalDependencies(LinkedList justified)
Specified by:
setLogicalDependencies 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 String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

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

Overrides:
hashCode in class 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

getAgendaGroup

public AgendaGroup getAgendaGroup()
Specified by:
getAgendaGroup in interface Activation

setAgendaGroup

public void setAgendaGroup(AgendaGroupImpl agendaGroup)

getRuleFlowGroupNode

public RuleFlowGroupNode getRuleFlowGroupNode()
Specified by:
getRuleFlowGroupNode in interface Activation

setRuleFlowGroupNode

public void setRuleFlowGroupNode(RuleFlowGroupNode ruleFlowGroupNode)
Specified by:
setRuleFlowGroupNode in interface Activation

getSubRule

public GroupElement getSubRule()
Description copied from interface: Activation
Retrieve the subrule that was activated.

Specified by:
getSubRule in interface Activation
Returns:


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