+
+ /**
+ * Get available wave length from frequency map array.
+ * @param freqMap byte[]
+ */
+ private void updateAvailableWlIndex(byte[] freqMap) {
+ if (freqMap == null) {
+ LOG.warn("No frequency map for node {}", node);
+ this.valid = false;
+ return;
+ }
+ long wlIndex = 1;
+ for (int i = 0; i < freqMap.length; i++) {
+ if (freqMap[i] == (byte)GridConstant.AVAILABLE_SLOT_VALUE) {
+ LOG.debug("Adding channel {} to available wave length index",wlIndex);
+ this.availableWLindex.add(wlIndex);
+ }
+ wlIndex++;
+ }
+ }