cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-testbeds/src/main/java/org/cloudsimplus/migration/VmMigrationWhenCpuMetricIsViolatedExample.java
public static PowerHostUtilizationHistory createHost(int id, int numberOfPes, long mipsByPe) {
        List<Pe> peList = createPeList(numberOfPes, mipsByPe);
        PowerHostUtilizationHistory host = new PowerHostUtilizationHistory(HOST_RAM, HOST_BW, HOST_STORAGE, peList);
        host.setPowerModel(new PowerModelLinear(1000, 0.7))
                .setRamProvisioner(new ResourceProvisionerSimple())
                .setBwProvisioner(new ResourceProvisionerSimple())
                .setVmScheduler(new VmSchedulerTimeShared());
        return host;
    }
/**
     *
     * @param id
     * @param numberOfPes
     * @param mipsByPe
     * @return
     *
     * @todo @author manoelcampos Using the {@link VmSchedulerSpaceShared} its
     * getting NullPointerException, probably due to lack of CPU for all VMs. It
     * has to be created an IT test to check this problem.
     *
     * @todo @author manoelcampos The method
     * {@link DatacenterBroker#getCloudletFinishedList()} returns an empty list
     * when using null null null null null     {@link PowerDatacenter},
     * {@link PowerHost} and {@link PowerVm}.
     */


@todo @author manoelcampos Using the  VmSchedulerSpaceShared its
getting NullPointerException, probably due to lack of CPU for all VMs. It
has to be created an IT test to check this problem.

@todo @author manoelcampos The method
DatacenterBroker#getCloudletFinishedList() returns an empty list
when using null null null null null      PowerDatacenter,
PowerHost and  PowerVm.
@todo @author manoelcampos Using the VmSchedulerSpaceShared its getting NullPointerException probably due to lack of CPU for all VMs . It has to be created an IT test to check this problem . @todo @author manoelcampos The method DatacenterBroker#getCloudletFinishedList () returns an empty list when using null null null null null PowerDatacenter PowerHost and PowerVm .
public static PowerHostUtilizationHistory createHost(int id, int numberOfPes, long mipsByPe) {
        List<Pe> peList = createPeList(numberOfPes, mipsByPe);
        PowerHostUtilizationHistory host = new PowerHostUtilizationHistory(HOST_RAM, HOST_BW, HOST_STORAGE, peList);
        host.setPowerModel(new PowerModelLinear(1000, 0.7))
                .setRamProvisioner(new ResourceProvisionerSimple())
                .setBwProvisioner(new ResourceProvisionerSimple())
                .setVmScheduler(new VmSchedulerTimeShared());
        return host;
    }
public static PowerHostUtilizationHistory createHost ( int id , int numberOfPes , long mipsByPe ) { List < Pe > peList = createPeList ( numberOfPes , mipsByPe ) ; PowerHostUtilizationHistory host = new PowerHostUtilizationHistory ( HOST_RAM , HOST_BW , HOST_STORAGE , peList ) ; host . setPowerModel ( new PowerModelLinear ( 1000 , 0.7 ) ) . setRamProvisioner ( new ResourceProvisionerSimple ( ) ) . setBwProvisioner ( new ResourceProvisionerSimple ( ) ) . setVmScheduler ( new VmSchedulerTimeShared ( ) ) ; return host ; }
@param id
 @param numberOfPes
 @param mipsByPe
 @return
@param id @param numberOfPes @param mipsByPe @return