1 package at.ac.tuwien.lsdc.sched;
4 import java.io.IOException;
5 import java.util.LinkedList;
7 import org.slf4j.Logger;
8 import org.slf4j.LoggerFactory;
10 import at.ac.tuwien.lsdc.types.ScenarioData;
11 import at.ac.tuwien.lsdc.types.ScenarioType;
12 import at.ac.tuwien.lsdc.types.SchedulerEvent;
13 import at.ac.tuwien.lsdc.types.SchedulerType;
16 public class SchedulerB extends AbstractScheduler {
18 private static final Logger log = LoggerFactory.getLogger(SchedulerB.class);
20 public SchedulerB(int numPMs, int numCloudPartners, File schedulerLog,
21 ScenarioType scenario) throws IOException {
22 super(numPMs, numCloudPartners, schedulerLog, scenario);
26 protected void handleEvents(LinkedList<SchedulerEvent> events) {
27 // TODO Auto-generated method stub
28 log.info("Sched B handle events");
33 * this creates the total summary which should be written to a CSV at the
36 * @return a ScenarioData Object that holds the values to be logged
39 protected ScenarioData doEndLogging() {
40 return new ScenarioData(SchedulerType.B.toString(), scenario.toString(),
41 1, 1, 1, 1, numTotalInSourced, numTotalOutSourced);