コード例 #1
0
        public void GatherParallel()
        {
            // hierch
            Hashtable htPar = new Hashtable();

            LCS.LCSFinder f = new LCSFinder();

            foreach (string cls in m_htClassHierchs.Keys)
            {
                //ClassHierarchy ch = m_htClassHierchs[ cls ];
            }
        }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                long news_ID = 0;
                if (!string.IsNullOrEmpty(Request.QueryString["nid"]))
                {
                    news_ID = Convert.ToInt64(Request.QueryString["nid"]);
                }
                if (news_ID > 0)
                {
                    NewsRow objNewsRow    = NewsEditHelper.GetNewsInfo_News(news_ID, false);
                    NewsRow objNewsRow_Ex = NewsEditHelper.GetNewsInfo_NewsExtension(news_ID, false);

                    string title   = LCSFinder.GetEditor(objNewsRow.News_Title, objNewsRow_Ex.News_Title)[0];
                    string Sapo    = LCSFinder.GetEditor(objNewsRow.News_InitialContent, objNewsRow_Ex.News_InitialContent)[0];
                    string Content = LCSFinder.GetEditor(objNewsRow.News_Content, objNewsRow_Ex.News_Content)[0];
                    ltrTitle.Text   = title;
                    ltrInit.Text    = Sapo;
                    ltrContent.Text = Content;
                }
            }
        }
コード例 #3
0
        public void LCS_first_Test()
        {
            List <string> O = new List <string>(new string[5] {
                "1", "2", "3", "4", "10"
            });
            List <string> A = new List <string>(new string[11] {
                "0", "1", "1.5", "2", "3", "4", "4.5", "5", "10", "11", "12"
            });
            List <string> B = new List <string>(new string[10] {
                "1", "4", "4.1", "4.2", "4.3", "4.4", "5", "8", "9", "10"
            });

            /*List<string> expectation = new List<string>(new string[27] { "0", "1",
             *                            "================================ Overlapping ================================",
             *                                        "================================    FileA    ================================",
             *                            "1.5", "2", "3",
             *                            "================================    FileO    ================================",
             *                            "2", "3",
             *                            "================================     End     ================================",
             *                            "4",
             *                            "================================ Overlapping ================================",
             *                                        "================================    FileA    ================================",
             *                            "4.5",
             *                            "================================    FileB    ================================",
             *                            "4.1", "4.2", "4.3", "4.4",
             *                            "================================     End     ================================",
             *                            "5","8","9","10","11","12"});
             */
            List <string> R;

            LCSFinder finder = new LCSFinder();

            R = finder.findLCS(A, O);

            //CollectionAssert.AreEqual(expectation, R);
        }