edu.turtlekit2
Class Tk2Launcher

java.lang.Object
  extended by madkit.kernel.AbstractAgent
      extended by edu.turtlekit2.Tk2Launcher
All Implemented Interfaces:
Serializable

public class Tk2Launcher
extends madkit.kernel.AbstractAgent

The Launcher Agent of the TurtleKit2 platform.

Version:
1.0 - 4/2010
Author:
G. Beurier
See Also:
Serialized Form

Field Summary
static String COMMUNITY
          The default TurtleKit community
 
Constructor Summary
Tk2Launcher()
           
 
Method Summary
 void activate()
          Launch the Tk2 GUI.
 String getGroupName(Document doc)
          Checks existing MadKit groups to create the simulation group name.
 void newSimulation(String fileName)
          Launch a new simulation
 
Methods inherited from class madkit.kernel.AbstractAgent
broadcastMessage, broadcastMessage, connectedWithCommunity, createGroup, createGroup, debug, disposeMyGUI, end, foundGroup, getAddress, getAgentInformation, getAgentsWithRole, getAgentsWithRole, getAgentWithRole, getAgentWithRole, getAvailableCommunities, getBean, getController, getCurrentKernelAddress, getDebug, getExistingGroups, getExistingGroups, getExistingRoles, getExistingRoles, getGroups, getGUIObject, getMessageBoxSize, getMyGroups, getMyGroups, getMyRoles, getMyRoles, getName, getRoles, hasGUI, hashCode, initGUI, isBelongingToGroup, isBelongingToGroup, isCommunity, isGroup, isGroup, isMemberOf, isMemberOf, isMessageBoxEmpty, isRole, isRole, joinGroup, killAgent, launchAgent, launchAgent, leaveGroup, leaveGroup, leaveRole, leaveRole, nextMessage, print, println, receiveMessage, redisplayMyGUI, requestRole, requestRole, requestRole, restoreAgent, sendMessage, sendMessage, sendMessage, setBean, setController, setDebug, setGUIObject, setName, setOutput, setOutputWriter, toString, windowClosing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

COMMUNITY

public static final String COMMUNITY
The default TurtleKit community

See Also:
Constant Field Values
Constructor Detail

Tk2Launcher

public Tk2Launcher()
Method Detail

activate

public void activate()
Launch the Tk2 GUI.

Overrides:
activate in class madkit.kernel.AbstractAgent
See Also:
TurtleKitGUI

getGroupName

public String getGroupName(Document doc)
Checks existing MadKit groups to create the simulation group name.

Parameters:
doc - - the simulation description file (XML)
Returns:
- the simulation group name

newSimulation

public void newSimulation(String fileName)
Launch a new simulation

Parameters:
fileName - - the simulation fileName (.XML)