⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 moduleimpl.java

📁 drools 一个开放源码的规则引擎
💻 JAVA
字号:
package org.drools.reteoo;

import org.drools.util.PriorityQueue;

import org.drools.spi.ConflictResolver;
import org.drools.spi.Module;

public class ModuleImpl implements Module
{   
    private final String name;

    /** Items in the agenda. */
    private final PriorityQueue     activationQueue;    
        
    public ModuleImpl(String name,
                      ConflictResolver conflictResolver)
    {
        this.name = name;
        this.activationQueue = new PriorityQueue( conflictResolver );    
    }    
    
    public String getName()
    {
        return this.name;
    }
    
    public boolean equal(Object object)
    {
        if ( ( object == null ) || ! ( object instanceof ModuleImpl ) )
        {
            return false;
        }
        
        if ( ( (ModuleImpl) object).name.equals( this.name ) ) 
        {
            return true;
        }
        
        return false;
    }
    
    public int hashcode()
    {
        return this.name.hashCode();
    }

    public PriorityQueue getActivationQueue()
    {
        return this.activationQueue;
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -