当前页面:
在线文档首页 >
JBoss RULES 4.0.0.11754MR2 API 英文版文档
AgendaGroupImpl (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档
org.drools.common
Class AgendaGroupImpl
java.lang.Object
org.drools.common.AgendaGroupImpl
- All Implemented Interfaces:
- Serializable, AgendaGroup
public class AgendaGroupImpl
- extends 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.
- Author:
- Mark Proctor, Bob McWhirter
- See Also:
PriorityQueue
,
ActivationQueue
,
Serialized Form
AgendaGroupImpl
public AgendaGroupImpl(String name)
- Construct an
AgendaGroup
with the given name.
- Parameters:
name
- The name.
getName
public 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()
isActive
public boolean isActive()
- Specified by:
isActive
in interface AgendaGroup
setActive
public void setActive(boolean activate)
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 String toString()
- Overrides:
toString
in class Object
equal
public boolean equal(Object object)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2001-2007
JBoss Inc.. All Rights Reserved.