Overview  Package   Class  Tree  Index 

be.lassi.lanbox.commands
Class CommonSetPatch

java.lang.Object
  extended by be.lassi.lanbox.commands.Command
      extended by be.lassi.lanbox.commands.LanboxCommand
          extended by 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.
 
Constructor Summary
CommonSetPatch(byte[] request)
          Constructs a new command from raw request data.
CommonSetPatch(PatchParameters parameters)
          Constructs a new instance.
 
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)
          
 PatchParameters getParameters()
          Gets the patch parameters (dimmer/channel pairs).
 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
Constructor Detail

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)
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

getParameters

public PatchParameters getParameters()
Gets the patch parameters (dimmer/channel pairs).

Returns:
the patch parameters

hashCode

public int hashCode()

Overrides:
hashCode in class Command

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2