1 package at.ac.tuwien.lsdc.federation;
3 import at.ac.tuwien.lsdc.types.Application;
5 public class Federation {
7 private int numPartners;
9 public Federation(int numPartners) {
10 this.numPartners = numPartners;
13 public boolean doOutsource(Application app) {
14 for (int i=0;i<numPartners;i++) {
15 //do some probability stuff
16 //e.g. every cloudPartner has a 30 % chance of accepting the app