org.drools.examples.benchmarks.manners
Class MannersBenchmark

java.lang.Object
  extended byorg.drools.examples.benchmarks.manners.MannersBenchmark

public class MannersBenchmark
extends java.lang.Object

A Drools implementation of the Miss Manners 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
MannersBenchmark(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 MannersBenchmark 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

MannersBenchmark

public MannersBenchmark(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 MannersBenchmark 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