1 package cz.cuni.amis.pogamut.defcon.communication.messages.commands;
2
3 import cz.cuni.amis.pogamut.base.communication.messages.CommandMessage;
4
5 import javabot.JBot;
6
7
8 /**
9 * Command message for arbitrary world that is run in the same JVM.
10 *
11 * @author Jimmy
12 */
13 public abstract class DefConCommand extends CommandMessage {
14 /**
15 * Contains the call of particular {@link JBot} method.
16 */
17 public abstract void perform();
18
19 /**
20 * Alias for toString()
21 *
22 * @return
23 */
24 public String toMessage() {
25 return toString();
26 }
27
28 /**
29 * DOCUMENT ME!
30 *
31 * @return DOCUMENT ME!
32 */
33 public String getStringizedFields() {
34 return "";
35 }
36 }