当前页面:
在线文档首页 >
JBoss RULES 3.0.6 API 英文版文档
AgendaGroupImpl - JBoss RULES 3.0.6 API 英文版文档
org.drools.common
Class AgendaGroupImpl
java.lang.Object
org.drools.common.AgendaGroupImpl
- All Implemented Interfaces:
- java.io.Serializable, AgendaGroup
public class AgendaGroupImpl
- extends java.lang.Object
- implements AgendaGroup
AgendaGroup
implementation that uses a PriorityQueue
to prioritise the evaluation of added
ActivationQueue
s. The AgendaGroup
also maintains a Map
of ActivationQueues
for requested salience values.
- See Also:
PriorityQueue
,
ActivationQueue
,
Serialized Form
Constructor Summary |
AgendaGroupImpl(java.lang.String name)
Construct an AgendaGroup with the given name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
AgendaGroupImpl
public AgendaGroupImpl(java.lang.String name)
- Construct an
AgendaGroup
with the given name.
- Parameters:
name
- The name.
getName
public java.lang.String getName()
- Specified by:
getName
in interface AgendaGroup
- Returns:
- The
AgendaGroup
name
clear
public void clear()
size
public int size()
- Description copied from interface:
AgendaGroup
- The total number of activations in this group
- Specified by:
size
in interface AgendaGroup
- Returns:
- int value for the total number of activations
add
public void add(Activation activation)
getNext
public Activation getNext()
isEmpty
public boolean isEmpty()
- Iterates a PriorityQueue removing empty entries until it finds a populated entry and return true,
otherwise it returns false;
- Parameters:
priorityQueue
-
- Returns:
getActivations
public Activation[] getActivations()
- Specified by:
getActivations
in interface AgendaGroup
- Returns:
- An array of all the activations in the AgendaGroup
getQueueable
public Queueable[] getQueueable()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equal
public boolean equal(java.lang.Object object)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object