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(TokenizedCommand tc)
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(TokenizedCommand tc) throws CommandInvocationException
invoke in interface CommandSettc - The tokenized command to be invokenull 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.Copyright © 2013 LSST. All Rights Reserved.