© 2006-2007 ETH Zurich

org.ximtec.igesture.geco.action
Class CommandExecutor

java.lang.Object
  extended by org.ximtec.igesture.geco.action.CommandExecutor
All Implemented Interfaces:
GestureAction

public class CommandExecutor
extends Object
implements GestureAction

Class encapsulating the execution of a command.

Version:
0.9, Dec 6, 2007
Author:
Michele Croci, mcroci@gmail.com, Beat Signer, signer@inf.ethz.ch

Constructor Summary
CommandExecutor(String command)
          Constructor.
 
Method Summary
 void actionPerformed(ResultSet resultSet)
          Execute the action
 String getCommand()
           
 String toString()
          Returns a string representation of the command executor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommandExecutor

public CommandExecutor(String command)
Constructor.

Parameters:
command - the command to be executed
Method Detail

actionPerformed

public void actionPerformed(ResultSet resultSet)
Execute the action

Specified by:
actionPerformed in interface GestureAction
Parameters:
resultSet - the result set.

getCommand

public String getCommand()

toString

public String toString()
Returns a string representation of the command executor.

Overrides:
toString in class Object
Returns:
string representation of the command executor.

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.