The name is absent



APPENDIX A. SOURCE CODE

79


int platoonRuCntAvg = 0;

for ( int j = 0; j < tld [i ]. length ; j++)

if ( tld [i ][j ]. getTL (). getCycleSwitched()==getCurCycle()-1)
switched = true ;

// set flag and reset kappa

if ( switched) {

if (! tld [i ][0]. getTL (). getNode (). getKeepTLDFlag()) {

tld [i ][0]. getTL (). getNode (). setKeepTLDFlag(true);

tld [i ][0]. getTL (). getNode (). setPhaseMinimal(PHASE_MIN);

for ( int j = 0; j < tld [ i ]. length ; j ++)

if ( tld [ i ][ j ]. getTL (). getState ())
tld [i ][ j ]. setKappa (0);

}

}

// check if platoon is crossing .

for ( int j = 0; j < tld [i ]. length ; j++)

// if tl is green

if ( tld [ i ][ j ]. getTL (). getState ()) {

PlatoonRoaduserCount += countRoadusers(tld [i ][ j ]. getTL (). getLane (), OMEGA);

nrOfPlatoonLanes += 1;

}

if (nrOfPlatoonLanes>0) {

platoonRuCntAvg = platoonRoaduserCount/nrOfPlatoonLanes;

if (platoonRuCntAvg >= 1 && platoonRuCntAvg <= MU){
platoonCrossing = true ;

}

if ( tld [i ]. length >=1)

tld [i ][0]. getTL (). getNode (). setPlatoonCrossing ( platoonCrossing );
}

}



More intriguing information

1. Volunteering and the Strategic Value of Ignorance
2. The name is absent
3. Cultural Diversity and Human Rights: a propos of a minority educational reform
4. 03-01 "Read My Lips: More New Tax Cuts - The Distributional Impacts of Repealing Dividend Taxation"
5. The name is absent
6. LAND-USE EVALUATION OF KOCAELI UNIVERSITY MAIN CAMPUS AREA
7. Evaluating the Impact of Health Programmes
8. The Role of Evidence in Establishing Trust in Repositories
9. Citizenship
10. The Mathematical Components of Engineering