unsw.cse.mica.tools
Class MobSpawner

java.lang.Object
  extended by unsw.cse.mica.agent.DefaultAgent2
      extended by unsw.cse.mica.agent.GUIAgent
          extended by unsw.cse.mica.tools.MobSpawner
All Implemented Interfaces:
Agent, MessageHandler

public class MobSpawner
extends GUIAgent


Field Summary
 
Fields inherited from class unsw.cse.mica.agent.DefaultAgent2
PARAM_NAME
 
Constructor Summary
MobSpawner()
           
 
Method Summary
 void createComponents(MicaProperties args)
          Function that is called in the init method that should be overridden by subclasses.
 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[] arg)
           
 
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
 

Constructor Detail

MobSpawner

public MobSpawner()
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

main

public static void main(java.lang.String[] arg)
                 throws java.lang.Exception
Throws:
java.lang.Exception