示例#1
0
        /// <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);
        }
示例#2
0
        void test_generate()
        {
            List <LEU>    leulist = new List <LEU>();
            List <BEACON> blist   = new List <BEACON>();
            BMVFGen       bmvf    = new BMVFGen(false, ref blist, ref leulist);

            sydb.clear();
            Debug.Assert(false == bmvf.Generate(".//output"));//lack load data, so generate return false

            Prepare.ReloadGlobalSydb(".//input//BMVF_FromZJ.xml");
            BFGen bf = new BFGen(".//input//BMVF_FromZJ.csv", "", "", false, false);

            MethodHelper.InvokePrivateMethod <BFGen>(bf, "Init");

            Debug.Assert(true == bmvf.Generate(".//output"));  // generate BMVF file.
            Debug.Assert(true == File.Exists(".//output//BMV//block_mode_variants_file.xml"));
        }