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

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


org.drools.common
Class ScheduledAgendaItem

java.lang.Object
  extended by java.util.TimerTask
      extended by org.drools.common.ScheduledAgendaItem
All Implemented Interfaces:
Serializable, Runnable, Activation, LinkedListNode

public class ScheduledAgendaItem
extends TimerTask
implements Activation, Serializable, LinkedListNode

Item entry in the Agenda.

Author:
bob mcwhirter
See Also:
Serialized Form

Constructor Summary
ScheduledAgendaItem(long activationNumber, Tuple tuple, InternalAgenda agenda, PropagationContext context, Rule rule, GroupElement subrule)
          Construct.
 
Method Summary
 void addLogicalDependency(LogicalDependency node)
           
 boolean equals(Object object)
           
 ActivationGroupNode getActivationGroupNode()
           
 long getActivationNumber()
          Retrieve the activation number.
 AgendaGroup getAgendaGroup()
           
 LinkedList getLogicalDependencies()
           
 LinkedListNode getNext()
          Returns the next node
 LinkedListNode getPrevious()
          Returns the previous node
 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 hashode of the TupleKey as the hashCode of the AgendaItem
 boolean isActivated()
           
 void remove()
          Cancel the Activation by removing it from the Agenda.
 void run()
          Handle the firing of an alarm.
 void setActivated(boolean activated)
           
 void setActivationGroupNode(ActivationGroupNode activationGroupNode)
           
 void setLogicalDependencies(LinkedList justified)
           
 void setNext(LinkedListNode next)
          Sets the next node
 void setPrevious(LinkedListNode previous)
          Sets the previous node
 void setRuleFlowGroupNode(RuleFlowGroupNode ruleFlowGroupNode)
           
 String toString()
           
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScheduledAgendaItem

public ScheduledAgendaItem(long activationNumber,
                           Tuple tuple,
                           InternalAgenda agenda,
                           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.

run

public void run()
Handle the firing of an alarm.

Specified by:
run in interface Runnable
Specified by:
run in class TimerTask

getActivationNumber

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

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

getNext

public LinkedListNode getNext()
Description copied from interface: LinkedListNode
Returns the next node

Specified by:
getNext in interface LinkedListNode
Returns:
The next LinkedListNode

setNext

public void setNext(LinkedListNode next)
Description copied from interface: LinkedListNode
Sets the next node

Specified by:
setNext in interface LinkedListNode
Parameters:
next - The next LinkedListNode

getPrevious

public LinkedListNode getPrevious()
Description copied from interface: LinkedListNode
Returns the previous node

Specified by:
getPrevious in interface LinkedListNode
Returns:
The previous LinkedListNode

setPrevious

public void setPrevious(LinkedListNode previous)
Description copied from interface: LinkedListNode
Sets the previous node

Specified by:
setPrevious in interface LinkedListNode
Parameters:
previous - The previous LinkedListNode

remove

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

Specified by:
remove in interface Activation

toString

public String toString()
Overrides:
toString in class Object

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

getActivationGroupNode

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

setActivationGroupNode

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

getRuleFlowGroupNode

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

setRuleFlowGroupNode

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

getAgendaGroup

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

equals

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

hashCode

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

Overrides:
hashCode in class Object
Returns:

getSubRule

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

Specified by:
getSubRule in interface Activation
Returns:

setLogicalDependencies

public void setLogicalDependencies(LinkedList justified)
Specified by:
setLogicalDependencies in interface Activation


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