站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > 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
  extended by 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 ActivationQueues. The AgendaGroup also maintains a Map of ActivationQueues for requested salience values.

Author:
Mark Proctor, Bob McWhirter
See Also:
PriorityQueue, ActivationQueue, Serialized Form

Field Summary
 
Fields inherited from interface org.drools.spi.AgendaGroup
MAIN
 
Constructor Summary
AgendaGroupImpl(String name)
          Construct an AgendaGroup with the given name.
 
Method Summary
 void add(Activation activation)
           
 void clear()
           
 boolean equal(Object object)
           
 Activation[] getActivations()
           
 String getName()
           
 Activation getNext()
           
 Queueable[] getQueueable()
           
 int hashCode()
           
 boolean isActive()
           
 boolean isEmpty()
          Iterates a PriorityQueue removing empty entries until it finds a populated entry and return true, otherwise it returns false;
 void setActive(boolean activate)
           
 int size()
          The total number of activations in this group
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgendaGroupImpl

public AgendaGroupImpl(String name)
Construct an AgendaGroup with the given name.

Parameters:
name - The name.
Method Detail

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.