Overview  Package   Class  Tree  Index 

be.lassi.lanbox.commands.channel
Class ChannelReadData

java.lang.Object
  extended by be.lassi.lanbox.commands.Command
      extended by be.lassi.lanbox.commands.LanboxCommand
          extended by be.lassi.lanbox.commands.channel.ChannelReadData

public class ChannelReadData
extends LanboxCommand

Lanbox command to read channel dmx values from the lanbox layers or special buffers (mixer, dmx in, dmx out).


Field Summary
static java.lang.String ID
          Lanbox command identifier.
 
Constructor Summary
ChannelReadData(byte[] request)
          Constructs command from request buffer.
ChannelReadData(int[] dmxValues, int bufferId, int first, int channelCount)
          Constructs a new instance.
 
Method Summary
 void appendCommand(java.lang.StringBuilder b)
          Appends a textual description of the command.
 void appendResponse(java.lang.StringBuilder b)
          Appends a textual description of the command reponse.
 boolean equals(java.lang.Object object)
          
 int hashCode()
          
 void processResponse(byte[] bytes)
          Processes given reponse buffer.
 
Methods inherited from class be.lassi.lanbox.commands.LanboxCommand
get, getBoolean, getId, getInt, getInt4, getRequest, getRequestString, getResponse, set, set2, set2, set4
 
Methods inherited from class be.lassi.lanbox.commands.Command
add, appendCommandDetail, getCommandString, notifyListeners, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final java.lang.String ID
Lanbox command identifier.

See Also:
Constant Field Values
Constructor Detail

ChannelReadData

public ChannelReadData(byte[] request)
Constructs command from request buffer.

Parameters:
request - the lanbox request buffer

ChannelReadData

public ChannelReadData(int[] dmxValues,
                       int bufferId,
                       int first,
                       int channelCount)
Constructs a new instance.

Parameters:
dmxValues - array of integers that is to receive the dmx values
bufferId - the buffer identifier
first - index of the first channel for which to retrieve the dmx value
channelCount - the number of channels for which to retrieve the dmx value
Method Detail

appendCommand

public void appendCommand(java.lang.StringBuilder b)
Appends a textual description of the command.

Overrides:
appendCommand in class Command
Parameters:
b - the string builder to which to append

appendResponse

public void appendResponse(java.lang.StringBuilder b)
Appends a textual description of the command reponse.

Overrides:
appendResponse in class Command
Parameters:
b - the string builder to which to append

equals

public boolean equals(java.lang.Object object)

Overrides:
equals in class LanboxCommand

hashCode

public int hashCode()

Overrides:
hashCode in class Command

processResponse

public void processResponse(byte[] bytes)
Processes given reponse buffer.

Overrides:
processResponse in class LanboxCommand
Parameters:
bytes - the response buffer to be processed

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2