Beispiel #1
0
 def test_dominates_less_transfers_different_travel_time(self):
     labela = LabelTimeWithBoardingsCount(departure_time=1,
                                          arrival_time_target=9,
                                          n_boardings=1,
                                          first_leg_is_walk=False)
     labelb = LabelTimeWithBoardingsCount(departure_time=1,
                                          arrival_time_target=10,
                                          n_boardings=0,
                                          first_leg_is_walk=False)
     self.assertFalse(labelb.dominates(labela))
     self.assertFalse(labela.dominates(labelb))
Beispiel #2
0
 def test_dominates_later_arrival_time(self):
     label2 = LabelTimeWithBoardingsCount(departure_time=1,
                                          arrival_time_target=10,
                                          n_boardings=0,
                                          first_leg_is_walk=False)
     label4 = LabelTimeWithBoardingsCount(departure_time=1,
                                          arrival_time_target=11,
                                          n_boardings=0,
                                          first_leg_is_walk=False)
     self.assertTrue(label2.dominates(label4))