Message Plot Listener Module
- class mtf.test_utilities.hil_plotting.message_plot_listener.MessagePlotListener
- __init__()
- start(message_full_path_name: str) bool
Start the listener for a specific message.
- Returns:
bool: True if the listener on this message has started successfully. Otherwise, False.
- stop(message_full_path_name: str) bool
Stop the listener for a specific message.
- Returns:
bool: True if the listener on this message has stopped successfully. Otherwise, returns False.
- read_plot_topology(topology_path: str, log_path: str) bool
Read and parse the plot topology.
- Args:
topology_path (str): the path of the plot topology log_path (str): the path of the log folder
- Returns:
bool: True if the topology has been parsed successfully. Otherwise False.
- file_writer()
A method that will work in background to save records in a temporary file in order to save memory.
- start_all_message_listeners() bool
Start listeners for all messages given in the plot topology
- Returns:
bool: True if all listeners have started successfully. Otherwise False.
- stop_all_message_listeners() bool
Stop listeners for all messages given in the plot topology
- Returns:
bool: True if all listeners have stopped successfully. Otherwise False.
- get_all_message_listeners_records() bool
Get all records from temporary files and queues.
- Returns:
bool: True if all records are gotten. Otherwise, False.
- clear_message_plot_listener()
- plot_all_message_records(html_logger) Tuple[str, str]
Plot the variation of all messages given in the plot topology.
- Args:
html_logger (HTMLLogger): a HTML logger for logging the plots
- Returns:
Tuple[str, str]: the paths of the generated html plots (reception event and time difference plots).