cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-examples/src/main/java/org/cloudsimplus/examples/workload/SwfWorkloadFormatExample1.java
private Datacenter createDatacenterAndHostsBasedOnVmRequirements() {
        List<Host> hostList = createHostsAccordingToVmRequirements();
        DatacenterCharacteristics characteristics =
            new DatacenterCharacteristicsSimple (hostList)
                .setCostPerSecond(DATACENTER_CPU_COST)
                .setCostPerMem(DATACENTER_MEM_COST)
                .setCostPerStorage(DATACENTER_STORAGE_COST)
                .setCostPerBw(DATACENTER_BW_COST);

        Datacenter datacenter = new DatacenterSimple(simulation, characteristics, new VmAllocationPolicySimple());
        Log.printConcatLine("#Created ", hostList.size(), " Hosts at ", datacenter.getName());
        return datacenter;
    }
/**
     * Creates the Datacenter.
     *
     * @return the Datacenter
     */
Creates the Datacenter.
@return the Datacenter
Creates the Datacenter . @return the Datacenter
private Datacenter createDatacenterAndHostsBasedOnVmRequirements() {
        List<Host> hostList = createHostsAccordingToVmRequirements();
        DatacenterCharacteristics characteristics =
            new DatacenterCharacteristicsSimple (hostList)
                .setCostPerSecond(DATACENTER_CPU_COST)
                .setCostPerMem(DATACENTER_MEM_COST)
                .setCostPerStorage(DATACENTER_STORAGE_COST)
                .setCostPerBw(DATACENTER_BW_COST);
        Datacenter datacenter = new DatacenterSimple(simulation, characteristics, new VmAllocationPolicySimple());
        Log.printConcatLine("#Created ", hostList.size(), " Hosts at ", datacenter.getName());
        return datacenter;
    }
private Datacenter createDatacenterAndHostsBasedOnVmRequirements ( ) { List < Host > hostList = createHostsAccordingToVmRequirements ( ) ; DatacenterCharacteristics characteristics = new DatacenterCharacteristicsSimple ( hostList ) . setCostPerSecond ( DATACENTER_CPU_COST ) . setCostPerMem ( DATACENTER_MEM_COST ) . setCostPerStorage ( DATACENTER_STORAGE_COST ) . setCostPerBw ( DATACENTER_BW_COST ) ; Datacenter datacenter = new DatacenterSimple ( simulation , characteristics , new VmAllocationPolicySimple ( ) ) ; Log . printConcatLine ( "#Created " , hostList . size ( ) , " Hosts at " , datacenter . getName ( ) ) ; return datacenter ; }
Creates the Datacenter.
Creates the Datacenter .