Overview  Package   Class  Tree  Index 

be.lassi.ui.patch
Class GetPatch

java.lang.Object
  extended by be.lassi.ui.patch.GetPatch
All Implemented Interfaces:
PatchBufferProcessor

public class GetPatch
extends java.lang.Object
implements PatchBufferProcessor

Generates the lanbox commands that are needed to load the entire patch information; and processes the command responses.


Constructor Summary
GetPatch(ShowContext context, Listener listener, boolean updateChannels)
          Constructs a new instance.
 
Method Summary
 void execute()
          Executes the commands.
 java.util.List<CommonGetPatch> getCommands()
          Gets the lanbox commands that are needed to load all patch information.
 void process(int startDimmerId, int[] channelIds)
          Processes patch buffer information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetPatch

public GetPatch(ShowContext context,
                Listener listener,
                boolean updateChannels)
Constructs a new instance.

Parameters:
context - the show context
listener - the listeners that needs to be notified once all patch information is loaded
updateChannels - true if the dimmer channels have to be updated
Method Detail

execute

public void execute()
Executes the commands.


getCommands

public java.util.List<CommonGetPatch> getCommands()
Gets the lanbox commands that are needed to load all patch information.

Returns:
the commands to get the patch

process

public void process(int startDimmerId,
                    int[] channelIds)
Processes patch buffer information.

Specified by:
process in interface PatchBufferProcessor
Parameters:
startDimmerId - the identifier of this first dimmer
channelIds - the identifiers of the channels that are patched to the dimmers

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2