Class TPC

    • Field Detail

      • MIN_TX_POWER

        public static final int MIN_TX_POWER
        Minimum supported tx power (dBm), inclusive.
        See Also:
        Constant Field Values
      • MAX_TX_POWER

        public static final int MAX_TX_POWER
        Maximum supported tx power (dBm), inclusive.
        See Also:
        Constant Field Values
      • DEFAULT_TX_POWER_CHOICES

        public static final List<Integer> DEFAULT_TX_POWER_CHOICES
        Default tx power choices.
      • zone

        protected final String zone
        The RF zone.
      • deviceConfigs

        protected final Map<String,​DeviceConfig> deviceConfigs
        The device configs within zone, keyed on serial number.
    • Method Detail

      • updateTxPowerChoices

        protected List<Integer> updateTxPowerChoices​(String band,
                                                     String serialNumber,
                                                     List<Integer> txPowerChoices)
        Determine the new tx power choices based on user and allowed channels from deviceConfig.
        Parameters:
        band - the operational band
        serialNumber - the device's serial number
        txPowerChoices - the device's available tx powers
        Returns:
        the device's updated tx powers
      • computeTxPowerMap

        public abstract Map<String,​Map<String,​Integer>> computeTxPowerMap()
        Compute tx power assignments. This is the core method of this class.
        Returns:
        the map of devices (by serial number) to radio to tx power
      • updateDeviceApConfig

        public void updateDeviceApConfig​(DeviceDataManager deviceDataManager,
                                         ConfigManager configManager,
                                         Map<String,​Map<String,​Integer>> txPowerMap)
        Program the given tx power map into the AP config.
        Parameters:
        deviceDataManager - the DeviceDataManager instance
        configManager - the ConfigManager instance
        txPowerMap - the map of devices (by serial number) to radio to tx power
      • getApsPerChannel

        protected Map<String,​Map<Integer,​List<String>>> getApsPerChannel()
        Get AP serial numbers per channel.
        Returns:
        map from band to channel to list of AP serial numbers