unsw.cse.mica.tools
Class MobMaker2

java.lang.Object
  extended by unsw.cse.mica.agent.DefaultAgent2
      extended by unsw.cse.mica.agent.GUIAgent
          extended by 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
           
 
Fields inherited from class unsw.cse.mica.agent.DefaultAgent2
PARAM_NAME
 
Constructor Summary
MobMaker2()
           
 
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 handlerTypeManagerChanged()
           
 void init(MicaProperties args)
          Connect using the value given for param "name" in the args if the value exists, otherwise use the class name
 
Methods inherited from class unsw.cse.mica.agent.GUIAgent
terminate
 
Methods inherited from class unsw.cse.mica.agent.DefaultAgent2
getTransport, handleDeletedMob, handleNewMob, handleReplacedMob, handleTypeManagerChanged, isATypeOf, setTransport
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

MobMaker2

public MobMaker2()
Method Detail

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