Package org.drools.core.phreak
Class RuleAgendaItem
- java.lang.Object
-
- org.drools.core.common.AgendaItemImpl
-
- org.drools.core.phreak.RuleAgendaItem
-
- All Implemented Interfaces:
Serializable
,AgendaItem
,Activation
,Entry<RuleAgendaItem>
,LinkedListNode<RuleAgendaItem>
,org.kie.api.runtime.rule.Match
public class RuleAgendaItem extends AgendaItemImpl implements LinkedListNode<RuleAgendaItem>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RuleAgendaItem()
RuleAgendaItem(long activationNumber, Tuple tuple, int salience, PropagationContext context, PathMemory pmem, TerminalNode rtn, boolean declarativeAgendaEnabled, InternalAgendaGroup agendaGroup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
RuleAgendaItem
getNext()
RuleAgendaItem
getPrevious()
Returns the previous nodeRuleExecutor
getRuleExecutor()
int
hashCode()
Return the hashCode of theTupleKey
as the hashCode of the AgendaItem
boolean
isInList(LinkedList<RuleAgendaItem> list)
boolean
isRuleAgendaItem()
void
nullPrevNext()
void
setNext(RuleAgendaItem next)
void
setPrevious(RuleAgendaItem previous)
Sets the previous node-
Methods inherited from class org.drools.core.common.AgendaItemImpl
addBlocked, addLogicalDependency, cancel, dequeue, getActivationFactHandle, getActivationGroupNode, getActivationNode, getActivationNumber, getAgendaGroup, getBlocked, getBlockers, getCallback, getConsequence, getDeclarationIds, getDeclarationValue, getFactHandles, getLogicalDependencies, getObjects, getObjectsDeep, getPartition, getPropagationContext, getQueueIndex, getRule, getRuleAgendaItem, getSalience, getSubRule, getTerminalNode, getTuple, isActive, isCanceled, isMatched, isQueued, isRuleInUse, remove, removeAllBlockersAndBlocked, removeBlocked, setActivationFactHandle, setActivationGroupNode, setActivationNode, setActive, setBlocked, setCallback, setLogicalDependencies, setMatched, setPropagationContext, setQueued, setQueueIndex, setSalience, toExternalForm, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.drools.core.common.AgendaItem
getFactHandles, getObjects, getObjectsDeep
-
-
-
-
Constructor Detail
-
RuleAgendaItem
public RuleAgendaItem()
-
RuleAgendaItem
public RuleAgendaItem(long activationNumber, Tuple tuple, int salience, PropagationContext context, PathMemory pmem, TerminalNode rtn, boolean declarativeAgendaEnabled, InternalAgendaGroup agendaGroup)
-
-
Method Detail
-
getRuleExecutor
public RuleExecutor getRuleExecutor()
-
isRuleAgendaItem
public boolean isRuleAgendaItem()
- Specified by:
isRuleAgendaItem
in interfaceActivation
- Overrides:
isRuleAgendaItem
in classAgendaItemImpl
-
getPrevious
public RuleAgendaItem getPrevious()
Description copied from interface:LinkedListNode
Returns the previous node- Specified by:
getPrevious
in interfaceLinkedListNode<RuleAgendaItem>
- Returns:
- The previous LinkedListNode
-
setPrevious
public void setPrevious(RuleAgendaItem previous)
Description copied from interface:LinkedListNode
Sets the previous node- Specified by:
setPrevious
in interfaceLinkedListNode<RuleAgendaItem>
- Parameters:
previous
- The previous LinkedListNode
-
getNext
public RuleAgendaItem getNext()
- Specified by:
getNext
in interfaceEntry<RuleAgendaItem>
-
setNext
public void setNext(RuleAgendaItem next)
- Specified by:
setNext
in interfaceEntry<RuleAgendaItem>
-
isInList
public boolean isInList(LinkedList<RuleAgendaItem> list)
-
nullPrevNext
public void nullPrevNext()
- Specified by:
nullPrevNext
in interfaceLinkedListNode<RuleAgendaItem>
-
equals
public boolean equals(Object object)
- Overrides:
equals
in classAgendaItemImpl
-
hashCode
public int hashCode()
Return the hashCode of theTupleKey
as the hashCode of the AgendaItem
- Overrides:
hashCode
in classAgendaItemImpl
- Returns:
-
-