public class ThermostatService extends BasicCommand implements ActionListener<ApplicationState>, OSGiContext
Constructor and Description |
---|
ThermostatService() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent<ApplicationState> actionEvent) |
void |
disable()
Called when the command is being removed from the system.
|
Collection<ArgumentSpec> |
getAcceptedArguments()
Returns a collection of arguments that the command is prepared to handle.
|
StartupConfiguration |
getConfiguration() |
String |
getDescription()
A short description for the command indicating what it does.
|
String |
getName()
Returns a name for this command.
|
ActionNotifier<ApplicationState> |
getNotifier() |
String |
getUsage()
How the user should invoke this command
|
void |
run(CommandContext ctx)
Execute the command
|
void |
setBundleContext(org.osgi.framework.BundleContext context) |
isStorageRequired, setStorageRequired
public void setBundleContext(org.osgi.framework.BundleContext context)
setBundleContext
in interface OSGiContext
public void run(CommandContext ctx) throws CommandException
Command
run
in interface Command
CommandException
public ActionNotifier<ApplicationState> getNotifier()
getNotifier
in class BasicCommand
public StartupConfiguration getConfiguration()
getConfiguration
in class BasicCommand
public void actionPerformed(ActionEvent<ApplicationState> actionEvent)
actionPerformed
in interface ActionListener<ApplicationState>
public void disable()
Command
public String getName()
Command
public String getDescription()
Command
getDescription
in interface Command
public String getUsage()
Command
public Collection<ArgumentSpec> getAcceptedArguments()
Command
getAcceptedArguments
in interface Command
Copyright © 2012. All Rights Reserved.