public class CompositeCommandSet extends Object implements CommandSet
| Constructor and Description |
|---|
CompositeCommandSet() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(CommandSet set)
Add a new command set
|
Dictionary |
getCommandDictionary()
Get the dictionary associated with this command set.
|
Set<CommandSet> |
getCommandSets()
Returns the list of command sets.
|
Object |
invoke(BasicCommand command)
Invoke a command included in this command set.
|
void |
remove(CommandSet set)
Remove a command set
|
public void add(CommandSet set)
set - The command set to add.public void remove(CommandSet set)
set - The command set to be removed.public Set<CommandSet> getCommandSets()
public Dictionary getCommandDictionary()
getCommandDictionary in interface CommandSetpublic Object invoke(BasicCommand command) throws CommandInvocationException, CommandArgumentMatchException
invoke in interface CommandSetcommand - The Command to be invokednull if
the command does not return a result.CommandInvocationException - If the command fails, either because it cannot
be found, the arguments do not match the expected arguments, or the command fails
during invocation.CommandArgumentMatchException - if one of the provided argument values does not match the allowed values.Copyright © 2015 LSST. All rights reserved.