|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.common.AgendaItem
public class AgendaItem
Item entry in the Agenda.
| Constructor Summary | |
|---|---|
AgendaItem()
|
|
AgendaItem(long activationNumber,
LeftTuple tuple,
int salience,
PropagationContext context,
RuleTerminalNode rtn)
Construct. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AgendaItem()
public AgendaItem(long activationNumber,
LeftTuple tuple,
int salience,
PropagationContext context,
RuleTerminalNode rtn)
tuple - The tuple.rule - The rule.| Method Detail |
|---|
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOExceptionpublic PropagationContext getPropagationContext()
ActivationPropagationContext for the Activation
getPropagationContext in interface org.drools.runtime.rule.Activationpublic void setPropagationContext(PropagationContext context)
public Rule getRule()
getRule in interface org.drools.runtime.rule.Activationpublic Consequence getConsequence()
public LeftTuple getTuple()
public int getSalience()
public void setSalience(int salience)
public int getSequenence()
public void setSequenence(int sequenence)
public InternalFactHandle getFactHandle()
public void setFactHandle(InternalFactHandle factHandle)
public long getActivationNumber()
Activation
public void addBlocked(LogicalDependency dep)
public void removeAllBlockersAndBlocked(DefaultAgenda agenda)
public void removeBlocked(LogicalDependency dep)
public void setBlocked(LinkedList<LogicalDependency> justified)
public LinkedList<LogicalDependency> getBlocked()
public LinkedList<LinkedListEntry<LogicalDependency>> getBlockers()
public void addLogicalDependency(LogicalDependency node)
public LinkedList<LogicalDependency> getLogicalDependencies()
public void setLogicalDependencies(LinkedList<LogicalDependency> justified)
public boolean isActivated()
public void setActivated(boolean activated)
public String toString()
toString in class Objectpublic boolean equals(Object object)
equals in class Objectpublic int hashCode()
TupleKey as the hashCode of the AgendaItem
- Overrides:
hashCode in class Object
- Returns:
public void enqueued(int index)
enqueued in interface Queueablepublic void dequeue()
dequeue in interface Queueablepublic int getIndex()
public void remove()
ActivationActivation by removing it from the Agenda.
public ActivationGroupNode getActivationGroupNode()
public void setActivationGroupNode(ActivationGroupNode activationNode)
public AgendaGroup getAgendaGroup()
public void setAgendaGroup(InternalAgendaGroup agendaGroup)
public ActivationNode getActivationNode()
public void setActivationNode(ActivationNode activationNode)
public GroupElement getSubRule()
Activation
public RuleTerminalNode getRuleTerminalNode()
public org.drools.event.rule.ActivationUnMatchListener getActivationUnMatchListener()
public void setActivationUnMatchListener(org.drools.event.rule.ActivationUnMatchListener activationUnMatchListener)
public List<FactHandle> getFactHandles()
getFactHandles in interface org.drools.runtime.rule.Activationpublic String toExternalForm()
public List<Object> getObjects()
getObjects in interface org.drools.runtime.rule.Activationpublic Object getDeclarationValue(String variableName)
getDeclarationValue in interface org.drools.runtime.rule.Activationpublic List<String> getDeclarationIDs()
getDeclarationIDs in interface org.drools.runtime.rule.Activationpublic boolean isActive()
isActive in interface org.drools.runtime.rule.Activationpublic boolean isCanceled()
public void cancel()
public boolean isMatched()
public void setMatched(boolean matched)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||