private void createCarrierAgents(CarrierScoringFunctionFactory carrierScoringFunctionFactory) {
   for (Carrier carrier : carriers.getCarriers().values()) {
     ScoringFunction carrierScoringFunction =
         carrierScoringFunctionFactory.createScoringFunction(carrier);
     CarrierAgent carrierAgent = new CarrierAgent(this, carrier, carrierScoringFunction);
     carrierAgents.add(carrierAgent);
   }
 }
 /** Request all carrier agents to score their plans. */
 public void scoreSelectedPlans() {
   for (Carrier carrier : carriers.getCarriers().values()) {
     CarrierAgent agent = findCarrierAgent(carrier.getId());
     agent.scoreSelectedPlan();
   }
 }