be.lassi.lanbox.commands.channel
Class ChannelSetAttribute
java.lang.Object
be.lassi.lanbox.commands.Command
be.lassi.lanbox.commands.LanboxCommand
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. |
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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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
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.
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