public abstract class AbstractCommand extends Object implements Command
Command that most implementations should
extend. By default, any extension of this class will require Storage,
and be available both in and out of the Thermostat shell.
Concrete implementations must be registered as OSGi services with
Command as the class. This may be done through a
CommandRegistry.
| Constructor and Description |
|---|
AbstractCommand() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAvailableInShell()
Whether the command is available to be invoked from within the shell.
|
boolean |
isAvailableOutsideShell()
Indicates if the command is available to be invoked from outside the
shell (as an argument to the main thermostat program).
|
boolean |
isStorageRequired()
Whether the command depends on
Storage |
public boolean isStorageRequired()
CommandStorageisStorageRequired in interface CommandStorage is required.public boolean isAvailableInShell()
CommandisAvailableInShell in interface Commandpublic boolean isAvailableOutsideShell()
CommandisAvailableOutsideShell in interface CommandCopyright © 2013. All Rights Reserved.