Overview  Package   Class  Tree  Index 

be.lassi.lanbox.commands.channel
Class ChannelSetData

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

public class ChannelSetData
extends LanboxCommand

Lanbox command to set channel dmx values.


Field Summary
static java.lang.String ID
          Lanbox command identifier.
static int MAX_CHANGES
          The maximum number of channel changes that can be processed in one command.
 
Constructor Summary
ChannelSetData(byte[] request)
          Constructs command from request buffer.
ChannelSetData(int bufferId, ChannelChanges changes)
          Constructs the command.
 
Method Summary
 void appendCommand(java.lang.StringBuilder b)
          Appends a textual description of the command.
 void appendCommandDetail(java.lang.StringBuilder b)
          
 boolean equals(java.lang.Object object)
          
 int hashCode()
          
 
Methods inherited from class be.lassi.lanbox.commands.LanboxCommand
get, getBoolean, getId, getInt, getInt4, getRequest, getRequestString, getResponse, processResponse, set, set2, set2, set4
 
Methods inherited from class be.lassi.lanbox.commands.Command
add, appendResponse, 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

MAX_CHANGES

public static final int MAX_CHANGES
The maximum number of channel changes that can be processed in one command. Experimentation learns that more than 255 changes are possible in one command, but we limit ourselves to 255 to be on the safe side.

See Also:
Constant Field Values
Constructor Detail

ChannelSetData

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

Parameters:
request - the lanbox request buffer

ChannelSetData

public ChannelSetData(int bufferId,
                      ChannelChanges changes)
Constructs the command.

Parameters:
bufferId - the buffer identifier
changes - the channel changes
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

appendCommandDetail

public void appendCommandDetail(java.lang.StringBuilder b)

Overrides:
appendCommandDetail in class Command

equals

public boolean equals(java.lang.Object object)

Overrides:
equals in class LanboxCommand

hashCode

public int hashCode()

Overrides:
hashCode in class Command

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2