|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AgentPromptCommand
This is the superclass to all the agent prompt commands - these are simple commands that are executed when the user asks to execute them from the agent prompt. These are different than the remote commands defined by the command framework - prompt commands are local only and can only be executed if the user specifies it from the agent prompt. You can not remotely execute these prompt commands.
| Method Summary | |
|---|---|
boolean |
execute(AgentMain agent,
String[] args)
Executes the agent prompt command with the given arguments. |
String |
getDetailedHelp()
Returns a detailed help message to describe to the user what the command's syntax is and any detailed information that is useful to the user that wants to use this command. |
String |
getHelp()
Returns a help summary to describe to the user what the prompt command does and its purpose. |
String |
getPromptCommandString()
All implementations must indicate what the prompt command is that will trigger its execution. |
String |
getSyntax()
Returns a one-line usage string to describe the syntax of the command including all optional and required arguments. |
| Method Detail |
|---|
String getPromptCommandString()
boolean execute(AgentMain agent,
String[] args)
agent - the agent itselfargs - the arguments passed to the agent on the agent prompt
true if the agent can continue accepting prompt commands; false if the agent
should dieString getSyntax()
String getHelp()
String getDetailedHelp()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||