org.progeeks.cmd.stack
Interface StackableCommandProcessor

All Superinterfaces:
CommandProcessor

public interface StackableCommandProcessor
extends CommandProcessor

Command processor specialization that can be used in a StackedCommandProcessor. Stacked command processors need a reference to the stack's root environment so that the commands or the command processors can manipulate the stack. They can also tell the stack if they can or cannot handle a specific command.

Version:
$Revision: 1.1 $
Author:
Paul Speed

Method Summary
 boolean canExecute(Command cmd)
          Returns true if this command processor can execute the specified command.
 StackEnvironment getStackEnvironment()
          Returns the stack environment providing access to the command processor stack.
 void setStackEnvironment(StackEnvironment env)
          Sets the stack environment providing access to the command processor stack.
 
Methods inherited from interface org.progeeks.cmd.CommandProcessor
execute
 

Method Detail

canExecute

boolean canExecute(Command cmd)
Returns true if this command processor can execute the specified command. False otherwise. This can be used by the CommandProcessorStack implementation to determine where to deliver a command.


setStackEnvironment

void setStackEnvironment(StackEnvironment env)
Sets the stack environment providing access to the command processor stack.


getStackEnvironment

StackEnvironment getStackEnvironment()
Returns the stack environment providing access to the command processor stack.



Copyright © 2002-2003 Paul Speed. All Rights Reserved.