Rev | Line | |
---|
[1] | 1 | package de.ugoe.cs.util.console;
|
---|
| 2 |
|
---|
| 3 | import java.util.List;
|
---|
| 4 |
|
---|
| 5 | /**
|
---|
| 6 | * <p>
|
---|
| 7 | * Defines the interface for a command. The class names of the commands must be
|
---|
| 8 | * of the form {@code CMD<commandname>}, otherwise they cannot be used by the
|
---|
| 9 | * {@link CommandExecuter}.
|
---|
| 10 | * </p>
|
---|
| 11 | *
|
---|
| 12 | * @author Steffen Herbold
|
---|
| 13 | */
|
---|
| 14 | public interface Command {
|
---|
| 15 |
|
---|
| 16 | /**
|
---|
| 17 | * <p>
|
---|
| 18 | * Executes a command.
|
---|
| 19 | * </p>
|
---|
| 20 | *
|
---|
| 21 | * @param parameters
|
---|
| 22 | * parameters for the command.
|
---|
| 23 | */
|
---|
| 24 | public void run(List<Object> parameters);
|
---|
| 25 |
|
---|
| 26 | /**
|
---|
| 27 | * <p>
|
---|
| 28 | * Sends information about how to use a command to the console.
|
---|
| 29 | * </p>
|
---|
| 30 | */
|
---|
| 31 | public void help();
|
---|
| 32 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.