Exemplo n.º 1
0
        //搜索相关的词语
        public Word serchofword(serchdatanode mm, string m2)
        {
            Word mword = mm.getuser_work();

            if (mword.getWord() == m2)
            {
                return(mword);
            }
            else
            {
                return(serchofword(mm.getnextserchdatanode(), m2));
            }
        }//
Exemplo n.º 2
0
        //属性的转换成数字

        //huoquzuidazhi


        //添加文章
        public Boolean addserchdatanode(Word am)
        {
            if (this.nextserchdatanode == null)
            {
                serchdatanode mma = new serchdatanode(am);

                this.nextserchdatanode = mma;
                return(true);
            }
            else
            {
                return(false);
            }
        }//添加商品
Exemplo n.º 3
0
        //删除节点


        public Boolean deletenode(serchdatanode mm, float gailv)
        {
            Word mword = mm.getuser_work();

            if (mword.getChance() < gailv)
            {
                serchdatanode beforenode = mm.getbfserchdatanode();
                beforenode.setnextserchdatanode(mm.getnextserchdatanode());
                mm = null;
                return(true);
            }
            else
            {
                return(deletenode(mm.getnextserchdatanode(), gailv));
            }
        }
Exemplo n.º 4
0
        //添加数据文章
        public Boolean addnewdata(Word nn, serchdatanode ff)
        {
            if (ff.getuser_work() == null)
            {
                ff.setuser_work(nn);
                return(true);
            }
            else
            {
                serchdatanode na = ff.getnextserchdatanode();
                if (na == null)
                {
                    na = new serchdatanode(nn);
                    return(true);
                }
                else
                {
                    return(addnewdata(nn, na));
                }

                // return false;
            }
        }
Exemplo n.º 5
0
        }//添加商品

        public void setnextserchdatanode(serchdatanode mm)
        {
            this.nextserchdatanode = mm;
        }
Exemplo n.º 6
0
 public serchdatanode(string name)
 {
     this.nextserchdatanode = null;
     this.mwork             = new Word(name);
 }
Exemplo n.º 7
0
 public serchdatanode()
 {
     this.nextserchdatanode = null;
     this.befserchdatanode  = null;
     this.mwork             = null;
 }
Exemplo n.º 8
0
 public serchdatanode(Word mk)
 {
     this.nextserchdatanode = null;
     this.befserchdatanode  = null;
     this.mwork             = mk;
 }
Exemplo n.º 9
0
        private Word mwork;                      //词语



        public void setbfsetchdatanode(serchdatanode mma)
        {
            this.befserchdatanode = mma;
        }
Exemplo n.º 10
0
 public serchdatasmessage(Word kk)
 {
     this.mserchdatanode = new serchdatanode(kk);
 }
Exemplo n.º 11
0
        public serchdatasmessage()
        {
            this.mserchdatanode = new serchdatanode();

            this.lastserchdatanode = this.mserchdatanode;
        }
Exemplo n.º 12
0
 public serchdatasmessage(serchdatanode mm)
 {
     this.mserchdatanode = mm;
 }