public LinkedList<Experiment> getNeededTests(LinkedList<Workload> availableWorkloads) { LinkedList<Experiment> tests = new LinkedList<Experiment>(); for (Service service : workload.usedServices()) { if (service.needTest(dbManager)) tests.add(new ServiceTestExperiment(service, availableWorkloads, dbManager)); } return tests; }
public boolean canExecute() { for (Service service : workload.usedServices()) { if (service.needTest(dbManager)) return false; } return true; }