be.lassi.lanbox
Class CommandLogQueue
java.lang.Object
be.lassi.lanbox.CommandQueue
be.lassi.lanbox.CommandLogQueue
public class CommandLogQueue
- extends CommandQueue
Input queue for lanbox command logging, commands are put on this queue
after execution in the lanbox.
Method Summary |
boolean |
isEnabled()
Indicates whether the queue is enabled (accepts new commands). |
void |
put(Command command)
Puts a lanbox command on the queue. |
void |
setEnabled(boolean enabled)
Sets the 'enabled' indicator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandLogQueue
public CommandLogQueue()
isEnabled
public boolean isEnabled()
- Indicates whether the queue is enabled (accepts new commands).
- Returns:
- true if the queue accepts new commands.
put
public void put(Command command)
- Puts a lanbox command on the queue.
- Overrides:
put
in class CommandQueue
- Parameters:
command
- the command to be added to the queue
setEnabled
public void setEnabled(boolean enabled)
- Sets the 'enabled' indicator.
- Parameters:
enabled
- true if the queue accepts new commands