|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--RoboClient
This class contains the main method which starts 11 player-Threads
and one GUI (if wanted).
The RoboClient must be started like this:
java RoboClient [TEAMNAME [SERVERNAME [SERVERPORT]]] [-gui]
Field Summary | |
private static int |
bufferIndex
Counter of the Buffer; points at last message received |
private static boolean |
checkGUIAlert
set to true, if GUI took over the command line tool-output |
private static int |
checkMode
Checks if either the Sender is a Player, or message-priority is set to high |
private static int |
countTactics
Counter to avoid multiple denominations in the Tactics Array; points on most recent message |
private static GUI |
gui
a GUI object, which is the visualisation of the worldmodel |
private static Player[] |
player
a Player array with length 11 |
private static boolean |
startGUI
set to true if GUI has been started false if GUI turned off as chosen in the Command Line Tool (see Documentation for further information) initial value = false |
private static java.lang.String[][] |
tactics
Stores all incoming messages in the following format : [1] = Timecycle message got stored in [2] = Actual message [3] = Player, which sent the message; if "0" message-priority is high |
private static java.lang.String |
teamname
the teamname |
Constructor Summary | |
RoboClient()
Constructor |
Method Summary | |
private static void |
buffer()
Buffers the first incoming messages for a timeinterval in which the GUI is not initialized. Author: Wini Appl |
private static void |
flushBuffer()
Writes whole buffer-content to the GUI-display, if initialized. Author: Wini Appl |
static void |
main(java.lang.String[] args)
This is the main method which starts 11 player-Threads and one GUI (if wanted) |
static java.lang.String |
tellTeamName()
Just returns the teamname |
static void |
transmitTactics(java.lang.String input,
int source)
Stores all tactical computations, sent by the players and passes the most actual messages on to the GUI. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static Player[] player
Player
array with length 11private static GUI gui
GUI
object, which is the visualisation of the worldmodelprivate static java.lang.String teamname
private static boolean startGUI
main(String[] args)
private static java.lang.String[][] tactics
transmitTactics(String input, int source)
private static int countTactics
transmitTactics(String input, int source)
private static int bufferIndex
buffer()
private static int checkMode
private static boolean checkGUIAlert
Constructor Detail |
public RoboClient()
Method Detail |
public static java.lang.String tellTeamName()
String
containing the teamnamepublic static void main(java.lang.String[] args)
args[]
- Possible arguments for the main method are:
-gui
: when the visualisation (GUI) should be started
Author: Patrick Ficher
public static void transmitTactics(java.lang.String input, int source)
Author: Wini Appl
input
- message that is to be displayedsource
- sender-id of the messageprivate static void buffer()
Author: Wini Appl
private static void flushBuffer()
Author: Wini Appl
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |