be.lassi.ui.patch
Class GetPatch
java.lang.Object
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.
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 |
GetPatch
public GetPatch(ShowContext context,
Listener listener,
boolean updateChannels)
- Constructs a new instance.
- Parameters:
context
- the show contextlistener
- the listeners that needs to be notified once all patch information is loadedupdateChannels
- true if the dimmer channels have to be updated
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 dimmerchannelIds
- the identifiers of the channels that are patched to the dimmers