- private ArrayList<Integer> buildMappedList(Model model, int[][] channelList) {
- ArrayList<Integer> points = new ArrayList<Integer>();
- for (int chi = 0; chi < CHANNELS_PER_BOARD; ++chi) {
- int[] channel = (chi < channelList.length) ? channelList[chi] : new int[]{};
- for (int ci = 0; ci < CUBES_PER_CHANNEL; ++ci) {
- int cubeNumber = (ci < channel.length) ? channel[ci] : 0;
- if (cubeNumber == 0) {
+ private void buildPointList(Model model, PandaMapping pm) {
+ int pi = 0;
+ for (int[] channel : pm.channelList) {
+ for (int cubeNumber : channel) {
+ if (cubeNumber <= 0) {