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()
Command
Storage
isStorageRequired
in interface Command
Storage
is required.public boolean isAvailableInShell()
Command
isAvailableInShell
in interface Command
public boolean isAvailableOutsideShell()
Command
isAvailableOutsideShell
in interface Command
Copyright © 2013. All rights reserved.