diff --git a/src/main/java/de/ctdo/bunti/model/BuntiDMXDevice.java b/src/main/java/de/ctdo/bunti/model/BuntiDMXDevice.java index 73a9110..1618977 100644 --- a/src/main/java/de/ctdo/bunti/model/BuntiDMXDevice.java +++ b/src/main/java/de/ctdo/bunti/model/BuntiDMXDevice.java @@ -60,55 +60,7 @@ public abstract class BuntiDMXDevice extends BuntiDevice { } return 0; } - -// /** -// * Merge the DMX values from this device into a global DMX512 Data Array. -// * @param dmxData DMX512 Data array to merge the local values into. -// * @return True on success, false otherwise. -// */ -// public boolean mergeDMXData(int[] dmxData) { -// -// if(dmxData == null || dmxData.length == 0) { -// return false; -// } -// -// for (DMXChannel channel : dmxChannels.getAllChannels()) { -// int index = channel.getOffset() + (startAddress - DMX.DMX_STARTADDRESS_OFFSET); -// -// if(index >= 0 && index < dmxData.length){ -// dmxData[index] = channel.getValue(); -// } else { -// return false; -// } -// } -// -// return true; -// } -// -// /** -// * Merge the DMX values from this device into a global DMX512 Data Array. -// * @param dmxData DMX512 Data to merge the local values into. -// * @return True on success, false otherwise. -// */ -// public boolean mergeDMXData(Map dmxData) { -// -// if(dmxData == null || dmxData.size() == 0) { -// return false; -// } -// -// for (DMXChannel channel : dmxChannels.getAllChannels()) { -// int index = channel.getOffset() + (startAddress - DMX.DMX_STARTADDRESS_OFFSET); -// -// if(index >= DMX.DMX_CHANNELS_MIN && index <= DMX.DMX_CHANNELS_MAX){ -// dmxData.put(index, channel.getValue()); -// } else { -// return false; -// } -// } -// -// return true; -// } - + public Map getChannelData() { Map map = new HashMap();