org.drools.common
Class ScheduledAgendaItem

java.lang.Object
  extended by org.drools.common.AgendaItem
      extended by org.drools.common.ScheduledAgendaItem
All Implemented Interfaces:
Externalizable, Serializable, Entry, LinkedListNode, Queueable, org.drools.runtime.rule.Activation

public class ScheduledAgendaItem
extends AgendaItem
implements Activation, Externalizable, LinkedListNode

See Also:
Serialized Form

Constructor Summary
ScheduledAgendaItem(long activationNumber, LeftTuple tuple, InternalAgenda agenda, PropagationContext context, RuleTerminalNode rtn)
           
 
Method Summary
 JobHandle getJobHandle()
           
 LinkedListNode getNext()
          Returns the next node
 LinkedListNode getPrevious()
          Returns the previous node
 void readExternal(ObjectInput in)
           
 void remove()
          Cancel the Activation by removing it from the Agenda.
 void setJobHandle(JobHandle jobHandle)
           
 void setNext(Entry next)
           
 void setNext(LinkedListNode next)
          Sets the next node
 void setPrevious(LinkedListNode previous)
          Sets the previous node
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.drools.common.AgendaItem
addBlocked, addLogicalDependency, cancel, dequeue, enqueued, equals, getActivationGroupNode, getActivationNode, getActivationNumber, getAgendaGroup, getBlocked, getBlockers, getDeclarationIDs, getDeclarationValue, getFactHandle, getFactHandles, getIndex, getLogicalDependencies, getObjects, getPropagationContext, getRule, getRuleTerminalNode, getSalience, getSequenence, getSubRule, getTuple, hashCode, isActivated, isActive, isCanceled, isMatched, removeAllBlockersAndBlocked, removeBlocked, setActivated, setActivationGroupNode, setActivationNode, setAgendaGroup, setBlocked, setFactHandle, setLogicalDependencies, setMatched, setPropagationContext, setSalience, setSequenence, toExternalForm
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.drools.spi.Activation
addBlocked, addLogicalDependency, getActivationGroupNode, getActivationNode, getActivationNumber, getAgendaGroup, getBlocked, getBlockers, getFactHandle, getLogicalDependencies, getPropagationContext, getRule, getSalience, getSubRule, getTuple, isActivated, isMatched, setActivated, setActivationGroupNode, setActivationNode, setBlocked, setLogicalDependencies, setMatched
 
Methods inherited from interface org.drools.runtime.rule.Activation
getDeclarationIDs, getDeclarationValue, getFactHandles, getObjects, isActive
 

Constructor Detail

ScheduledAgendaItem

public ScheduledAgendaItem(long activationNumber,
                           LeftTuple tuple,
                           InternalAgenda agenda,
                           PropagationContext context,
                           RuleTerminalNode rtn)
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class AgendaItem
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class AgendaItem
Throws:
IOException

getNext

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

Specified by:
getNext in interface Entry
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

setNext

public void setNext(Entry next)
Specified by:
setNext in interface Entry

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.

Overrides:
remove in class AgendaItem

getJobHandle

public JobHandle getJobHandle()

setJobHandle

public void setJobHandle(JobHandle jobHandle)

toString

public String toString()
Overrides:
toString in class AgendaItem


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.