Package org.drools.core.phreak
Class RuleAgendaItem
java.lang.Object
org.drools.core.phreak.RuleAgendaItem
- All Implemented Interfaces:
DoubleLinkedEntry<RuleAgendaItem>,Queue.QueueEntry,SingleLinkedEntry<RuleAgendaItem>
public class RuleAgendaItem
extends Object
implements DoubleLinkedEntry<RuleAgendaItem>, Queue.QueueEntry
-
Constructor Summary
ConstructorsConstructorDescriptionRuleAgendaItem(int salience, PathMemory pmem, TerminalNode rtn, boolean declarativeAgendaEnabled, InternalAgendaGroup agendaGroup) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voiddequeue()getNext()Returns the previous nodeintgetRule()Retrieve the rule.intbooleanisInList(LinkedList<RuleAgendaItem> list) booleanisQueued()booleanvoidremove()voidsetNext(RuleAgendaItem next) voidsetPrevious(RuleAgendaItem previous) Sets the previous nodevoidsetQueued(boolean queued) voidsetQueueIndex(int index) voidsetSalience(int salience) toString()
-
Constructor Details
-
RuleAgendaItem
public RuleAgendaItem() -
RuleAgendaItem
public RuleAgendaItem(int salience, PathMemory pmem, TerminalNode rtn, boolean declarativeAgendaEnabled, InternalAgendaGroup agendaGroup)
-
-
Method Details
-
getRuleExecutor
-
getPrevious
Description copied from interface:DoubleLinkedEntryReturns the previous node- Specified by:
getPreviousin interfaceDoubleLinkedEntry<RuleAgendaItem>- Returns:
- The previous LinkedListNode
-
setPrevious
Description copied from interface:DoubleLinkedEntrySets the previous node- Specified by:
setPreviousin interfaceDoubleLinkedEntry<RuleAgendaItem>- Parameters:
previous- The previous LinkedListNode
-
getNext
- Specified by:
getNextin interfaceSingleLinkedEntry<RuleAgendaItem>
-
setNext
- Specified by:
setNextin interfaceSingleLinkedEntry<RuleAgendaItem>
-
isInList
-
clear
public void clear()- Specified by:
clearin interfaceDoubleLinkedEntry<RuleAgendaItem>
-
getPartition
-
getRule
Retrieve the rule.- Returns:
- The rule.
-
getTerminalNode
-
getSalience
public int getSalience() -
setSalience
public void setSalience(int salience) -
isQueued
public boolean isQueued()- Specified by:
isQueuedin interfaceQueue.QueueEntry
-
setQueued
public void setQueued(boolean queued) - Specified by:
setQueuedin interfaceQueue.QueueEntry
-
setQueueIndex
public void setQueueIndex(int index) - Specified by:
setQueueIndexin interfaceQueue.QueueEntry
-
getQueueIndex
public int getQueueIndex()- Specified by:
getQueueIndexin interfaceQueue.QueueEntry
-
dequeue
public void dequeue()- Specified by:
dequeuein interfaceQueue.QueueEntry
-
toString
-
remove
public void remove() -
getAgendaGroup
-
isRuleInUse
public boolean isRuleInUse()
-