ABLE 2.0.0 07/02/2003 10:25:01

Package com.ibm.able.examples.rules

The rules Examples package contains a number of different types of examples.

See:
          Description

Class Summary
AbleRuleSetFromAPI Construct a ruleset using the APIs The basic steps are: create instance of AbleRuleSetBean set name set comment (optional) declare any imports declare any libraries declare any predicates declare any global variables declare any functions set the input vars (if any) set the output vars (if any) create a ruleblock create and add rules to ruleblock
AnimalRuleSetApp This class illustrates reading a ruleset, initializing it, and passing data into it, and retrieving the result.
AppRuleSet This class illustrates reading a ruleset, initializing it, and passing data into it, and retrieving the result.
Chest A chest has a name, contains items and knows what can unlock it.
Customer A customer has a name, age, and nationality.
Goal Goal (goal-is-to) in monkeys-and-bananas world
Grocery A Grocery item has a name, a containerType, a size, can be frozen, can require insulation, and knows which bag in which its been placed.
GroceryBag A grocery bag has an id, and contains items sized small, medium, or large.
Monkey A monkey has a location, is on top of an object, and can hold an object.
PluggableEngine This class extends the AbleInferenceEngine class so that it can be used as a customized pluggable inference engine.
Puzzle A Puzzle has a name, level, phase, and three posts.
Ring A ring has a name, diameter, and is on a post identified by a number.
SampleMessageBundle This class implements a simple NLS-enabled message bundle for use with an Able ruleset.
SampleSensorEffector This class is a command line test case (it has a main() method) that creates a fuzzy ruleset, a fuzzy ruleset listener, wires the two together, and then processes the rules.
SampleSensorEffectorBeanInfo  
SampleSensorEffectorCustomizer This class provides the customizer for the fuzzy SampleSensorEffector.
ShoppingCart A shopping cart has a name and contains objects.
Thing A Thing has a name, location, can be placed on top of another thing, and a weight description.
TstRuleObject  
 

Package com.ibm.able.examples.rules Description

The rules Examples package contains a number of different types of examples. The majority of the examples are source ruleset files that can be loaded into the ruleset editor and experimented with.

Another example is a simple Java program that can be changed, recompiled, and run from the command line. It makes use of a fuzzy ruleset file that demonstrates user-defined functions as sensors and effectors.

Yet another example is actually part of the ABLE tutorial and should be used in conjunction with that.

For a complete description of the rules examples begin here.


Last modified: Tue Nov 7 13:38:16 CST 2000


ABLE 2.0.0 07/02/2003 10:25:01

(C) Copyright IBM Corporation 1999, 2003