be.lassi.lanbox.commands
Class CommonSetPatch
java.lang.Object
  
be.lassi.lanbox.commands.Command
      
be.lassi.lanbox.commands.LanboxCommand
          
be.lassi.lanbox.commands.CommonSetPatch
public class CommonSetPatch
- extends LanboxCommand
 
Sets the lanbox patching information defining the mapping of dimmers
 (dmx channels) to light channels.  A maximum of 255 dimmer/channel
 pairs can be send to the Lanbox.  Note that this class supports 16bit
 mode only.  Each pair consists of 8 bytes (4 for the dimmer number, and
 4 for the channel number).
| 
Field Summary | 
static java.lang.String | 
ID
 
          Lanbox command identifier. | 
 
 
 
| 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
 
 
CommonSetPatch
public CommonSetPatch(byte[] request)
- Constructs a new command from raw request data.
- Parameters:
 request - the raw request data
 
CommonSetPatch
public CommonSetPatch(PatchParameters parameters)
- Constructs a new instance.
- Parameters:
 parameters - the patch parameters (dimmer/channel pairs)
 
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
 
 
 
getParameters
public PatchParameters getParameters()
- Gets the patch parameters (dimmer/channel pairs).
- Returns:
 - the patch parameters
 
 
 
hashCode
public int hashCode()
- 
- Overrides:
 hashCode in class Command