cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-examples/src/main/java/org/cloudsimplus/examples/CloudletSchedulerTimeSharedExample1.java
private Datacenter createDatacenter() {
        final List<Host> hostList = new ArrayList<>(HOSTS);
        for(int h = 0; h < HOSTS; h++) {
            Host host = createHost();
            hostList.add(host);
        }

        DatacenterCharacteristics characteristics = new DatacenterCharacteristicsSimple(hostList);
        final Datacenter dc = new DatacenterSimple(simulation, characteristics, new VmAllocationPolicySimple());
        return dc;
    }
/**
     * Creates a Datacenter and its Hosts.
     */
Creates a Datacenter and its Hosts.
Creates a Datacenter and its Hosts .
private Datacenter createDatacenter() {
        final List<Host> hostList = new ArrayList<>(HOSTS);
        for(int h = 0; h < HOSTS; h++) {
            Host host = createHost();
            hostList.add(host);
        }
        DatacenterCharacteristics characteristics = new DatacenterCharacteristicsSimple(hostList);
        final Datacenter dc = new DatacenterSimple(simulation, characteristics, new VmAllocationPolicySimple());
        return dc;
    }
private Datacenter createDatacenter ( ) { final List < Host > hostList = new ArrayList < > ( HOSTS ) ; for ( int h = 0 ; h < HOSTS ; h ++ ) { Host host = createHost ( ) ; hostList . add ( host ) ; } DatacenterCharacteristics characteristics = new DatacenterCharacteristicsSimple ( hostList ) ; final Datacenter dc = new DatacenterSimple ( simulation , characteristics , new VmAllocationPolicySimple ( ) ) ; return dc ; }
Creates a Datacenter and its Hosts.
Creates a Datacenter and its Hosts .