コード例 #1
0
 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;
 }
コード例 #2
0
 public boolean canExecute() {
   for (Service service : workload.usedServices()) {
     if (service.needTest(dbManager)) return false;
   }
   return true;
 }