The Theseus Java API

Contents

  1. What is the Theseus API?
  2. How do I use it?
  3. API Documentation

1. What is the Theseus API?

Included in the Theseus release is an API that allows you to easily incorporate Theseus functionality into your existing Java applications. Using the Theseus API involves calling a special library function with a plan (in plaintext or in a file) and input data (in plaintext or as Relation objects) and then unwrapping its output.

2. How do I use it?

To use the Theseus API, you simply need to do the following:

As an example, consider the following code:

When this code is run, the following is output: Notice that all that was necessary was to (a) create the Theseus object, (b) load the plan, and (c) call the Theseus excute() method, supplying the loaded plan reference and an array of Relation input objects. It is also important to call the shutdown() method on the Theseus object, since Theseus keeps threads alive (outside of programmer control) until shutdown() is called.

The complete code for this example can be found in the "src" directory of your Theseus installation.

3. API Documentation

Complete API documentation for Theseus is available.