cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-testbeds/src/main/java/org/cloudsimplus/sla/TestWithoutAlgorithmExample.java
private void createDatacenter() {
        for (int i = 0; i < HOSTS; i++) {
            hostList.add(createHost());
        }

        double cost = 3.0; // the cost of using processing in this resource
        double costPerMem = 0.05; // the cost of using memory in this resource
        double costPerStorage = 0.001; // the cost of using storage in this
        // resource
        double costPerBw = 0.0; // the cost of using bw in this resource

        DatacenterCharacteristics characteristics
                = new DatacenterCharacteristicsSimple(hostList)
                        .setCostPerSecond(cost)
                        .setCostPerMem(costPerMem)
                        .setCostPerStorage(costPerStorage)
                        .setCostPerBw(costPerBw);

        Datacenter dc0 = new DatacenterSimple(simulation, characteristics, new VmAllocationPolicySimple());
        dc0.setSchedulingInterval(SCHEDULING_INTERVAL);
    }
/**
     * Creates a Datacenter and its Hosts.
     */
Creates a Datacenter and its Hosts.
Creates a Datacenter and its Hosts .
private void createDatacenter() {
        for (int i = 0; i < HOSTS; i++) {
            hostList.add(createHost());
        }
        double cost = 3.0; 
        double costPerMem = 0.05; 
        double costPerStorage = 0.001; 
        double costPerBw = 0.0; 
        DatacenterCharacteristics characteristics
                = new DatacenterCharacteristicsSimple(hostList)
                        .setCostPerSecond(cost)
                        .setCostPerMem(costPerMem)
                        .setCostPerStorage(costPerStorage)
                        .setCostPerBw(costPerBw);
        Datacenter dc0 = new DatacenterSimple(simulation, characteristics, new VmAllocationPolicySimple());
        dc0.setSchedulingInterval(SCHEDULING_INTERVAL);
    }
private void createDatacenter ( ) { for ( int i = 0 ; i < HOSTS ; i ++ ) { hostList . add ( createHost ( ) ) ; } double cost = 3.0 ; double costPerMem = 0.05 ; double costPerStorage = 0.001 ; double costPerBw = 0.0 ; DatacenterCharacteristics characteristics = new DatacenterCharacteristicsSimple ( hostList ) . setCostPerSecond ( cost ) . setCostPerMem ( costPerMem ) . setCostPerStorage ( costPerStorage ) . setCostPerBw ( costPerBw ) ; Datacenter dc0 = new DatacenterSimple ( simulation , characteristics , new VmAllocationPolicySimple ( ) ) ; dc0 . setSchedulingInterval ( SCHEDULING_INTERVAL ) ; }
Creates a Datacenter and its Hosts.
Creates a Datacenter and its Hosts .
// the cost of using processing in this resource // the cost of using memory in this resource // the cost of using storage in this // resource // the cost of using bw in this resource