public static List<Container> createContainerList(int brokerId,int containersNumber){
  ArrayList<Container> containers=new ArrayList<Container>();
  for (int i=0; i < containersNumber; ++i) {
    int containerType=i / (int)Math.ceil((double)containersNumber / 3.0D);
    containers.add(new PowerContainer(IDs.pollId(Container.class),brokerId,(double)ConstantsExamples.CONTAINER_MIPS[containerType],ConstantsExamples.CONTAINER_PES[containerType],ConstantsExamples.CONTAINER_RAM[containerType],ConstantsExamples.CONTAINER_BW,0L,"Xen",new ContainerCloudletSchedulerDynamicWorkload(ConstantsExamples.CONTAINER_MIPS[containerType],ConstantsExamples.CONTAINER_PES[containerType]),ConstantsExamples.SCHEDULING_INTERVAL));
  }
  return containers;
}

public static List < Container > createContainerList ( int brokerId , int containersNumber ) { ArrayList < Container > containers = new ArrayList < Container > ( ) ; for ( int i = 0 ; i < containersNumber ; ++ i ) { int containerType = i / ( int ) Math . ceil ( ( double ) containersNumber / 3.0D ) ; containers . add ( new PowerContainer ( IDs . pollId ( Container . class ) , brokerId , ( double ) ConstantsExamples . CONTAINER_MIPS [ containerType ] , ConstantsExamples . CONTAINER_PES [ containerType ] , ConstantsExamples . CONTAINER_RAM [ containerType ] , ConstantsExamples . CONTAINER_BW , 0L , "Xen" , new ContainerCloudletSchedulerDynamicWorkload ( ConstantsExamples . CONTAINER_MIPS [ containerType ] , ConstantsExamples . CONTAINER_PES [ containerType ] ) , ConstantsExamples . SCHEDULING_INTERVAL ) ) ; } return containers ; }
create the containers for hosting the cloudlets and binding them together .
