/// <summary> /// clear the old data in sydb, then load new data from input file /// </summary> /// <param name="filefullname"></param> public static void ReloadGlobalSydb(string filefullname) { GENERIC_SYSTEM_PARAMETERS sydbdata = FileLoader.Load <GENERIC_SYSTEM_PARAMETERS>(filefullname); SyDB sydb = SyDB.GetInstance(); sydb.clear(); sydb.LoadData(sydbdata); }
public void LoadData(GENERIC_SYSTEM_PARAMETERS t) { data = t; ibbmInfoList = t.Implementation_Beacon_Block_Mode.BM_Beacon; signalInfoList = t.Signals.Signal; pointInfoList = t.Points.Point; overlapInfoList = t.Overlaps.Overlap; switchInfoList = t.Switchs.Switch; sddbInfoList = t.Secondary_Detection_Device_Boundarys.Secondary_Detection_Device_Boundary; sddInfoList = t.Secondary_Detection_Devices.Secondary_Detection_Device; routeInfoList = t.Routes.Route; blockInfoList = t.Blocks.Block; }