simulator
Class ExitClientCommand

java.lang.Object
  |
  +--simulator.ClientCommand
        |
        +--simulator.ExitClientCommand

class ExitClientCommand
extends ClientCommand

Implements the client command that exit from simulator closing the connection


Fields inherited from class simulator.ClientCommand
command, description, name
 
Constructor Summary
ExitClientCommand()
          Initialize object for EXIT command
 
Method Summary
 boolean runCommand(java.util.StringTokenizer ST, Connection connection)
          Comunicate that we want to exit
 
Methods inherited from class simulator.ClientCommand
getDescription, getName, getText
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

ExitClientCommand

public ExitClientCommand()
Initialize object for EXIT command
Method Detail

runCommand

public boolean runCommand(java.util.StringTokenizer ST,
                          Connection connection)
Comunicate that we want to exit
Parameters:
ST - never used for exit command
connection - a copy of Connection istance to permit you to use it's variables
Returns:
true becouse we exit
Overrides:
runCommand in class ClientCommand