cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-testbeds/src/main/java/org/cloudsimplus/hostfaultinjection/HostFaultInjectionExperiment.java
private void readTheSlaContracts() throws IOException {
        Iterator<DatacenterBroker> brokerIterator = getBrokerList().iterator();
        final List<AwsEc2Template> all = readAllAvailableAwsEc2Instances();
        for (final String file: readContractList()) {
            SlaContract contract = SlaContract.getInstanceFromResourcesDir(getClass(), file);
            DatacenterBroker b = brokerIterator.next();
            contractsMap.put(b, contract);
            templatesMap.put(b, getSuitableAwsEc2InstanceTemplate(b, all));
        }
    }
/**
     * Read all SLA contracts registered in the {@link #SLA_CONTRACTS_LIST}.
     * When the brokers are created, it is ensured the number of brokers
     * is equals to the number of SLA contracts in the {@link #SLA_CONTRACTS_LIST}.
     */
Read all SLA contracts registered in the  #SLA_CONTRACTS_LIST.
When the brokers are created, it is ensured the number of brokers
is equals to the number of SLA contracts in the  #SLA_CONTRACTS_LIST.
Read all SLA contracts registered in the #SLA_CONTRACTS_LIST . When the brokers are created it is ensured the number of brokers is equals to the number of SLA contracts in the #SLA_CONTRACTS_LIST .
private void readTheSlaContracts() throws IOException {
        Iterator<DatacenterBroker> brokerIterator = getBrokerList().iterator();
        final List<AwsEc2Template> all = readAllAvailableAwsEc2Instances();
        for (final String file: readContractList()) {
            SlaContract contract = SlaContract.getInstanceFromResourcesDir(getClass(), file);
            DatacenterBroker b = brokerIterator.next();
            contractsMap.put(b, contract);
            templatesMap.put(b, getSuitableAwsEc2InstanceTemplate(b, all));
        }
    }
private void readTheSlaContracts ( ) throws IOException { Iterator < DatacenterBroker > brokerIterator = getBrokerList ( ) . iterator ( ) ; final List < AwsEc2Template > all = readAllAvailableAwsEc2Instances ( ) ; for ( final String file : readContractList ( ) ) { SlaContract contract = SlaContract . getInstanceFromResourcesDir ( getClass ( ) , file ) ; DatacenterBroker b = brokerIterator . next ( ) ; contractsMap . put ( b , contract ) ; templatesMap . put ( b , getSuitableAwsEc2InstanceTemplate ( b , all ) ) ; } }
Read all SLA contracts registered in the {@link #SLA_CONTRACTS_LIST}.
Read all SLA contracts registered in the { @link #SLA_CONTRACTS_LIST } .