Overview  Package   Class  Tree  Index 

be.lassi.lanbox.commands.channel
Class ChannelSetAttribute

java.lang.Object
  extended by be.lassi.lanbox.commands.Command
      extended by be.lassi.lanbox.commands.LanboxCommand
          extended by be.lassi.lanbox.commands.channel.ChannelSetAttribute
Direct Known Subclasses:
ChannelSetEdit, ChannelSetOutput, ChannelSetSolo

public abstract class ChannelSetAttribute
extends LanboxCommand

Superclass for Lanbox commands that change channel settings.


Field Summary
static int MAX_ATTRIBUTES
          The maximum number of channel changes that can be processed in one command.
 
Constructor Summary
protected ChannelSetAttribute(byte[] request)
          Constructs a new command from a request buffer.
protected ChannelSetAttribute(java.lang.String id, int bufferId, ChannelAttribute[] attributes)
          Constructs a new command.
 
Method Summary
 void appendCommand(java.lang.StringBuilder b)
          Appends a textual description of the command.
 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, appendCommandDetail, appendResponse, getCommandString, notifyListeners, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_ATTRIBUTES

public static final int MAX_ATTRIBUTES
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

ChannelSetAttribute

protected ChannelSetAttribute(byte[] request)
Constructs a new command from a request buffer.

Parameters:
request - the buffer to construct the command from

ChannelSetAttribute

protected ChannelSetAttribute(java.lang.String id,
                              int bufferId,
                              ChannelAttribute[] attributes)
Constructs a new command.

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

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