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. Graphical Data Representation in Bankruptcy Analysis
2. Financial Markets and International Risk Sharing
3. The name is absent
4. The name is absent
5. Who’s afraid of critical race theory in education? a reply to Mike Cole’s ‘The color-line and the class struggle’
6. The name is absent
7. The name is absent
8. The name is absent
9. Optimal Private and Public Harvesting under Spatial and Temporal Interdependence
10. WP RR 17 - Industrial relations in the transport sector in the Netherlands