org.limitless.nmc.Prototype1
Interface Command

All Known Implementing Classes:
CommandCreate, CommandDestroy, CommandDrop, CommandEnter, CommandExamine, CommandExitApplication, CommandForgetAll, CommandGet, CommandHelp, CommandInventory, CommandLeave, CommandLook, CommandQuery, CommandRelation, CommandRole, CommandRule, ScriptLoader, ScriptWriterNMC2

public interface Command

The command interface provides Command pattern support. It describes an object that responds to requests return simple or complex help instructions, and to invoke with an arbitrary array of parameters. The command objects are dispatched by means of the CommandProcessor singleton. Commands needn't and shouldn't know their particular external invoking key, since that can change.

Version:
1.0
Author:
Brian Jones

Method Summary
 java.lang.String[] getHelpDetailed()
          Give the long help information.
 java.lang.String getHelpSummary()
          Get the single-line help detail
 void invoke(java.lang.String[] args)
          Process the command
 

Method Detail

invoke

void invoke(java.lang.String[] args)
Process the command

Parameters:
args -

getHelpSummary

java.lang.String getHelpSummary()
Get the single-line help detail


getHelpDetailed

java.lang.String[] getHelpDetailed()
Give the long help information.



Copyright © 1995, 2004 Limitless Knowledge Association, All Rights Reserved.