|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.TimerTask
org.drools.common.ScheduledAgendaItem
public class ScheduledAgendaItem
Item entry in the Agenda.
| 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 |
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 |
|---|
public ScheduledAgendaItem(long activationNumber,
Tuple tuple,
InternalAgenda agenda,
PropagationContext context,
Rule rule,
GroupElement subrule)
tuple - The tuple.rule - The rule.| Method Detail |
|---|
public PropagationContext getPropagationContext()
ActivationPropagationContext for the Activation
getPropagationContext in interface Activationpublic Rule getRule()
getRule in interface Activationpublic Tuple getTuple()
getTuple in interface Activationpublic void run()
public long getActivationNumber()
Activation
getActivationNumber in interface Activationpublic LinkedListNode getNext()
LinkedListNode
getNext in interface LinkedListNodepublic void setNext(LinkedListNode next)
LinkedListNode
setNext in interface LinkedListNodenext - The next LinkedListNodepublic LinkedListNode getPrevious()
LinkedListNode
getPrevious in interface LinkedListNodepublic void setPrevious(LinkedListNode previous)
LinkedListNode
setPrevious in interface LinkedListNodeprevious - The previous LinkedListNodepublic void remove()
ActivationActivation by removing it from the Agenda.
remove in interface Activationpublic String toString()
public void addLogicalDependency(LogicalDependency node)
addLogicalDependency in interface Activationpublic LinkedList getLogicalDependencies()
getLogicalDependencies in interface Activationpublic boolean isActivated()
isActivated in interface Activationpublic void setActivated(boolean activated)
setActivated in interface Activationpublic ActivationGroupNode getActivationGroupNode()
getActivationGroupNode in interface Activationpublic void setActivationGroupNode(ActivationGroupNode activationGroupNode)
setActivationGroupNode in interface Activationpublic RuleFlowGroupNode getRuleFlowGroupNode()
getRuleFlowGroupNode in interface Activationpublic void setRuleFlowGroupNode(RuleFlowGroupNode ruleFlowGroupNode)
setRuleFlowGroupNode in interface Activationpublic AgendaGroup getAgendaGroup()
getAgendaGroup in interface Activationpublic boolean equals(Object object)
public int hashCode()
TupleKey as the hashCode of the AgendaItem
-
- Returns:
public GroupElement getSubRule()
Activation
getSubRule in interface Activationpublic void setLogicalDependencies(LinkedList justified)
setLogicalDependencies in interface Activation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||