Overview  Package   Class  Tree  Index 

be.lassi.lanbox.domain
Class PatchParameters

java.lang.Object
  extended by be.lassi.lanbox.domain.PatchParameters

public class PatchParameters
extends java.lang.Object

A collection of dimmer/channel pairs for use as parameters with the CommonSetPatch Lanbox command.


Constructor Summary
PatchParameters()
           
 
Method Summary
 void add(int dimmerId, int channelId)
          Adds a new patch pair.
 boolean equals(java.lang.Object object)
          
 int getChannelId(int index)
          Gets the identifier of the channel at given index.
 int getDimmerId(int index)
          Gets the identifier of the dimmer at given index.
 int hashCode()
          
 int size()
          Gets the number of dimmer/channel pairs.
 PatchParameters[] split()
          Splits this parameters object in multiple parameter objects if the maximum number of dimmer/channel pairs is exceeded.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatchParameters

public PatchParameters()
Method Detail

add

public void add(int dimmerId,
                int channelId)
Adds a new patch pair.

Parameters:
dimmerId - the dimmer identifier
channelId - the channel identifier, a value of -1 means dimmer is not patched

equals

public boolean equals(java.lang.Object object)

Overrides:
equals in class java.lang.Object

getChannelId

public int getChannelId(int index)
Gets the identifier of the channel at given index.

Parameters:
index - the index in the patch pair collection
Returns:
the channel id, a value of -1 means dimmer is not patched

getDimmerId

public int getDimmerId(int index)
Gets the identifier of the dimmer at given index.

Parameters:
index - the index in the patch pair collection
Returns:
the dimmer id

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

size

public int size()
Gets the number of dimmer/channel pairs.

Returns:
the number of dimmer/channel pairs

split

public PatchParameters[] split()
Splits this parameters object in multiple parameter objects if the maximum number of dimmer/channel pairs is exceeded.

Returns:
the splitted parameters

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2