毕业论文

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

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

时间:2017-02-26 15:55来源:毕业论文
Ball NewBall = new Ball(M.LeftTime, myDistance.DistanceTime - 1, false); LBdown.Add(NewBall); } //处理抛小球消耗时间 M.ForbidTime += M.LeftTime; VarTime +=M.LeftTime; //注意这一句 M.Left


                        Ball NewBall = new Ball(M.LeftTime, myDistance.DistanceTime - 1, false);
                        LBdown.Add(NewBall);
                    }
                    //处理抛小球消耗时间
                    M.ForbidTime += M.LeftTime;
                    VarTime +=M.LeftTime;
                    //注意这一句
                    M.LeftTime = 0;
                    //处理/改变 人绿周期
                    if (VarTime<=M.LowTime)
                    {
                        M.GreenTime = M.LowTime;
                    }
                    else if (VarTime>M.LowTime&&VarTime<=M.UpTime)
                    {
                        M.GreenTime = VarTime;
                    }
                    //处理绿状态下的禁止时间中的球的效益计算
                    M.GreenEfficiency = 0;
                }
                //手中的球质量小于可支配时间
                else if(M.LeftTime>VarLeftTime)
                {
                    //抛出小球
                    if (M.LeftOrRight)
                    {
                        Ball NewBall = new Ball(VarLeftTime, 1, true);
                        LBup.Add(NewBall); 基于抛球模型的交通信号控制互动关系研究(11):http://www.youerw.com/zidonghua/lunwen_3407.html
------分隔线----------------------------
推荐内容