I have some virtual machines that I splited them into some groups called "Virtual Clusters". Actually I have a list of Vm lists as bellow:
VCs = List <List<Vm>>
in the other hand, I have some cloudlets that I splited them into some groups called Workloads. Actually I have a list of cloudlet lists as bellow:
WDs = List <List<Cloudlets>>
now I need to assign the ith list of cloudlets to ith list of Virtual cluster. actually I need something like this:
for (int i=0; i<VCs.size(); i++)
for (int j=0; j<VCs.get(i).size(); j++){
broker.submitVmList (Vcs.get(i));
broker.submitCloudletList (Vcs.get(i).get(j);
}
But it doesn't Work and at last it assign all cloudlets to all Vms respectivly! how can I do this?