Agent System POND 1.2 (28.2.2002)

Class GUIAgentBase

All Implemented Interfaces:
Runnable, Serializable

public class GUIAgentBase
extends AgentBase

This class is parent for all agents, who can display a graphical user interface. Provides a simple representation (box with name of agent). Can also display the log in a window and save it to the disk.

1.0, 1.7.2000
Michael Sonntag
See Also:
Serialized Form

Fields inherited from class PkgAgentSystem.AgentBase
Fields inherited from class java.lang.Thread
inheritableThreadLocals, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, threadLocals
Constructor Summary
Method Summary
protected  JPanel createVisualization()
          Creates the visualization for the agent.
 JPanel getVisualization()
          Returns the visualization of the agent.
protected  void saveLog()
          Saves the log to a file.
protected  void showDialog()
          Shows the main dialog of the agent.
protected  void showLog()
          Shows the log in a window.
Methods inherited from class PkgAgentSystem.AgentBase
addMessage, addOwnExperience, addPermissionListener, agentMain, broadcastMessage, createConversationAllowed, currentLocation, endConversation, endConversations, firePermissionChange, getAgentName, getAgentSystem, getArchivedConversation, getArchivedConversationIDs, getExperiences, getIdentity, getKeyAndCertificate, getKeyAndCertificates, getKeyPair, getKeyPairs, getLog, getNextMessage, getOngoingConversation, getOngoingConversationIDs, hasPermission, initialize, logMessage, move, newConversation, onAfterDePersist, onAfterMoving, onBeforeMoving, onBeforePersist, persist, registerConversation, registerReplaceConversation, removeKeyAndCertificate, removeKeyPair, removePermissionListener, replyToChallenge, replyToChallenge, run, sendMessage, setAgentIdentity, setAgentSystem, setKeyAndCertificate, setKeyPair, startConversation, stopAgent, typeIsRegistered, verifySignedMessage, writeExperiencesTo, writeLogTo
Methods inherited from class FIM.Util.Threads.CancellableThread
cancel, isCancelled, terminate
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public GUIAgentBase()
Method Detail


public final JPanel getVisualization()
Returns the visualization of the agent.
a JPanel with the visualization of the agent


protected JPanel createVisualization()
Creates the visualization for the agent. Standard representation is a white box with the name of the agent in it.
a JPanel with the visualization of the agent


protected void showLog()
Shows the log in a window. The user can close it or save the log to the disk.
See Also:


protected void saveLog()
Saves the log to a file. Opens a dialog for the user to select the location and enter the filename. Note, that the agent needs the permission to write a file to this location and the permission to write that many bytes!


protected void showDialog()
Shows the main dialog of the agent. Subclasses should implement a dialog to view/modify their main data, so the user can change their tasks. Only very simple agents can imlement their UI in the visualization and this is discouraged.

Agent System POND 1.2 (28.2.2002)

Submit a bug

Copyright 2001,2002 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.