1 /*
2 * @(#)$Id: Command.java 689 2009-07-22 00:10:27Z bsigner $
3 *
4 * Author : Ueli Kurmann, igesture@uelikurmann.ch
5 *
6 *
7 * Purpose : Command to be executed by the responsible controller.
8 *
9 * -----------------------------------------------------------------------
10 *
11 * Revision Information:
12 *
13 * Date Who Reason
14 *
15 * 09.04.2008 ukurmann Initial Release
16 * 29.10.2008 bsigner Cleanup
17 *
18 * -----------------------------------------------------------------------
19 *
20 * Copyright 1999-2009 ETH Zurich. All Rights Reserved.
21 *
22 * This software is the proprietary information of ETH Zurich.
23 * Use is subject to license terms.
24 *
25 */
26
27
28 package org.ximtec.igesture.tool.core;
29
30 /**
31 * Command to be executed by the responsible controller.
32 * @version 1.0 09.04.2008
33 * @author Ueli Kurmann, igesture@uelikurmann.ch
34 * @author Beat Signer, signer@inf.ethz.ch
35 */
36 public class Command {
37
38 private String command;
39 private Object sender;
40
41
42 public Command(String command) {
43 this(command, null);
44 }
45
46
47 public Command(String command, Object sender) {
48 this.command = command;
49 this.sender = sender;
50 }
51
52
53 /**
54 * Returns the command.
55 * @return the command.
56 */
57 public String getCommand() {
58 return command;
59 } // getCommand
60
61
62 /**
63 * Returns the sender.
64 * @return the sender.
65 */
66 public Object getSender() {
67 return sender;
68 } // getSender
69
70 }