com.enspire.gemini.commands
Class CommandExecutorImpl

java.lang.Object
  extended by com.enspire.gemini.commands.CommandExecutorImpl
All Implemented Interfaces:
CommandExecutor

public class CommandExecutorImpl
extends java.lang.Object
implements CommandExecutor

The basic implementation of CommandExecutor. Keeps executed commands in a List.

Since:
1.0
Author:
Dragan Djuric

Constructor Summary
CommandExecutorImpl()
           
 
Method Summary
 void execute(Command command)
          Executes the given command.
 void undo()
          Undoes all commands that have been executed up to now (does not include already undoed commands).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandExecutorImpl

public CommandExecutorImpl()
Method Detail

execute

public void execute(Command command)
Description copied from interface: CommandExecutor
Executes the given command.

Specified by:
execute in interface CommandExecutor
Parameters:
command - the command that is to be executed.
See Also:
CommandExecutor.execute(com.enspire.gemini.commands.Command)

undo

public void undo()
Description copied from interface: CommandExecutor
Undoes all commands that have been executed up to now (does not include already undoed commands).

Specified by:
undo in interface CommandExecutor
See Also:
CommandExecutor.undo()


Copyright © 2005 e-nspire. All Rights Reserved.