Collection<MobSimVehicleRoute> createPlans(){
  List<MobSimVehicleRoute> vehicleRoutes=new ArrayList<MobSimVehicleRoute>();
  for (  CarrierAgent carrierAgent : carrierAgents) {
    List<MobSimVehicleRoute> plansForCarrier=carrierAgent.createFreightDriverPlans();
    vehicleRoutes.addAll(plansForCarrier);
  }
  return vehicleRoutes;
}

Collection < MobSimVehicleRoute > createPlans ( ) { List < MobSimVehicleRoute > vehicleRoutes = new ArrayList < MobSimVehicleRoute > ( ) ; for ( CarrierAgent carrierAgent : carrierAgents ) { List < MobSimVehicleRoute > plansForCarrier = carrierAgent . createFreightDriverPlans ( ) ; vehicleRoutes . addAll ( plansForCarrier ) ; } return vehicleRoutes ; }
returns the entire set of selected carrier plans .
