Overview  Package   Class  Tree  Index 

be.lassi.lanbox
Class ChannelChangeQueue

java.lang.Object
  extended by be.lassi.lanbox.ChannelChangeQueue

public class ChannelChangeQueue
extends java.lang.Object

Queue for channel change requests. Whenever the application thinks the dmx output value should be changed, it can add a ChannelChange object to this queue. The LanboxEngine will read the change change requests from the queue and issue the necesary commands to the lanbox. The channel change requests are queued up, so that the LanboxEngine can combine several channel changes into 1 lanbox command (performance).

See Also:
LanboxEngine

Constructor Summary
ChannelChangeQueue()
           
 
Method Summary
 void add(ChannelChange change)
          Adds given channel change.
 void add(java.util.List<ChannelChange> channelChanges)
           
 ChannelChanges get()
          Gets all channel changes in the collection, and empties the collection.
 int size()
          Gets the number of channel changes in the queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelChangeQueue

public ChannelChangeQueue()
Method Detail

add

public void add(ChannelChange change)
Adds given channel change.

Parameters:
change - the channel change to be added

add

public void add(java.util.List<ChannelChange> channelChanges)

get

public ChannelChanges get()
Gets all channel changes in the collection, and empties the collection.

Returns:
all channel changes in the collection

size

public int size()
Gets the number of channel changes in the queue.

Returns:
the number of channel changes

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2