Overview  Package   Class  Tree  Index 

be.lassi.lanbox
Class CommandQueue

java.lang.Object
  extended by be.lassi.lanbox.CommandQueue
Direct Known Subclasses:
CommandLogQueue

public class CommandQueue
extends java.lang.Object

Queue for lanbox commands.


Constructor Summary
CommandQueue()
           
 
Method Summary
 Command get()
          Gets the first command from the queue, and removes that command from the queue.
 void put(Command command)
          Puts a lanbox command on the queue.
 int size()
          Gets the number of commands on the queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandQueue

public CommandQueue()
Method Detail

get

public Command get()
Gets the first command from the queue, and removes that command from the queue.

Returns:
the first command on the queue or null (if queue is empty)

put

public void put(Command command)
Puts a lanbox command on the queue.

Parameters:
command - the command to be added to the queue

size

public int size()
Gets the number of commands on the queue.

Returns:
the number of commands on the queue

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2