毕业论文

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

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

时间:2017-02-26 15:55来源:毕业论文
{ LM[i].GreenCount++; OperationAllBall(LM[i], LBup, LBdown); } else if (LM[i].GreenCount == LM[i].GreenTime)//绿色结束,红色开始 { LM[i].RedCount = 0; LM[i].GreenCount = 0; LM[i].RedCount++;


                {

                    LM[i].GreenCount++;
                    OperationAllBall(LM[i], LBup, LBdown);
                }
                else if (LM[i].GreenCount == LM[i].GreenTime)//绿色结束,红色开始
                {
                    LM[i].RedCount = 0;
                    LM[i].GreenCount = 0;
                    LM[i].RedCount++;
                    OperationAllBall(LM[i], LBup, LBdown);
                }
                else if (LM[i].RedCount > 0 && LM[i].RedCount < LM[i].RedTime)//红色过程,除去开始和结束的那两秒
                {
                    LM[i].RedCount++;
                    OperationAllBall(LM[i], LBup, LBdown);
                }
                else if (LM[i].RedCount == LM[i].RedTime)//绿色开始,红色结束
                {
                    if (!LM[i].Model)//见球就抛模式
                    {
                        LM[i].RedTime = LM[i].GreenTime = LM[i].LowTime;
                    }
                    LM[i].GreenCount = 0;
                    LM[i].RedCount = 0;
                    LM[i].GreenCount++;
                    OperationAllBall(LM[i], LBup, LBdown);
                }

                //if (LM[i].Model)//见球就抛模式
                //处理人的禁止抛球时间
                if (LM[i].ForbidTime > 0) 基于抛球模型的交通信号控制互动关系研究(13):http://www.751com.cn/zidonghua/lunwen_3407.html
------分隔线----------------------------
推荐内容