mobile_insight.analyzer.protocol_analyzer module¶
A protocol analyzer abstraction.
Author: Yuanjie Li
- class mobile_insight.analyzer.protocol_analyzer.ProtocolAnalyzer¶
Bases:
mobile_insight.analyzer.analyzer.Analyzer
A protocol analyzer abstraction. Compared with basic analyzer, ProtocolAnalyzer has three built-in functions
State machine dynamics
Profile
Failure flags
- __update_state(msg)¶
Update states in response to cellular events
- Parameters
msg – the event (message) from the trace collector.
- create_profile_hierarchy()¶
Declare a protocol-specific ProfileHierarchy
returns: ProfileHierarchy based on protocol-specific parameters
- create_state_machine()¶
Declare a state machine
returns: a dictinoary that describes the states and transition conditions
- declare_failure_flag()¶
Initialize failure flags
- get_protocol_state()¶
Returns protocol’s current state
- Returns
current state_machine
- init_protocol_state(msg)¶
At bootstrap, determine the protocol’s current state
- Returns
a string of current state