SignalPlotListener

class mtf.test_utilities.hil_plotting.signal_plot_listener.SignalPlotListener
__init__()
start(signal_full_path_name: str) bool

Start the listener for a specific signal.

Returns:

bool: True if the listener on this signal has started successfully. Otherwise, False.

stop(signal_full_path_name: str) bool

Stop the listener for a specific signal.

Returns:

bool: True if the listener on this signal has stopped successfully. Otherwise 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_signal_listeners() bool

Start listeners for all signals given in the plot topology

Returns:

bool: True if all listeners have started successfully. Otherwise False.

stop_all_signal_listeners() bool

Stop listeners for all signals given in the plot topology

Returns:

bool: True if all listeners have stopped successfully. Otherwise False.

get_all_signal_listeners_records() bool

Get all records from temporary files and queues.

Returns:

bool: True if all records are gotten. Otherwise, False.

clear_signal_plot_listener()
plot_all_signal_records(html_logger) str

Plot the variation of all signals given in the plot topology.

Args:

html_logger (HTMLLogger): a HTML logger for logging the plots

Returns:

str: the path of the generated html plot