changed color setters to return status
This commit is contained in:
parent
19d286fa29
commit
4dc7623153
|
@ -17,21 +17,26 @@ public class Strobe1500 extends BuntiDMXDevice {
|
|||
addChannel(new DMXChannel(2, CHANNEL_MODE));
|
||||
}
|
||||
|
||||
public final void setSpeed(int value) {
|
||||
setChannelValueByName(CHANNEL_SPEED, value);
|
||||
public final boolean setSpeed(int value) {
|
||||
return setChannelValueByName(CHANNEL_SPEED, value);
|
||||
}
|
||||
public final void setIntensity(int value) {
|
||||
setChannelValueByName(CHANNEL_INTENSITY, value);
|
||||
|
||||
public final boolean setIntensity(int value) {
|
||||
return setChannelValueByName(CHANNEL_INTENSITY, value);
|
||||
}
|
||||
public final void setMode(int value) {
|
||||
setChannelValueByName(CHANNEL_MODE, value);
|
||||
|
||||
public final boolean setMode(int value) {
|
||||
return setChannelValueByName(CHANNEL_MODE, value);
|
||||
}
|
||||
|
||||
public final int getSpeed() {
|
||||
return getChannelValueByName(CHANNEL_SPEED);
|
||||
}
|
||||
|
||||
public final int getIntensity() {
|
||||
return getChannelValueByName(CHANNEL_INTENSITY);
|
||||
}
|
||||
|
||||
public final int getMode() {
|
||||
return getChannelValueByName(CHANNEL_MODE);
|
||||
}
|
||||
|
@ -53,7 +58,7 @@ public class Strobe1500 extends BuntiDMXDevice {
|
|||
@Override
|
||||
public final String toString() {
|
||||
return "Strobe1500 " + getDeviceId() + ", " + getDeviceName() +
|
||||
"[" + getSpeed() + "," + getIntensity() + "," + getMode() + "]";
|
||||
" [" + getSpeed() + "," + getIntensity() + "," + getMode() + "]";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue