|
|||||||||
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)
Construct. |
Method Summary | |
---|---|
void |
addLogicalDependency(LogicalDependency node)
|
boolean |
equals(java.lang.Object object)
|
ActivationGroupNode |
getActivationGroupNode()
|
long |
getActivationNumber()
Retrieve the activation number. |
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. |
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 |
setNext(LinkedListNode next)
Sets the next node |
void |
setPrevious(LinkedListNode previous)
Sets the previous node |
java.lang.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)
tuple
- The tuple.rule
- The rule.Method Detail |
---|
public PropagationContext getPropagationContext()
Activation
PropagationContext
for the Activation
getPropagationContext
in interface Activation
public Rule getRule()
getRule
in interface Activation
public Tuple getTuple()
getTuple
in interface Activation
public void run()
run
in interface java.lang.Runnable
run
in class java.util.TimerTask
public long getActivationNumber()
Activation
getActivationNumber
in interface Activation
public LinkedListNode getNext()
LinkedListNode
getNext
in interface LinkedListNode
public void setNext(LinkedListNode next)
LinkedListNode
setNext
in interface LinkedListNode
next
- The next LinkedListNodepublic LinkedListNode getPrevious()
LinkedListNode
getPrevious
in interface LinkedListNode
public void setPrevious(LinkedListNode previous)
LinkedListNode
setPrevious
in interface LinkedListNode
previous
- The previous LinkedListNodepublic void remove()
Activation
Activation
by removing it from the Agenda
.
remove
in interface Activation
public java.lang.String toString()
toString
in class java.lang.Object
public void addLogicalDependency(LogicalDependency node)
addLogicalDependency
in interface Activation
public LinkedList getLogicalDependencies()
getLogicalDependencies
in interface Activation
public boolean isActivated()
isActivated
in interface Activation
public void setActivated(boolean activated)
setActivated
in interface Activation
public ActivationGroupNode getActivationGroupNode()
getActivationGroupNode
in interface Activation
public void setActivationGroupNode(ActivationGroupNode activationGroupNode)
setActivationGroupNode
in interface Activation
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
TupleKey as the hashCode of the AgendaItem
- Overrides:
hashCode
in class java.lang.Object
- Returns:
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |