unsw.cse.mica.tools
Class MobMaker2
java.lang.Object
unsw.cse.mica.agent.DefaultAgent2
unsw.cse.mica.agent.GUIAgent
unsw.cse.mica.tools.MobMaker2
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener, Agent, MessageHandler
public class MobMaker2
- extends GUIAgent
- implements java.awt.event.ActionListener
A simple agent for writing mobs to the blackboard.
- Author:
- jhw
Field Summary |
static java.lang.String |
ADDSLOTS
|
static java.lang.String |
CLEAR
|
static java.lang.String |
WRITE
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ADDSLOTS
public static final java.lang.String ADDSLOTS
- See Also:
- Constant Field Values
WRITE
public static final java.lang.String WRITE
- See Also:
- Constant Field Values
CLEAR
public static final java.lang.String CLEAR
- See Also:
- Constant Field Values
MobMaker2
public MobMaker2()
init
public void init(MicaProperties args)
throws MicaException
- Description copied from class:
DefaultAgent2
- Connect using the value given for param "name" in the args if the value exists,
otherwise use the class name
- Specified by:
init
in interface Agent
- Overrides:
init
in class GUIAgent
- Parameters:
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.
- Throws:
MicaException
createComponents
public void createComponents(MicaProperties args)
- Description copied from class:
GUIAgent
- Function that is called in the init method that should be overridden by
subclasses. Subclasses should use this method to construct the elements
for their GUIs and place the elements in frame.
- Specified by:
createComponents
in class GUIAgent
- Parameters:
args
- the args passed to the init method
handlerTypeManagerChanged
public void handlerTypeManagerChanged()
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent ae)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener