Changeset 1123 for applications/doprava/aimsun_bdm
- Timestamp:
- 06/30/10 14:00:13 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/doprava/aimsun_bdm/aimsun_ds.cpp
r1089 r1123 45 45 16, 17, 18, 19, 20, 14, 15, // 495_QE 46 46 16, 17, 18, 19, 20, 12, 13, // 495_QF 47 21, 22, 23, 24, 25, 40, 21, 22, 23, 24, 25, 40, // 601_QA 48 43, 44, 43, 44, 42, // 601_QB (bus terminal) 47 21, 22, 23, 24, 25, 40, // 601_QA1 (inner lane) 48 21, 22, 23, 24, 25, 40, // 601_QA2 (outer lane) 49 43, 44, // 601_QB1 (bus terminal, inner) 50 43, 44, 42, // 601_QB2 (bus terminal, outer) 49 51 45, 49, 50, // 601_QC 50 52 45, 49, 51, // 601_QD … … 60 62 2, 2, 2, 2, 2, 1, 1, // 495_QE 61 63 1, 1, 1, 1, 1, 1, 1, // 495_QF 62 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, // 601_QA 63 2, 2, 1, 1, 1, // 601_QB (bus terminal) 64 2, 2, 2, 2, 2, 2, // 601_QA1 (inner lane) 65 1, 1, 1, 1, 1, 1, // 601_QA2 (outer lane) 66 2, 2, // 601_QB1 (bus terminal, inner) 67 1, 1, 1, // 601_QB2 (bus terminal, outer) 64 68 1, 1, 1, // 601_QC 65 69 2, 2, 1, // 601_QD … … 74 78 int LaneQueueOffsets[] = { 75 79 0, 5, 8, 13, 20, 27, 76 34, 4 6, 51, 54, 57, 62, NumLaneQueuesSectIds };80 34, 40, 46, 48, 51, 54, 57, 62, NumLaneQueuesSectIds }; 77 81 78 82 /* The position of the statistics is given by the indices in the StatIds … … 89 93 const int SignalPlanOffsets[] = { 0, 42 }; 90 94 const int QueueLengthOffsets[] = { 6, 48 }; 91 const int MeasurementOffsets[] = { 12, 5 4};95 const int MeasurementOffsets[] = { 12, 56 }; 92 96 93 97 AimsunDS::AimsunDS () : DS() … … 100 104 "495_S1 495_S2 495_S3 495_S4 495_S5 495_S5a " 101 105 "601_VA 601_VB 601_VC 601_VD 601_VE 601_SE " 102 "601_QA 601_QB601_QC 601_QD 601_QE 601_QSE "106 "601_QA1 601_QA2 601_QB1 601_QB2 601_QC 601_QD 601_QE 601_QSE " 103 107 "601_DVA 601_DVAa 601_DVB 601_DVBa 601_DVB1 601_DVC 601_DVD 601_DVD1 601_DSE 601_DVE 601_DSE1 601_DVE1 " 104 108 "601_S6 601_S6a 601_S7 601_S8 601_S9 601_S9a " … … 109 113 " 2, 2, 2, 2, 2, 2," 110 114 " 1, 1, 1, 1, 1, 1, " 111 " 1, 1, 1, 1, 1, 1, "115 " 1, 1, 1, 1, 1, 1, 1, 1," 112 116 " 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2," 113 117 " 2, 2, 2, 2, 2, 2" … … 519 523 dat_ptr->dt_intensity[k], dat_ptr->dt_occupancy[k] ); 520 524 } 521 printf ( "\n\n" ); 522 } 523 } 525 printf ( "\n" ); 526 } 527 } 528 printf ( "\n\tQueues:\n" ); 524 529 525 530 /* Loop over the statistical data. We will extract the queue length for … … 533 538 int nLanes = NumLanes[i]; 534 539 int qoffset = QueueLengthOffsets[i]; 540 printf ( "\r[%d]", i ); 535 541 for ( int j = 0 ; j < nLanes ; j++ ) 536 542 { … … 555 561 /* Update the data vector. */ 556 562 dt[qoffset+j] = qLen; 557 } 563 /* Print the queue length. */ 564 printf ( " %d", qLen ); 565 } 566 printf ( "\n" ); 558 567 oLanes = oLanes + nLanes; 559 568 } 560 569 561 printf ( "\ tAimsunDS::getdata() finished\n" );570 printf ( "\n\tAimsunDS::getdata() finished\n" ); 562 571 cout << dt ; 563 572 }