站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

TotalRecencyConflictResolver (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.conflict
Class TotalRecencyConflictResolver

java.lang.Object
  extended by org.drools.conflict.AbstractConflictResolver
      extended by org.drools.conflict.TotalRecencyConflictResolver
All Implemented Interfaces:
Serializable, Comparator, ConflictResolver

public class TotalRecencyConflictResolver
extends AbstractConflictResolver

A conflict resolver that compares the total recency of a tuple when determining firing order.

Version:
$Id: TotalRecencyConflictResolver.java 10952 2007-04-12 23:10:10Z mark.proctor@jboss.com $
Author:
Edson Tirelli
See Also:
Serialized Form

Constructor Summary
TotalRecencyConflictResolver()
          Construct.
 
Method Summary
 int compare(Activation lhs, Activation rhs)
           
static ConflictResolver getInstance()
          Retrieve the singleton instance.
 
Methods inherited from class org.drools.conflict.AbstractConflictResolver
compare
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

TotalRecencyConflictResolver

public TotalRecencyConflictResolver()
Construct.

Method Detail

getInstance

public static ConflictResolver getInstance()
Retrieve the singleton instance.

Returns:
The singleton instance.

compare

public int compare(Activation lhs,
                   Activation rhs)
See Also:
ConflictResolver


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.