org.bidib.wizard.dmx.client.model.DmxFixedPattern Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bidibwizard-dmx-client Show documentation
Show all versions of bidibwizard-dmx-client Show documentation
jBiDiB BiDiB Wizard DMX client POM
The newest version!
package org.bidib.wizard.dmx.client.model;
import java.util.ArrayList;
import java.util.List;
import org.bidib.wizard.api.model.NodeInterface;
import com.jgoodies.binding.beans.Model;
public class DmxFixedPattern extends Model {
private static final long serialVersionUID = 1L;
private final NodeInterface node;
private final int patternIndex;
private final int startCvNumber;
private final List items = new ArrayList<>();
public DmxFixedPattern(final NodeInterface node, int patternIndex, int startCvNumber,
final List items) {
this.node = node;
this.patternIndex = patternIndex;
this.startCvNumber = startCvNumber;
this.items.addAll(items);
}
public NodeInterface getNode() {
return node;
}
public int getPatternIndex() {
return patternIndex;
}
public int getStartCvNumber() {
return startCvNumber;
}
public List getItems() {
return items;
}
@Override
public String toString() {
return "Fixed Pattern " + (getPatternIndex() + 1);
}
public static class FixedPatternItem {
private final int cvNumber;
private Integer dmxChannelId;
private Integer brightnessValue;
public FixedPatternItem(int cvNumber) {
this.cvNumber = cvNumber;
}
public int getCvNumber() {
return cvNumber;
}
public Integer getDmxChannelId() {
return dmxChannelId;
}
public void setDmxChannelId(Integer dmxChannelId) {
this.dmxChannelId = dmxChannelId;
}
public Integer getBrightnessValue() {
return brightnessValue;
}
public void setBrightnessValue(Integer brightnessValue) {
this.brightnessValue = brightnessValue;
}
}
}