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<ScheduledAgendaItem>, Queueable, org.drools.runtime.rule.Activation

public class ScheduledAgendaItem
extends AgendaItem
implements Activation, Externalizable, LinkedListNode<ScheduledAgendaItem>

See Also:
Serialized Form

Constructor Summary
ScheduledAgendaItem(long activationNumber, LeftTuple tuple, InternalAgenda agenda, PropagationContext context, RuleTerminalNode rtn)
           
 
Method Summary
 JobHandle getJobHandle()
           
 ScheduledAgendaItem getNext()
          Returns the next node
 ScheduledAgendaItem getPrevious()
          Returns the previous node
 boolean isEnqueued()
           
 void readExternal(ObjectInput in)
           
 void remove()
          Cancel the Activation by removing it from the Agenda.
 void setEnqueued(boolean enqueued)
           
 void setJobHandle(JobHandle jobHandle)
           
 void setNext(Entry next)
           
 void setNext(ScheduledAgendaItem next)
          Sets the next node
 void setPrevious(ScheduledAgendaItem 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, getActivationUnMatchListener, getAgendaGroup, getBlocked, getBlockers, getConsequence, getDeclarationIDs, getDeclarationValue, getFactHandle, getFactHandles, getIndex, getLogicalDependencies, getObjects, getPropagationContext, getRule, getRuleTerminalNode, getSalience, getSequenence, getSubRule, getTuple, hashCode, isActivated, isActive, isCanceled, isMatched, removeAllBlockersAndBlocked, removeBlocked, setActivated, setActivationGroupNode, setActivationNode, setActivationUnMatchListener, 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, getConsequence, 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 ScheduledAgendaItem getNext()
Description copied from interface: LinkedListNode
Returns the next node

Specified by:
getNext in interface Entry
Specified by:
getNext in interface LinkedListNode<ScheduledAgendaItem>
Returns:
The next LinkedListNode

setNext

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

Specified by:
setNext in interface LinkedListNode<ScheduledAgendaItem>
Parameters:
next - The next LinkedListNode

setNext

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

getPrevious

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

Specified by:
getPrevious in interface LinkedListNode<ScheduledAgendaItem>
Returns:
The previous LinkedListNode

setPrevious

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

Specified by:
setPrevious in interface LinkedListNode<ScheduledAgendaItem>
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

isEnqueued

public boolean isEnqueued()

setEnqueued

public void setEnqueued(boolean enqueued)


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