Command class

To write a command interface, extend one or more of the three interfaces included in the command package. The base interface for all commands is the Command interface. This interface provides only the client-side interface for generic commands and declares three basic methods...

The implementation class for your interface must contain implementations for the isReadyToCallExecute and reset methods.