Sample Beans

The following examples are packaged with the ABLE code. Each example has a corresponding directory in the /able/examples subdirectory. In the directory you will find the source code to the example as well as related data or rule files. Most examples make use of the common data sources in the examples/datafiles directory. Note that the use described for each example is not necessarily the only model that can be used with the data provided.

Simple AbleAgent

The SimpleAbleAgent files begin with SimpleAbleAgent* in the examples/ableagent directory. They show how to create a custom AbleAgent by extending the AbleDefaultAgent class, complete with source, BeanInfo file, and an example Customizer.            

Simple AbleBean

The SimpleAbleBean files begin with SimpleAbleBean* and are in the examples/ablebean directory. They show how to easily create a custom AbleBean by extending the AbleObject class, complete with source, BeanInfo file, and an example Customizer.

AbleFileWatcher

 The AbleFileWatcher files begin with AbleFileWatcher* and are in the examples/ablebean directory. They are referred to in Extending Able, and show how an agent can serve as a monitor.

Genetic examples

There are several GeneticObject examples in the examples/genetic directory. To access these, create a GeneticSearchAgent and specify the class function in the bean customizer dialog.

DecisionTree examples

The decisiontreetrout example is in the examples/decisiontree directory. It is a decision tree classifier used to identify Wyoming game fish.

Bayes examples

The nbayes example is in the examples/bayes directory.

Neural examples

The following neural network examples can be found in the examples/neural directory:

Ruleset examples

Rules examples can be found in the examples/rules directory.