Package com.facebook.openwifi.rrm
Class DeviceConfig
- java.lang.Object
-
- com.facebook.openwifi.rrm.DeviceConfig
-
public class DeviceConfig extends Object
AP configuration model.Implementation notes:
- Fields must be nullable (no primitives, use boxed types instead).
- This currently does not support merging of nested structures.
-
-
Field Summary
Fields Modifier and Type Field Description Map<String,List<Integer>>
allowedChannels
The list of allowed channels, or null to allow all (map from band to channel)Map<String,List<Integer>>
allowedChannelWidths
The list of allowed channel widths, or null to allow all (map from band to channel)Map<String,List<Integer>>
allowedTxPowers
The list of allowed tx powers, or null to allow all (map from band to tx power)Map<String,Integer>
autoChannels
The RRM-assigned channels to use (map from radio to channel)Map<String,Integer>
autoTxPowers
The RRM-assigned tx powers to use (map from band to tx power)Integer
boundary
The length of a square/cube for the target area (seelocation
)Boolean
enableConfig
Whether pushing device config is enabledBoolean
enableRRM
Whether RRM algorithms are enabledBoolean
enableWifiScan
Whether automatic wifi scans are enabledList<Integer>
location
The AP location either 2D or 3DRRMSchedule
schedule
The RRM schedule (if enabled), only applied at the zone or network layerMap<String,Integer>
userChannels
The user-assigned channels to use, overriding "autoChannels" (map from band to channel)Map<String,Integer>
userTxPowers
The user-assigned tx powers to use, overriding "autoTxPowers"
-
Constructor Summary
Constructors Constructor Description DeviceConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(DeviceConfig override)
Merge all non-null public fields of the given object into this object (via reflection).static DeviceConfig
createDefault()
Create the default config.boolean
isEmpty()
Return true if all public instance fields are null (via reflection).
-
-
-
Field Detail
-
enableRRM
public Boolean enableRRM
Whether RRM algorithms are enabled
-
schedule
public RRMSchedule schedule
The RRM schedule (if enabled), only applied at the zone or network layer
-
enableConfig
public Boolean enableConfig
Whether pushing device config is enabled
-
enableWifiScan
public Boolean enableWifiScan
Whether automatic wifi scans are enabled
-
allowedChannels
public Map<String,List<Integer>> allowedChannels
The list of allowed channels, or null to allow all (map from band to channel)
-
allowedChannelWidths
public Map<String,List<Integer>> allowedChannelWidths
The list of allowed channel widths, or null to allow all (map from band to channel)
-
autoChannels
public Map<String,Integer> autoChannels
The RRM-assigned channels to use (map from radio to channel)
-
userChannels
public Map<String,Integer> userChannels
The user-assigned channels to use, overriding "autoChannels" (map from band to channel)
-
allowedTxPowers
public Map<String,List<Integer>> allowedTxPowers
The list of allowed tx powers, or null to allow all (map from band to tx power)
-
autoTxPowers
public Map<String,Integer> autoTxPowers
The RRM-assigned tx powers to use (map from band to tx power)
-
-
Method Detail
-
createDefault
public static DeviceConfig createDefault()
Create the default config.
-
isEmpty
public boolean isEmpty()
Return true if all public instance fields are null (via reflection).
-
apply
public void apply(DeviceConfig override)
Merge all non-null public fields of the given object into this object (via reflection).
-
-