edu.ou.mlfw.ladder
Class LadderClient
java.lang.Object
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. |
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 |
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
LadderClient
public LadderClient(java.lang.String serverAddr,
int serverPort)
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.