Interface ICommand
- Namespace
- BOOSE
- Assembly
- BOOSE.dll
Interface for new commands. Any new Command class should implement this interface and be generated by a CommandFactory that implements the ICommandFactory interface. Contains methods to set the Command up after its creation, manage its parameters when it is compiled and execute it when it is called.
public interface ICommand
Methods
CheckParameters(string[])
Checks that a Command has the right number of parameters and throws a CommandException if not.
void CheckParameters(string[] Parameters)
Parameters
Parameters
string[]
Compile()
Called before the command is run.
void Compile()
Execute()
Called to run the command.
void Execute()
Set(StoredProgram, string)
Set a Command Object
void Set(StoredProgram Program, string Params)
Parameters
Program
StoredProgramReference to valid StoredProgram
Params
stringOriginal parameter list e.g. "num1,num2"