public class CommandQueue extends Object
| Constructor and Description |
|---|
CommandQueue() |
| Modifier and Type | Method and Description |
|---|---|
CommandQueue |
addInCclSessionCommand(AbstractCclCommand command)
Add a command to be run during an open CCL session.
|
CommandQueue |
addOnCclCloseCommand(AbstractCclCommand command)
Add a command to be executed immediately prior to the closing of the CCL session.
|
CommandQueue |
addOnCclStartCommand(AbstractCclCommand command)
Add a command to be executed immediately after the opening of the CCL session.
|
void |
execute(CclCommandTerminal cclTerminal)
Execute a set of commands.
|
Collection<? extends AbstractCclCommand> |
getInCclSessionCommands()
Get all commands that are to be executed within an open CCL session.
|
Collection<? extends AbstractCclCommand> |
getOnCclCloseCommands()
Get all commands that are to be executed immediately prior to the closing of a CCL session.
|
Collection<? extends AbstractCclCommand> |
getOnCclStartCommands()
Get all commands that are to be executed immediately prior to the opening of a CCL session.
|
boolean |
isEmpty()
Determine whether or not this queue contains any commands to be executed.
|
public CommandQueue addInCclSessionCommand(AbstractCclCommand command)
command - A AbstractCclCommand object.public CommandQueue addOnCclCloseCommand(AbstractCclCommand command)
command - A AbstractCclCommand object.public CommandQueue addOnCclStartCommand(AbstractCclCommand command)
command - A AbstractCclCommand object.public void execute(CclCommandTerminal cclTerminal)
cclTerminal - A CclCommandTerminal object representing the terminal in which the commands are to be
executed.public Collection<? extends AbstractCclCommand> getInCclSessionCommands()
Collection of objects that extend AbstractCclCommand.public Collection<? extends AbstractCclCommand> getOnCclCloseCommands()
Collection of objects that extend AbstractCclCommand.public Collection<? extends AbstractCclCommand> getOnCclStartCommands()
Collection of objects that extend AbstractCclCommand.public boolean isEmpty()
true if this queue contains no commands to be, false if there are commands to be run.Copyright © 2019. All rights reserved.