Exemplo n.º 1
0
        private static void Match()
        {
            AddrSet addrset = AddrSet.GetInstance();

            //Match
            MatchMachine m = new MatchMachine(addrset);

            MatchResult result = m.Match(new string[] { "B" });

            MatchHelper.rwLockDashboard(addrset);
        }
Exemplo n.º 2
0
        public void Match()
        {
            //start
            AddrSet addrset = AddrSet.GetInstance();

            //Match
            MatchMachine m = new MatchMachine(addrset);

            // Custom the MatchRule
            //m.SetMatchRule(rule);

            MatchResult result = m.Match(new string[] { "B" });


            MatchHelper.PrintResult(result);

            //close
            //addrset.Dump();
        }
Exemplo n.º 3
0
        public DemoTest()
        {
            //start
            AddrSet addrset = AddrSet.GetInstance();

            //Match
            MatchMachine m = new MatchMachine(addrset);

            MatchResult result = m.Match(new string[] { "B" });

            MatchHelper.PrintResult(result);

            //Train   ----------TODO

            //close
            //addrset.Dump();

            TableNode t = AddrSet.AddrGraph.NodeTable["B"] as TableNode;
            bool flag = result.Result.Equals(t.GNode);
            Console.WriteLine("XXX  " + flag);
        }
Exemplo n.º 4
0
        public DemoTest()
        {
            //start
            AddrSet addrset = AddrSet.GetInstance();

            //Match
            MatchMachine m = new MatchMachine(addrset);

            MatchResult result = m.Match(new string[] { "B" });


            MatchHelper.PrintResult(result);

            //Train   ----------TODO


            //close
            //addrset.Dump();

            TableNode t    = AddrSet.AddrGraph.NodeTable["B"] as TableNode;
            bool      flag = result.Result.Equals(t.GNode);

            Console.WriteLine("XXX  " + flag);
        }