]> git.somenet.org - pub/jan/lsdc.git/blob - src/at/ac/tuwien/lsdc/sched/SchedulerB.java
changed names of resoure variables to reserved*, change calculation of checkVM, make...
[pub/jan/lsdc.git] / src / at / ac / tuwien / lsdc / sched / SchedulerB.java
1 package at.ac.tuwien.lsdc.sched;
2
3 import java.io.File;
4 import java.io.IOException;
5 import java.util.LinkedList;
6
7 import org.slf4j.Logger;
8 import org.slf4j.LoggerFactory;
9
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;
14
15
16 public class SchedulerB extends AbstractScheduler {
17
18         private static final Logger log = LoggerFactory.getLogger(SchedulerB.class);
19         
20         public SchedulerB(int numPMs, int numCloudPartners, File schedulerLog, 
21                                                 ScenarioType scenario) throws IOException {
22                 super(numPMs, numCloudPartners, schedulerLog, scenario);
23         }
24
25         @Override
26         protected void handleEvents(LinkedList<SchedulerEvent> events) {
27                 // TODO Auto-generated method stub
28                 log.info("Sched B handle events");
29         }
30
31         
32         /**
33          * this creates the total summary which should be written to a CSV at the
34          * end
35          *
36          * @return a ScenarioData Object that holds the values to be logged
37          */
38         @Override
39         protected ScenarioData doEndLogging() {
40                 return new ScenarioData(SchedulerType.B.toString(), scenario.toString(),
41                                 1, 1, 1, 1, numTotalInSourced, numTotalOutSourced);
42         }
43
44 }