|
||||||||||
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.LogDebugger
public class LogDebugger
An agent that displays mobs as the are added/removed/changed. It also includes some basic search functions.
Field Summary | |
---|---|
static java.lang.String |
CLEAR
|
static java.lang.String |
DELETE
|
static java.lang.String |
DELETE_ALL
|
static java.util.Date |
emptyDate
|
static java.lang.String |
HIDE
|
static java.lang.String |
LOG
|
static java.lang.String |
PARAM_EXPAND
|
static java.lang.String |
PARAM_SCROLL
|
static java.lang.String |
REFRESH
|
static java.lang.String |
REFRESH_CURRENT
|
static java.lang.String |
SEARCH
|
static java.lang.String |
SEARCH_ALL_MOBS
|
Fields inherited from class unsw.cse.mica.agent.DefaultAgent2 |
---|
PARAM_NAME |
Constructor Summary | |
---|---|
LogDebugger()
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
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 |
handleReplacedMob(Mob oldMob,
Mob newMob)
This method is called whenever a mob is replaced on the blackboard with a type for which the agent has registered interest. |
void |
init(MicaProperties args)
Connect using the value given for param "name" in the args if the value exists, otherwise use the class name |
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, 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 REFRESH
public static final java.lang.String REFRESH_CURRENT
public static final java.lang.String CLEAR
public static final java.lang.String HIDE
public static final java.lang.String SEARCH
public static final java.lang.String LOG
public static final java.lang.String DELETE
public static final java.lang.String DELETE_ALL
public static final java.lang.String SEARCH_ALL_MOBS
public static java.util.Date emptyDate
Constructor Detail |
---|
public LogDebugger()
Method Detail |
---|
public void init(MicaProperties args) throws MicaException
DefaultAgent2
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
public 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 handleReplacedMob(Mob oldMob, Mob newMob)
MessageHandler
handleReplacedMob
in interface MessageHandler
handleReplacedMob
in class DefaultAgent2
oldMob
- the old value of the mob (where the name is cleared)newMob
- the new value of the mobpublic 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 createComponents(MicaProperties args) throws MicaException
GUIAgent
createComponents
in class GUIAgent
args
- the args passed to the init method
MicaException
- If any errors occur construction the GUI components.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public static void main(java.lang.String[] args) throws MicaException
args
-
MicaException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |