The ADK Scenarios

Release 3.0


Table of Contents

Colofon
1. Copyright Information
2. Acknowledgement of Trademarks
3. Warning and Disclaimer
4. Contact Tryllian
1. About the ADK Scenarios
1.1. About this guide
1.2. Manual typographical conventions
1.3. The Developer website
1.4. Command line conventions
1.5. Reporting bugs
2. ADK Examples
2.1. Java version 1.3
2.2. Running the examples
2.3. How to compile an example
2.4. Example Descriptions
3. Scenario: Messaging example
3.1. Source files
3.2. Reactive tasks
3.3. Sending messages
3.4. Requesting a collection of agents
3.5. Task scheduling
3.6. Agent parameters in habitat xml file / agent creation
4. Scenario: Mobility and remote messaging example
4.1. Source files
4.2. Reading a file
4.3. Moving between habitats
5. Scenario: Security example
5.1. Signing with different private key
5.2. Using permissions to read a file
5.3. Preventing an untrusted agent from entering your habitat
6. Scenario: Deploying Agents and Modifying DNA files
6.1. Adding jars to the DNA
6.2. Adding jars as "shared reference"
7. Scenario: Remote Communication example
8. Scenario: Persistence
8.1. About persistence
8.2. Using persistence
8.3. Running the example
9. Scenario: JMS messaging
9.1. Description
9.2. Configuring the server
9.3. Running the habitat
10. Scenario: File transfer
10.1. Running the example
10.2. System description
10.3. Tasks
10.3.1. SendFileTask
10.3.2. SendFilePartTask
10.3.3. ReceiveFileServerTask
10.3.4. ReceiveFileTask
10.4. Messages
11. Web Services Examples
11.1. Installing required programs/libraries
11.1.1. Installing Tomcat
11.1.2. Installing Axis
11.1.3. Installing the Axis jars in the ADK
11.1.4. Installing the ADK examples in the webserver
11.1.5. Running the Tomcat server
11.2. EXAMPLE: Running test agents using Web Services
11.3. EXAMPLE: Running an agent that sends an XML document to a Web Service
11.4. EXAMPLE: Accessing a Habitat as a Web Service
11.4.1. Setup of a Web Service system
11.4.2. Deployment and Usage
11.4.3. Creating your own Web Service
11.4.4. Sharing a JXTACommunicator between multiple webservices
12. Designing an Agent Application
12.1. Step 1 - Determining roles and number of agents.
12.2. Step 2 - Determining communication between agents.
12.3. Step 3 - Determining the number of habitats.
12.4. Step 4 - Determining the adequate level of monitoring.
13. Sample Project
13.1. About this chapter
13.2. Overview
13.3. Agents
13.4. Messaging
14. Running the Sample Project
14.1. Running on a single computer
14.2. Running on two computers
14.3. Running on three or more computers
14.4. Suggestions for extending the sample project

List of Figures

9.1. Global overview
11.1. Setup of Web Services
13.1. Global overview.
13.2. Task model of the CollectAgent.
13.3. Task model of the InfoAgent..

List of Tables

10.1.
10.2.
10.3.
10.4.