edu.cmu.sphinx.util
Interface CommandInterface


public interface CommandInterface

An interface implemented by command functions typically added to a command interpreter

See Also:
CommandInterpreter

Method Summary
 java.lang.String execute(CommandInterpreter ci, java.lang.String[] args)
          Execute the given command.
 java.lang.String getHelp()
          Returns a one line description of the command
 

Method Detail

execute

public java.lang.String execute(CommandInterpreter ci,
                                java.lang.String[] args)
Execute the given command.

Parameters:
ci - the command interpretere that invoked this command.
args - command line arguments (just like main).
Returns:
a command result

getHelp

public java.lang.String getHelp()
Returns a one line description of the command

Returns:
a one-liner help message