org.ourgrid.gridmachine.useragent.ui
Class CommandManager

java.lang.Object
  extended by org.ourgrid.gridmachine.useragent.ui.CommandManager

public class CommandManager
extends java.lang.Object

Implements the main of Command Pattern. All UserAgent commands must pass here.


Constructor Summary
CommandManager()
           
 
Method Summary
 void executeCommand(java.lang.String[] params)
          Method that checks what Command will be able to execute the command in parameter "param".
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandManager

public CommandManager()
Method Detail

executeCommand

public void executeCommand(java.lang.String[] params)
                    throws java.lang.Exception
Method that checks what Command will be able to execute the command in parameter "param". It will verify in it's map of commands, and then, call his run method.

Parameters:
params - This parameter must contain the Command string representation, followed by it's parameters.
Throws:
java.lang.Exception

main

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