reactor-c
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
fedsd.py File Reference

Namespaces

namespace  fedsd
 

Functions

 fedsd.svg_string_draw_line (x1, y1, x2, y2, type='')
 Routines to get svg descriptions.
 
 fedsd.svg_string_draw_arrow_head (x1, y1, x2, y2, type='')
 
 fedsd.svg_string_draw_label (x1, y1, x2, y2, label)
 
 fedsd.svg_string_draw_arrow (x1, y1, x2, y2, label, type='')
 
 fedsd.svg_string_draw_side_label (x, y, label, anchor="start")
 
 fedsd.svg_string_comment (comment)
 
 fedsd.svg_string_draw_dot (x, y, label)
 
 fedsd.svg_string_draw_dot_with_time (x, y, time, label)
 
 fedsd.svg_string_draw_adv (x, y, label)
 
 fedsd.load_and_process_csv_file (csv_file)
 Routines to process lft and csv files.
 
 fedsd.command_is_in_path (command)
 
 fedsd.convert_lft_file_to_csv (lft_file, start_time, end_time)
 
 fedsd.get_and_convert_lft_files (rti_lft_file, federates_lft_files, start_time, end_time)
 

Variables

str fedsd.css_style
 
dict fedsd.prune_event_name
 
 fedsd.parser = argparse.ArgumentParser(description='Set of the lft trace files to render.')
 
 fedsd.type
 
 fedsd.help
 
 fedsd.nargs
 
 fedsd.str
 
dict fedsd.non_tagged_messages = {'FED_ID', 'ACK', 'RESIGN', 'FAILED', 'REJECT', 'ADR_QR', 'ADR_AD', 'MSG', 'P2P_MSG'}
 
 fedsd.args = parser.parse_args()
 
 fedsd.rti_csv_file
 
 fedsd.federates_csv_files
 
dict fedsd.x_coor = {}
 
list fedsd.actors = []
 
dict fedsd.actors_names = {}
 
int fedsd.padding = 50
 
int fedsd.spacing = 200
 
 fedsd.trace_df = pd.DataFrame()
 
 fedsd.fed_df = load_and_process_csv_file(fed_trace)
 Federates trace processing.
 
 fedsd.fed_id = fed_df.iloc[-1]['self_id']
 
 fedsd.rti_df = load_and_process_csv_file(rti_csv_file)
 RTI trace processing, if any.
 
 fedsd.columns
 
int fedsd.ppt = 0
 Compute the 'y1' coordinates.
 
int fedsd.cpt = 0
 
int fedsd.py = 0
 
int fedsd.min = 15
 
int fedsd.scale = 1
 
bool fedsd.first_pass = True
 
 fedsd.self_id = trace_df.at[index,'self_id']
 
 fedsd.partner_id = trace_df.at[index,'partner_id']
 
 fedsd.event = trace_df.at[index,'event']
 
 fedsd.logical_time = trace_df.at[index, 'logical_time']
 
 fedsd.microstep = trace_df.at[index, 'microstep']
 
 fedsd.inout = trace_df.at[index, 'inout']
 
 fedsd.matching_df
 
 fedsd.matching_index = matching_df.index[0]
 
 fedsd.matching_row = matching_df.loc[matching_index]
 
int fedsd.svg_width = padding * 2 + (len(actors) - 1) * spacing + padding * 2 + 200
 Write to svg file.
 
int fedsd.svg_height = padding + trace_df.iloc[-1]['y1']
 
 fedsd.encoding
 
dict fedsd.title = actors_names[key]
 
int fedsd.center = 15
 
str fedsd.anchor = 'start'
 
str fedsd.physical_time = f'{int(row["physical_time"]/1000):,}'
 
 fedsd.label = row['event']
 
 fedsd.index