Esempio n. 1
0
 public static TaxiTask getNextTaxiTask(TaxiTask task) {
   return asTaxiSchedule(task.getSchedule()).getTasks().get(task.getTaskIdx() + 1);
 }
Esempio n. 2
0
 public static TaxiTask getPreviousTaxiTask(TaxiTask task) {
   return asTaxiSchedule(task.getSchedule()).getTasks().get(task.getTaskIdx() - 1);
 }
Esempio n. 3
0
 public boolean apply(TaxiTask t) {
   return t.getTaxiTaskType() == TaxiTaskType.PICKUP;
 };