毕业论文

打赏
当前位置: 毕业论文 > 自动化 >

基于抛球模型的交通信号控制互动关系研究(10)

时间:2017-02-26 15:55来源:毕业论文
else { Ball NewBall = new Ball(M.GreenTime - M.GreenCount + 1, myDistance.DistanceTime - 1, false); LBdown.Add(NewBall); } M.ForbidTime = M.GreenTime - M.GreenCount + 1;//禁止时间长度=抛出小球


                    else
                    {
                        Ball NewBall = new Ball(M.GreenTime - M.GreenCount + 1, myDistance.DistanceTime - 1, false);
                        LBdown.Add(NewBall);
                    }
                    M.ForbidTime = M.GreenTime - M.GreenCount + 1;//禁止时间长度=抛出小球的质量时间
                    M.LeftTime = M.LeftTime - M.ForbidTime;
                    M.IsForbid = true;//禁止抛出小球
                }
                M.GreenEfficiency = 0;
            }
            else
            {
                M.GreenEfficiency = M.LeftTime;
            }

        }

// 处理见球就抛模式
        private void OprationAnother(Man M)
        {
            int VarTime = M.GreenCount - 1 + M.ForbidTime;//已耗时间
            int VarLeftTime = M.UpTime - VarTime;//剩余可支配时间
            if (VarLeftTime>0)
            {
                //手中的球质量小于可支配时间
                if (M.LeftTime<=VarLeftTime)
                {
                    //抛出小球
                    if (M.LeftOrRight)
                    {
                        Ball NewBall = new Ball(M.LeftTime, 1, true);
                        LBup.Add(NewBall);
                    }
                    else
                    { 基于抛球模型的交通信号控制互动关系研究(10):http://www.youerw.com/zidonghua/lunwen_3407.html
------分隔线----------------------------
推荐内容