protected void submitCloudlets() {
…..;
……..;
** Get the HostList;
getHostList();
for(int i=0;i<getHostList().size();i++){
host=//specific Host chosen based on one’s own concept/idea;
}
** Get the VMs created in that specific host.
List<Vm> vms=new ArrayList<Vm>();
vms=host.getVmList(); //retrieve the VM list which has been created in Host host.
** Get the cloudlets list
getCloudletList();
for(Cloudlet cl: getCloudletList()){
// Let "vi" be the VM chosen from vms list.
cl.setVmId(vi.getId());
sendNow(getVmsToDatacentersMap().get(vi.getId()), CloudSimTags.CLOUDLET_SUBMIT,cl);
cloudletsSubmitted++;
getCloudletSubmittedList().add(cl);
}
}