public interface Commandable
Commands are passed in the form of a list of objects. Under most conditions, these are simply text strings, but one must ensure that in order to be safe.
Anything can be output by a command. If nothing needs to be output, the function
should simply return null
.
Errors during command processing should throw Exceptions.
After you are done adding a command, make sure to document it in the class's Javadoc (see BaseClusterer for an example). Format should be:
<command><p><b>command usage</b> - Description of command
<br><pr><i>option name</i>: Description of option
<br>Details about command</command>
Surround names of a user option with <>'s. Signify that the parameter is optional by surrounding it with []'s. If the parameter must be an object, place a $ in front of the command name. As an example:
crossvalidate $<data> [<folds>] - Cross validate a model
data: Dataset used during cross-validation
folds: How many folds to use in validation process (default = 10)
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
runCommand(java.util.List<java.lang.Object> Command)
Process some command described by a list of Objects.
|
java.lang.Object runCommand(java.util.List<java.lang.Object> Command) throws java.lang.Exception
Command
- Command as a list of objectsjava.lang.Exception
- If something goes wrong