The "Demo" Agent Pack
Prev |  | Next

# 5. SimplePlotAgent

## 5.1. Synopsis

Figure 4. A plotted plotter

This agent shows how to write a simple GUI as a Java Bean and make it react to messages.

## 5.2. Using the agent

This is described in the MadKit user's guide, section G-Box, as the example for direct manipulation of agent acquaintances

## 5.3. About the code

The important part here is the `initGUI()` method, which instantiates a specialized JavaBean that will execute the actual plotting and makes it the agent graphical interface.

The agent itself just waits for messages, accepts only `StringMessage` and tries to extract an integer in the message content before giving to the plotter.

Prev | Home | Next
LiveScheme |  | BeeWorldViewer / BeeScheduler