org.drools.examples.benchmarks.waltz
Class WaltzBenchmark

java.lang.Object
  extended byorg.drools.examples.benchmarks.waltz.WaltzBenchmark

public class WaltzBenchmark
extends java.lang.Object

A Drools implementation of the Waltz benchmark, a part of the OPS5 Benchmark Suite available at:
http://www.cs.utexas.edu/ftp/pub/ops5-benchmark-suite/
ftp://ftp.cs.utexas.edu/pub/ops5-benchmark-suite/

 

Constructor Summary
WaltzBenchmark(java.lang.String datFile)
          Read the DRL and DAT files, output the Rete to a DOT file, and initialize a WorkingMemory.
 
Method Summary
static void main(java.lang.String[] args)
          Creates a new WaltzBenchmark object and executes its run method.
 void run()
          Assert the facts and fire the rules.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WaltzBenchmark

public WaltzBenchmark(java.lang.String datFile)
               throws DroolsException,
                      java.io.IOException,
                      org.xml.sax.SAXException
Read the DRL and DAT files, output the Rete to a DOT file, and initialize a WorkingMemory.

Parameters:
datFile - the input data file
Method Detail

main

public static void main(java.lang.String[] args)
                 throws DroolsException,
                        java.io.IOException,
                        org.xml.sax.SAXException
Creates a new WaltzBenchmark object and executes its run method.

Throws:
DroolsException
java.io.IOException
org.xml.sax.SAXException
Parameters:
args - if an argument is provided, it is used as the name of the *.dat data file to use.

run

public void run()
         throws FactException
Assert the facts and fire the rules.

Throws:
FactException