private static ArrayList<ContainerVm> createVmList(int brokerId,int containerVmsNumber){
  ArrayList<ContainerVm> containerVms=new ArrayList<ContainerVm>();
  for (int i=0; i < containerVmsNumber; ++i) {
    ArrayList<ContainerPe> peList=new ArrayList<ContainerPe>();
    int vmType=i / (int)Math.ceil((double)containerVmsNumber / 4.0D);
    for (int j=0; j < ConstantsExamples.VM_PES[vmType]; ++j) {
      peList.add(new ContainerPe(j,new CotainerPeProvisionerSimple((double)ConstantsExamples.VM_MIPS[vmType])));
    }
    containerVms.add(new PowerContainerVm(IDs.pollId(ContainerVm.class),brokerId,(double)ConstantsExamples.VM_MIPS[vmType],(float)ConstantsExamples.VM_RAM[vmType],ConstantsExamples.VM_BW,ConstantsExamples.VM_SIZE,"Xen",new ContainerSchedulerTimeSharedOverSubscription(peList),new ContainerRamProvisionerSimple(ConstantsExamples.VM_RAM[vmType]),new ContainerBwProvisionerSimple(ConstantsExamples.VM_BW),peList,ConstantsExamples.SCHEDULING_INTERVAL));
  }
  return containerVms;
}

private static ArrayList < ContainerVm > createVmList ( int brokerId , int containerVmsNumber ) { ArrayList < ContainerVm > containerVms = new ArrayList < ContainerVm > ( ) ; for ( int i = 0 ; i < containerVmsNumber ; ++ i ) { ArrayList < ContainerPe > peList = new ArrayList < ContainerPe > ( ) ; int vmType = i / ( int ) Math . ceil ( ( double ) containerVmsNumber / 4.0D ) ; for ( int j = 0 ; j < ConstantsExamples . VM_PES [ vmType ] ; ++ j ) { peList . add ( new ContainerPe ( j , new CotainerPeProvisionerSimple ( ( double ) ConstantsExamples . VM_MIPS [ vmType ] ) ) ) ; } containerVms . add ( new PowerContainerVm ( IDs . pollId ( ContainerVm . class ) , brokerId , ( double ) ConstantsExamples . VM_MIPS [ vmType ] , ( float ) ConstantsExamples . VM_RAM [ vmType ] , ConstantsExamples . VM_BW , ConstantsExamples . VM_SIZE , "Xen" , new ContainerSchedulerTimeSharedOverSubscription ( peList ) , new ContainerRamProvisionerSimple ( ConstantsExamples . VM_RAM [ vmType ] ) , new ContainerBwProvisionerSimple ( ConstantsExamples . VM_BW ) , peList , ConstantsExamples . SCHEDULING_INTERVAL ) ) ; } return containerVms ; }
create the virtual machines and add them to the list
