public double getServiceThroughput(String serviceName) { List<ServiceRate> completionRates = getThroughput(); for (ServiceRate serviceRequestRate : completionRates) { if (serviceRequestRate.getServiceName().equals(serviceName)) { return serviceRequestRate.getRequestRate(); } } return 0; }
public double getServiceRequestRate(String serviceName) { List<ServiceRate> requestRates = getRequestRates(); for (ServiceRate serviceRequestRate : requestRates) { if (serviceRequestRate.getServiceName().equals(serviceName)) { return serviceRequestRate.getRequestRate(); } } return 0; }