|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectunsw.cse.mica.agent.DefaultAgent2
unsw.cse.mica.agent.GUIAgent
unsw.cse.mica.tools.Debugger
public class Debugger
A simple agent that displays mobs as they are added to the blackboard.
Field Summary | |
---|---|
static java.lang.String |
CLEAR_ALL
|
static java.lang.String |
CLEAR_DELETED
|
static java.lang.String |
CLEAR_TRANSIENT
|
static java.lang.String |
DELETE_ALL
|
static java.lang.String |
PARAM_EXPAND
|
static java.lang.String |
PARAM_SCROLL
|
static java.lang.String |
REFRESH
|
static java.lang.String |
TYPE_CONNECTED
|
static java.lang.String |
TYPE_DELETED
|
static java.lang.String |
TYPE_PERSISTENT
|
static java.lang.String |
TYPE_TRANSIENT
|
Fields inherited from class unsw.cse.mica.agent.DefaultAgent2 |
---|
PARAM_NAME |
Constructor Summary | |
---|---|
Debugger()
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent ae)
|
void |
createComponents(MicaProperties args)
Function that is called in the init method that should be overridden by subclasses. |
void |
handleDeletedMob(Mob m)
This method is called whenever a non-transient MICA object is deleted from the blackboard that the agent has registered interest it. |
void |
handleNewMob(Mob m)
This method is called when a new MICA object has arrived. |
void |
init(MicaProperties args)
The init method accepts the following parameters: "autoexpand" must be a boolean specifies whether the tree should be automatically expanded when mobs arrive "autoscroll" specifies whether the tree should be scrolled to show new mobs when they arrive "x" and "y" specify the location of the frame "width" and "height" specify the size of the frame |
static void |
main(java.lang.String[] args)
|
Methods inherited from class unsw.cse.mica.agent.GUIAgent |
---|
terminate |
Methods inherited from class unsw.cse.mica.agent.DefaultAgent2 |
---|
getTransport, handleReplacedMob, handleTypeManagerChanged, isATypeOf, setTransport |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PARAM_EXPAND
public static final java.lang.String PARAM_SCROLL
public static final java.lang.String TYPE_PERSISTENT
public static final java.lang.String TYPE_CONNECTED
public static final java.lang.String TYPE_TRANSIENT
public static final java.lang.String TYPE_DELETED
public static final java.lang.String CLEAR_TRANSIENT
public static final java.lang.String CLEAR_DELETED
public static final java.lang.String CLEAR_ALL
public static final java.lang.String REFRESH
public static final java.lang.String DELETE_ALL
Constructor Detail |
---|
public Debugger()
Method Detail |
---|
public void init(MicaProperties args) throws MicaException
init
in interface Agent
init
in class GUIAgent
args
- Additional arguments provided to the agent. If the agent is started from with
the 'Runner' tool, the args array contains the values provided from within the runner's
XML configuration file. Otherwise, the exact contents will depend on the calling method.
MicaException
Agent.init(MicaProperties)
public void createComponents(MicaProperties args)
GUIAgent
createComponents
in class GUIAgent
args
- the args passed to the init methodpublic void handleNewMob(Mob m)
MessageHandler
Whenever a mob is written to the blackboard that the agent has registered
an interest in the handleNewMob
is called. It is passed the new Mob (MICA object)
as a parameter so it can decide any further actions.
Note: The handleNewMob is called asynchronously. You should not make any assumptions about its synchronizations.
handleNewMob
in interface MessageHandler
handleNewMob
in class DefaultAgent2
m
- the mob that has been written to the blackboardpublic void handleDeletedMob(Mob m)
MessageHandler
Whenever a mob is deleted from the blackboard that the agent has registered an interest in
the handleDeletedMob
method is called.
handleDeletedMob
in interface MessageHandler
handleDeletedMob
in class DefaultAgent2
m
- the mob that has been deletedpublic void actionPerformed(java.awt.event.ActionEvent ae)
actionPerformed
in interface java.awt.event.ActionListener
public static void main(java.lang.String[] args) throws MicaException
MicaException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |