org.drools.examples.manners
Class MannersExample

java.lang.Object
  extended byorg.drools.examples.manners.MannersBase
      extended byorg.drools.examples.manners.MannersExample

public class MannersExample
extends MannersBase

An example of executing a rulebase with Drools without all the JSR-94 cruft to solve the Miss Manners problem.

 

Field Summary
 
Fields inherited from class org.drools.examples.manners.MannersBase
maxHobbies, minHobbies, numGuests, numSeats, ruleUri
 
Constructor Summary
MannersExample(java.lang.String[] args)
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void setUp()
          Setup the test case.
protected  void tearDown()
          Tear down the test case.
protected  java.util.List test(java.util.List inList)
          Just do it.
 
Methods inherited from class org.drools.examples.manners.MannersBase
generateData, getInputObjects, run, validateResults
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MannersExample

public MannersExample(java.lang.String[] args)
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

setUp

protected void setUp()
              throws java.lang.Exception
Description copied from class: MannersBase
Setup the test case.

Specified by:
setUp in class MannersBase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
Description copied from class: MannersBase
Tear down the test case.

Specified by:
tearDown in class MannersBase

test

protected java.util.List test(java.util.List inList)
                       throws FactException
Description copied from class: MannersBase
Just do it.

Specified by:
test in class MannersBase
Throws:
FactException