{
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.youerw.com/zidonghua/lunwen_3407.html