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

📄 retedumper.java

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

import java.io.PrintStream;

import org.drools.RuleBase;
import org.drools.reteoo.Dumper;

/**
 * A Rete network dumper.
 * This is a proxy for the Dumper implemented in the core module.
 * Users should not need to refer to reteoo classes.
 * 
 * @author <a href="mailto:michael.neale@gmail.com"> Michael Neale</a>
 *
 */
public class ReteDumper {
    
    private Dumper dumper;
    
    public ReteDumper(RuleBase ruleBase) {
        if (ruleBase instanceof SerializableRuleBaseProxy) {
            SerializableRuleBaseProxy proxy = (SerializableRuleBaseProxy) ruleBase;
            dumper = new Dumper(proxy.getWrappedRuleBase());
        } else {
            dumper = new Dumper(ruleBase);
        }
    }
    
    public void dumpRete(PrintStream out)
    {
        dumper.dumpRete( out );
    }

    public void dumpRete(PrintStream out,
                         String indent)
    {
        dumper.dumpRete(out, indent);
    }

    /**
     * Compatible with the GraphViz DOT format.
     */
    public void dumpReteToDot(PrintStream out)
    {
        dumper.dumpReteToDot(out);
    }    

}

⌨️ 快捷键说明

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