Class UCentralApConfiguration


  • public class UCentralApConfiguration
    extends Object
    Wrapper around uCentral AP configuration.
    • Constructor Detail

      • UCentralApConfiguration

        public UCentralApConfiguration​(String configJson)
        Constructor from JSON string.
      • UCentralApConfiguration

        public UCentralApConfiguration​(com.google.gson.JsonObject config)
        Constructor from JsonObject (makes deep copy).
    • Method Detail

      • toString

        public String toString​(com.google.gson.Gson gson)
        Serialize the configuration to JSON using the given Gson instance.
      • getRadioCount

        public int getRadioCount()
        Return the number of radios, or -1 if the field is missing/malformed.
      • getRadioConfigList

        public List<UCentralSchema.Radio> getRadioConfigList()
        Return all info in the radio config (or an empty list if none).
      • getRadioBandsSet

        public Set<String> getRadioBandsSet​(List<UCentralSchema.Radio> radioConfigList)
        Return all the operational bands of an AP (from the radio config)
      • getRadioConfig

        public com.google.gson.JsonObject getRadioConfig​(int index)
        Return the radio config at the given index, or null if invalid.
      • setRadioConfig

        public void setRadioConfig​(int index,
                                   com.google.gson.JsonObject radioConfig)
        Set radio config at the given index. Adds empty objects as needed.
      • getStatisticsInterval

        public int getStatisticsInterval()
        Return the statistics interval (in seconds), or -1 if the field is missing/malformed.
      • setStatisticsInterval

        public void setStatisticsInterval​(int intervalSec)
        Set the statistics interval to the given value (in seconds).