cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-examples/src/main/java/org/cloudsimplus/examples/DynamicCloudletsArrival1.java
private Host createHost(int id) {
        List<Pe> peList = new ArrayList<>();
        long mips = 1000;
        for(int i = 0; i < HOST_PES_NUMBER; i++){
            peList.add(new PeSimple(mips, new PeProvisionerSimple()));
        }
        long ram = 2048; // host memory (MEGABYTE)
        long storage = 1000000; // host storage (MEGABYTE)
        long bw = 10000; //Megabits/s

       return new HostSimple(ram, bw, storage, peList)
           .setRamProvisioner(new ResourceProvisionerSimple())
           .setBwProvisioner(new ResourceProvisionerSimple())
            .setVmScheduler(new VmSchedulerSpaceShared());

    }
/**
     * Creates a host with pre-defined configuration.
     *
     * @param id The Host id
     * @return the created host
     */
Creates a host with pre-defined configuration.
@param id The Host id
@return the created host
Creates a host with pre - defined configuration . @param id The Host id @return the created host
private Host createHost(int id) {
        List<Pe> peList = new ArrayList<>();
        long mips = 1000;
        for(int i = 0; i < HOST_PES_NUMBER; i++){
            peList.add(new PeSimple(mips, new PeProvisionerSimple()));
        }
        long ram = 2048; 
        long storage = 1000000; 
        long bw = 10000; 
       return new HostSimple(ram, bw, storage, peList)
           .setRamProvisioner(new ResourceProvisionerSimple())
           .setBwProvisioner(new ResourceProvisionerSimple())
            .setVmScheduler(new VmSchedulerSpaceShared());
    }
private Host createHost ( int id ) { List < Pe > peList = new ArrayList < > ( ) ; long mips = 1000 ; for ( int i = 0 ; i < HOST_PES_NUMBER ; i ++ ) { peList . add ( new PeSimple ( mips , new PeProvisionerSimple ( ) ) ) ; } long ram = 2048 ; long storage = 1000000 ; long bw = 10000 ; return new HostSimple ( ram , bw , storage , peList ) . setRamProvisioner ( new ResourceProvisionerSimple ( ) ) . setBwProvisioner ( new ResourceProvisionerSimple ( ) ) . setVmScheduler ( new VmSchedulerSpaceShared ( ) ) ; }
Creates a host with pre-defined configuration.
Creates a host with pre - defined configuration .
// host memory (MEGABYTE) // host storage (MEGABYTE) //Megabits/s