File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,13 @@ struct statistics {
25
25
c (" track" , s.track_change_msgs_ );
26
26
c (" free text" , s.free_text_msgs_ );
27
27
28
+ o << " \n separate trip:\n " ;
29
+ c (" edge fit" , s.edge_fit_ );
30
+ c (" trip fit" , s.trip_fit_ );
31
+ c (" edge fit | trip fit" , s.edge_fit_or_trip_fit_ );
32
+ c (" edge fit & trip fit" , s.edge_fit_and_trip_fit_ );
33
+ c (" total" , s.total_ );
34
+
28
35
o << " \n evs:\n " ;
29
36
c (" total" , s.total_evs_ );
30
37
c (" invalid time" , s.ev_invalid_time_ );
@@ -185,6 +192,12 @@ struct statistics {
185
192
canceled_trp_not_found_) != 0 ;
186
193
}
187
194
195
+ unsigned edge_fit_ = 0 ;
196
+ unsigned trip_fit_ = 0 ;
197
+ unsigned edge_fit_and_trip_fit_ = 0 ;
198
+ unsigned edge_fit_or_trip_fit_ = 0 ;
199
+ unsigned total_ = 0 ;
200
+
188
201
unsigned delay_msgs_ = 0 ;
189
202
unsigned cancel_msgs_ = 0 ;
190
203
unsigned additional_msgs_ = 0 ;
Original file line number Diff line number Diff line change @@ -271,7 +271,14 @@ void rt_handler::propagate() {
271
271
272
272
auto const edge_fit = fits_edge (k, t);
273
273
auto const trip_fit = fits_trip (sched_, k, t);
274
+
275
+ stats_.edge_fit_ += !edge_fit ? 1 : 0 ;
276
+ stats_.trip_fit_ += !trip_fit ? 1 : 0 ;
277
+ stats_.edge_fit_and_trip_fit_ += (!edge_fit && !trip_fit) ? 1 : 0 ;
278
+ ++stats_.total_ ;
279
+
274
280
if (!edge_fit || !trip_fit) {
281
+ stats_.edge_fit_or_trip_fit_ += (!edge_fit || !trip_fit) ? 1 : 0 ;
275
282
auto const trp = sched_.merged_trips_ [k.lcon ()->trips_ ]->front ();
276
283
separate_trip (sched_, trp, update_builder_);
277
284
You can’t perform that action at this time.
0 commit comments