import os
from AnalyzeLog import trans_2_amc_json, trans_2_pl_json, trans_2_calc_pl_json
from GenerateChart import generate_ulThroughput
import json
data_line_num = 22
origin_log = 'a.txt'
amc_json = 'amc.json'
pl_json = 'pl.json'
calc_pl_json = 'calc_pl.json'
trans_2_amc_json(origin_log, data_line_num, amc_json)
trans_2_pl_json(amc_json, pl_json)
trans_2_calc_pl_json(pl_json, calc_pl_json)
generate_ulThroughput(calc_pl_json)