be.lassi.lanbox.commands.channel
Class ChannelSetData
java.lang.Object
be.lassi.lanbox.commands.Command
be.lassi.lanbox.commands.LanboxCommand
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. |
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 |
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
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 identifierchanges
- the channel changes
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