@Override public void handleNewObject (Object thing) { CustomerInfo customer = (CustomerInfo)thing; customerRepo.add(customer); } }
private void createCapacityBundle (Map<String, StructureInstance> bundles, CustomerStructure customerStructure, String name) { CapacityBundle capacityBundle = (CapacityBundle) bundles.get(name); if (capacityBundle == null) { throw new Error("No CapacityBundle for " + name); } capacityBundle.initialize(service, customerStructure); capacityBundles.add(capacityBundle); getCustomerRepo().add(capacityBundle.getCustomerInfo()); }
customerRepo.add(villageInfo);
private EvCustomer instantiateCustomer (Map<String, Collection<?>> beans, SocialGroup thisGroup, String gender, CarType car, String customerName) { EvCustomer customer = new EvCustomer(customerName); log.info("Adding EvCustomer " + customerName); evCustomers.add(customer); CustomerInfo info = customer.initialize(thisGroup, gender, activities, getGroupActivities(beans, thisGroup), car, service, config); addCustomerInfo(info); service.getCustomerRepo().add(info); return customer; }
customerRepo.add(officeComplexInfo);
tariffMarketService.subscribeToTariff(tariffMarketService .getDefaultTariff(cust.getPowerType()), cust, cust.getPopulation()); customerRepo.add(cust);