Package com.facebook.openwifi.cloudsdk
Class AggregatedState
- java.lang.Object
-
- com.facebook.openwifi.cloudsdk.AggregatedState
-
public class AggregatedState extends Object
Aggregation model for State aggregation. Only contains info useful for analysis.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AggregatedState.AssociationInfo
Data model to keep raw data fromState.Interface.SSID.Association
,State.Radio
andState.Interface.Counters
.static class
AggregatedState.RadioConfig
Radio information with channel, channel_width and tx_power.
-
Field Summary
Fields Modifier and Type Field Description List<AggregatedState.AssociationInfo>
associationInfoList
String
bssid
AggregatedState.RadioConfig
radioConfig
String
station
-
Constructor Summary
Constructors Constructor Description AggregatedState()
Constructor with no args.AggregatedState(State.Interface.SSID.Association association, State.Interface.Counters counters, com.google.gson.JsonObject radio, long timestamp)
Construct from Association, Counters, Radio and time stamp
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(AggregatedState state)
Add an AggregatedState to this AggregatedState.boolean
matchesForAggregation(AggregatedState state)
Check whether the passed-in AggregatedState and this one match for aggregation.
-
-
-
Field Detail
-
bssid
public String bssid
-
station
public String station
-
radioConfig
public AggregatedState.RadioConfig radioConfig
-
associationInfoList
public List<AggregatedState.AssociationInfo> associationInfoList
-
-
Constructor Detail
-
AggregatedState
public AggregatedState()
Constructor with no args. For test purpose.
-
AggregatedState
public AggregatedState(State.Interface.SSID.Association association, State.Interface.Counters counters, com.google.gson.JsonObject radio, long timestamp)
Construct from Association, Counters, Radio and time stamp
-
-
Method Detail
-
matchesForAggregation
public boolean matchesForAggregation(AggregatedState state)
Check whether the passed-in AggregatedState and this one match for aggregation. If the two match in bssid, station and radio. Then they could be aggregated.- Parameters:
state
- the reference AggregatedState with which to check with.- Returns:
- boolean return true if the two matches for aggregation.
-
add
public boolean add(AggregatedState state)
Add an AggregatedState to this AggregatedState. Succeed only when the two match for aggregation.- Parameters:
state
- input AggregatedState- Returns:
- boolean true if the two match in bssid, station, channel, channel_width and tx_power
-
-