source: trunk/JavaHelperLib/src/de/ugoe/cs/util/console/Command.java @ 137

Last change on this file since 137 was 1, checked in by sherbold, 14 years ago
File size: 638 bytes
Line 
1package de.ugoe.cs.util.console;
2
3import 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 */
14public 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.