edu.ou.mlfw.ladder
Class LadderClient

java.lang.Object
  extended by edu.ou.mlfw.ladder.LadderClient

public class LadderClient
extends java.lang.Object


Nested Class Summary
static class LadderClient.Arguments
          A throwaway class that encapsulates the command line arguments for World.
 
Field Summary
static int DEFAULT_PORT
           
static java.lang.String DEFAULT_SERVER
           
 
Constructor Summary
LadderClient(java.lang.String serverAddr, int serverPort)
           
 
Method Summary
static void exit(java.lang.String exitMessage)
          Exits the program with usage instructions.
static void main(java.lang.String[] args)
           
static LadderClient.Arguments parseArgs(java.lang.String[] args)
          Handle the command-line arguments passed to an invocation of World.
 void run()
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SERVER

public static final java.lang.String DEFAULT_SERVER
See Also:
Constant Field Values

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values
Constructor Detail

LadderClient

public LadderClient(java.lang.String serverAddr,
                    int serverPort)
Method Detail

run

public void run()

shutdown

public void shutdown()

main

public static void main(java.lang.String[] args)

parseArgs

public static LadderClient.Arguments parseArgs(java.lang.String[] args)
Handle the command-line arguments passed to an invocation of World. Generates an Arguments object, which is a simple encapsulation of the relevant command-line options and values into an object.

Parameters:
args - The arguments string.
Returns:
An instance of Arguments encapsulating the relevant args.

exit

public static void exit(java.lang.String exitMessage)
Exits the program with usage instructions.