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; }
CustomerInfo customer = service.getCustomerRepo() .findByNameAndPowerType(name + " " + type + " Controllable", PowerType.INTERRUPTIBLE_CONSUMPTION);
service.getCustomerRepo() .findByNameAndPowerType(name + " " + type + " Controllable", PowerType.INTERRUPTIBLE_CONSUMPTION);
service.getCustomerRepo().findByName(name + " " + type + " Base"); customer = service.getCustomerRepo() .findByName(name + " " + type + " Controllable");
service.getCustomerRepo().findByName(name + " " + type + " Base"); customer = service.getCustomerRepo() .findByName(name + " " + type + " Controllable");