Class RandomTxPowerInitializer
- java.lang.Object
-
- com.facebook.openwifi.rrm.optimizers.tpc.TPC
-
- com.facebook.openwifi.rrm.optimizers.tpc.RandomTxPowerInitializer
-
public class RandomTxPowerInitializer extends TPC
Random tx power initializer.Random picks a single tx power and assigns the value to all APs.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ALGORITHM_ID
The RRM algorithm ID.static boolean
DEFAULT_SET_DIFFERENT_TX_POWER_PER_AP
Default value for setDifferentTxPowerPerAp-
Fields inherited from class com.facebook.openwifi.rrm.optimizers.tpc.TPC
DEFAULT_TX_POWER_CHOICES, deviceConfigs, MAX_TX_POWER, MIN_TX_POWER, model, zone
-
-
Constructor Summary
Constructors Constructor Description RandomTxPowerInitializer(Modeler.DataModel model, String zone, DeviceDataManager deviceDataManager)
Constructor (uses random tx power per AP and allows passing in a custom Random class to allow seeding).RandomTxPowerInitializer(Modeler.DataModel model, String zone, DeviceDataManager deviceDataManager, boolean setDifferentTxPowerPerAp)
Constructor (uses random tx power per AP).RandomTxPowerInitializer(Modeler.DataModel model, String zone, DeviceDataManager deviceDataManager, boolean setDifferentTxPowerPerAp, Random rng)
Constructor (uses random tx power per AP and allows passing in a custom Random class to allow seeding).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Map<String,Integer>>
computeTxPowerMap()
Compute tx power assignments.static RandomTxPowerInitializer
makeWithArgs(Modeler.DataModel model, String zone, DeviceDataManager deviceDataManager, Map<String,String> args)
Factory method to parse generic args map into the proper constructor-
Methods inherited from class com.facebook.openwifi.rrm.optimizers.tpc.TPC
getApsPerChannel, updateDeviceApConfig, updateTxPowerChoices
-
-
-
-
Field Detail
-
ALGORITHM_ID
public static final String ALGORITHM_ID
The RRM algorithm ID.- See Also:
- Constant Field Values
-
DEFAULT_SET_DIFFERENT_TX_POWER_PER_AP
public static final boolean DEFAULT_SET_DIFFERENT_TX_POWER_PER_AP
Default value for setDifferentTxPowerPerAp- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RandomTxPowerInitializer
public RandomTxPowerInitializer(Modeler.DataModel model, String zone, DeviceDataManager deviceDataManager)
Constructor (uses random tx power per AP and allows passing in a custom Random class to allow seeding).
-
RandomTxPowerInitializer
public RandomTxPowerInitializer(Modeler.DataModel model, String zone, DeviceDataManager deviceDataManager, boolean setDifferentTxPowerPerAp)
Constructor (uses random tx power per AP).
-
RandomTxPowerInitializer
public RandomTxPowerInitializer(Modeler.DataModel model, String zone, DeviceDataManager deviceDataManager, boolean setDifferentTxPowerPerAp, Random rng)
Constructor (uses random tx power per AP and allows passing in a custom Random class to allow seeding).
-
-
Method Detail
-
makeWithArgs
public static RandomTxPowerInitializer makeWithArgs(Modeler.DataModel model, String zone, DeviceDataManager deviceDataManager, Map<String,String> args)
Factory method to parse generic args map into the proper constructor
-
-