edu.isi.gamebots.client
Class BotRunnerApp

java.lang.Object
  |
  +--edu.isi.gamebots.client.BotRunnerApp
All Implemented Interfaces:
GamebotsConstants

public class BotRunnerApp
extends Object
implements GamebotsConstants

This application is a test platform for any Bot or VizTool implementation. It provides a simple user interface for loading bot implementations, setting the server address and port, and connecting and disconnecting the clients.

Future Goals:

Author:
Andrew n marshall

Nested Class Summary
protected  class BotRunnerApp.AddTabDialog
           
protected  class BotRunnerApp.BotManager
           
protected  class BotRunnerApp.ConnectionEventRunner
           
protected  class BotRunnerApp.TabManager
           
protected  class BotRunnerApp.VizManager
           
 
Nested classes inherited from class edu.isi.gamebots.client.GamebotsConstants
GamebotsConstants.TeamColorMap
 
Field Summary
protected static String BOT
           
protected  JMenu botMenu
           
protected  int botNameCount
           
protected  JTextField botPortField
           
protected  FocusListener botPortFocusListener
           
protected  Action connectAll
           
protected  int connectionCount
           
protected  Vector connectionEventQueue
           
protected  Thread[] connectionEventThreads
           
protected  us.ca.la.anm.util.io.JTextAreaLog curLogForText
           
protected static String DATA_CARD
           
protected  Action disconnectAll
           
protected static String ERROR_CARD
           
protected  JFrame frame
           
protected  Action handleExit
           
protected  us.ca.la.anm.util.io.JTextAreaLog log
           
protected static int MAX_CONNECTION_ATTEMPTS
           
protected  Action reconnectAll
           
protected  Action requestAddBot
           
protected  Action requestAddViz
           
protected  Action requestExit
           
protected  InetAddress serverAddress
           
protected  int serverBotPort
           
protected  JTextField serverField
           
protected  FocusListener serverFocusListener
           
protected  JPanel serverPanel
           
protected  int serverVizPort
           
protected  JLabel status
           
protected  JTabbedPane tabbedPane
           
protected  int tabCount
           
protected  ChangeListener tabListener
           
protected  Hashtable tabManagers
           
protected  JTextArea text
           
protected static long TIMEOUT
           
protected static String VIZ
           
protected  int vizNameCount
           
protected  JTextField vizPortField
           
protected  FocusListener vizPortFocusListener
           
 
Fields inherited from interface edu.isi.gamebots.client.GamebotsConstants
ACTOR_CLASS, ACTOR_ID, ACTOR_REACHABLE, ARG_ALT, ARG_AMOUNT, ARG_GLOBAL, ARG_TARGET, ARG_TEXT, ARG_WALK, BEG, BUMP, CHANGEWEAPON, CHECKREACH, DAMAGE, DEATH_DAMAGE_TYPE, DEATH_KILLER, DEFAULT_BOT_PORT, DEFAULT_VIZ_PORT, DIE, DOM, DOMPOINTS, END, FALSE, FINISHED, GAMESTATE, GETPATH, INFO, INIT, INV, ITEM, ITEM_ID, JUMP, KILL, LOCATION, MESSAGE, MOV, NAV, NODE_DOMINATION, NODE_INVENTORY, NODE_MOVER, NODE_NAVIGATION, OWNER, PATH, PING, PLAYER, PLAYER_AMMO, PLAYER_ARMOR, PLAYER_HEALTH, PLAYER_NAME, PLAYER_RADIUS, PLAYER_TEAM, PLAYER_WEAPON, PONG, ROTATE, ROTATION, RUNTO, SEE, SELF, SETWALK, SHOOT, STOP, STOP_SHOOT, STRAFE, TEAM_ANY, TEAM_BLUE, TEAM_GOLD, TEAM_GREEN, TEAM_NONE, TEAM_RED, TRUE, TURNTO, VELOCITY, WALL, WEAPON_1, WEAPON_2
 
Constructor Summary
BotRunnerApp(String[] args)
           
 
Method Summary
protected  void buildGUI()
           
static void main(String[] args)
           
protected  void setStatus(String status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_CONNECTION_ATTEMPTS

protected static final int MAX_CONNECTION_ATTEMPTS
See Also:
Constant Field Values

TIMEOUT

protected static final long TIMEOUT
See Also:
Constant Field Values

DATA_CARD

protected static final String DATA_CARD
See Also:
Constant Field Values

ERROR_CARD

protected static final String ERROR_CARD
See Also:
Constant Field Values

BOT

protected static final String BOT
See Also:
Constant Field Values

VIZ

protected static final String VIZ
See Also:
Constant Field Values

log

protected us.ca.la.anm.util.io.JTextAreaLog log

frame

protected JFrame frame

botMenu

protected JMenu botMenu

tabbedPane

protected JTabbedPane tabbedPane

serverPanel

protected JPanel serverPanel

text

protected JTextArea text

status

protected JLabel status

curLogForText

protected us.ca.la.anm.util.io.JTextAreaLog curLogForText

tabManagers

protected Hashtable tabManagers

botNameCount

protected int botNameCount

vizNameCount

protected int vizNameCount

tabCount

protected int tabCount

connectionCount

protected int connectionCount

serverField

protected JTextField serverField

serverAddress

protected InetAddress serverAddress

botPortField

protected JTextField botPortField

serverBotPort

protected int serverBotPort

vizPortField

protected JTextField vizPortField

serverVizPort

protected int serverVizPort

connectionEventThreads

protected Thread[] connectionEventThreads

connectionEventQueue

protected Vector connectionEventQueue

requestAddBot

protected Action requestAddBot

requestAddViz

protected Action requestAddViz

connectAll

protected Action connectAll

reconnectAll

protected Action reconnectAll

disconnectAll

protected Action disconnectAll

tabListener

protected ChangeListener tabListener

serverFocusListener

protected FocusListener serverFocusListener

botPortFocusListener

protected FocusListener botPortFocusListener

vizPortFocusListener

protected FocusListener vizPortFocusListener

requestExit

protected Action requestExit

handleExit

protected Action handleExit
Constructor Detail

BotRunnerApp

public BotRunnerApp(String[] args)
Method Detail

main

public static void main(String[] args)

buildGUI

protected void buildGUI()

setStatus

protected void setStatus(String status)