public static List<Vm> createVmList(int brokerId,int vmsNumber){
  List<Vm> vms=new ArrayList<Vm>();
  for (int i=0; i < vmsNumber; i++) {
    int vmType=i / (int)Math.ceil((double)vmsNumber / Constants.VM_TYPES);
    vms.add(new PowerVm(i,brokerId,Constants.VM_MIPS[vmType],Constants.VM_PES[vmType],Constants.VM_RAM[vmType],Constants.VM_BW,Constants.VM_SIZE,1,"Xen",new CloudletSchedulerDynamicWorkload(Constants.VM_MIPS[vmType],Constants.VM_PES[vmType]),Constants.SCHEDULING_INTERVAL));
  }
  return vms;
}

public static List < Vm > createVmList ( int brokerId , int vmsNumber ) { List < Vm > vms = new ArrayList < Vm > ( ) ; for ( int i = 0 ; i < vmsNumber ; i ++ ) { int vmType = i / ( int ) Math . ceil ( ( double ) vmsNumber / Constants . VM_TYPES ) ; vms . add ( new PowerVm ( i , brokerId , Constants . VM_MIPS [ vmType ] , Constants . VM_PES [ vmType ] , Constants . VM_RAM [ vmType ] , Constants . VM_BW , Constants . VM_SIZE , 1 , "Xen" , new CloudletSchedulerDynamicWorkload ( Constants . VM_MIPS [ vmType ] , Constants . VM_PES [ vmType ] ) , Constants . SCHEDULING_INTERVAL ) ) ; } return vms ; }
creates the vm list .
