|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.drools.common.AgendaItem
public class AgendaItem
Item entry in the Agenda
.
Constructor Summary | |
---|---|
AgendaItem(long activationNumber,
Tuple tuple,
PropagationContext context,
Rule rule,
GroupElement subrule)
Construct. |
Method Summary | |
---|---|
void |
addLogicalDependency(LogicalDependency node)
|
void |
dequeue()
|
void |
enqueued(Queue queue,
int index)
|
boolean |
equals(Object object)
|
ActivationGroupNode |
getActivationGroupNode()
|
long |
getActivationNumber()
Retrieve the activation number. |
AgendaGroup |
getAgendaGroup()
|
LinkedList |
getLogicalDependencies()
|
PropagationContext |
getPropagationContext()
Retrieve the PropagationContext for the Activation |
Rule |
getRule()
Retrieve the rule. |
RuleFlowGroupNode |
getRuleFlowGroupNode()
|
GroupElement |
getSubRule()
Retrieve the subrule that was activated. |
Tuple |
getTuple()
Retrieve the tuple. |
int |
hashCode()
Return the hashCode of the TupleKey |
boolean |
isActivated()
|
void |
remove()
Cancel the Activation by removing it from the Agenda . |
void |
setActivated(boolean activated)
|
void |
setActivationGroupNode(ActivationGroupNode activationNode)
|
void |
setAgendaGroup(AgendaGroupImpl agendaGroup)
|
void |
setLogicalDependencies(LinkedList justified)
|
void |
setRuleFlowGroupNode(RuleFlowGroupNode ruleFlowGroupNode)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AgendaItem(long activationNumber, Tuple tuple, PropagationContext context, Rule rule, GroupElement subrule)
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 long getActivationNumber()
Activation
getActivationNumber
in interface Activation
public void addLogicalDependency(LogicalDependency node)
addLogicalDependency
in interface Activation
public LinkedList getLogicalDependencies()
getLogicalDependencies
in interface Activation
public void setLogicalDependencies(LinkedList justified)
setLogicalDependencies
in interface Activation
public boolean isActivated()
isActivated
in interface Activation
public void setActivated(boolean activated)
setActivated
in interface Activation
public String toString()
public boolean equals(Object object)
public int hashCode()
TupleKey as the hashCode of the AgendaItem
-
- Returns:
public void enqueued(Queue queue, int index)
public void dequeue()
public void remove()
Activation
Activation
by removing it from the Agenda
.
remove
in interface Activation
public ActivationGroupNode getActivationGroupNode()
getActivationGroupNode
in interface Activation
public void setActivationGroupNode(ActivationGroupNode activationNode)
setActivationGroupNode
in interface Activation
public AgendaGroup getAgendaGroup()
getAgendaGroup
in interface Activation
public void setAgendaGroup(AgendaGroupImpl agendaGroup)
public RuleFlowGroupNode getRuleFlowGroupNode()
getRuleFlowGroupNode
in interface Activation
public void setRuleFlowGroupNode(RuleFlowGroupNode ruleFlowGroupNode)
setRuleFlowGroupNode
in interface Activation
public GroupElement getSubRule()
Activation
getSubRule
in interface Activation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |