cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudsimplus/slametrics/SlaContract.java
public static void main(String[] args) throws FileNotFoundException {
        final String file = "/Users/raysaoliveira/Desktop/Mestrado/cloudsim-plus/cloudsim-plus-testbeds/src/main/resources/SlaCustomer1.json";
        SlaContract contract = SlaContract.getInstance(file);
        System.out.println("Contract file: " + file);
        System.out.println(contract);
        System.out.println("Minimum Price Metric Value: " + contract.getPriceMetric().getMinDimension());
        System.out.println("Maximum Price Metric Value: " + contract.getPriceMetric().getMaxDimension());
        System.out.println("Maximum CPU Metric Value: " + contract.getCpuUtilizationMetric().getMaxDimension());
    }
/**
     * A main method just to try the class implementation.
     * @param args
     */
A main method just to try the class implementation.
@param args
A main method just to try the class implementation . @param args
public static void main(String[] args) throws FileNotFoundException {
        final String file = "/Users/raysaoliveira/Desktop/Mestrado/cloudsim-plus/cloudsim-plus-testbeds/src/main/resources/SlaCustomer1.json";
        SlaContract contract = SlaContract.getInstance(file);
        System.out.println("Contract file: " + file);
        System.out.println(contract);
        System.out.println("Minimum Price Metric Value: " + contract.getPriceMetric().getMinDimension());
        System.out.println("Maximum Price Metric Value: " + contract.getPriceMetric().getMaxDimension());
        System.out.println("Maximum CPU Metric Value: " + contract.getCpuUtilizationMetric().getMaxDimension());
    }
public static void main ( String [ ] args ) throws FileNotFoundException { final String file = "/Users/raysaoliveira/Desktop/Mestrado/cloudsim-plus/cloudsim-plus-testbeds/src/main/resources/SlaCustomer1.json" ; SlaContract contract = SlaContract . getInstance ( file ) ; System . out . println ( "Contract file: " + file ) ; System . out . println ( contract ) ; System . out . println ( "Minimum Price Metric Value: " + contract . getPriceMetric ( ) . getMinDimension ( ) ) ; System . out . println ( "Maximum Price Metric Value: " + contract . getPriceMetric ( ) . getMaxDimension ( ) ) ; System . out . println ( "Maximum CPU Metric Value: " + contract . getCpuUtilizationMetric ( ) . getMaxDimension ( ) ) ; }
A main method just to try the class implementation.
A main method just to try the class implementation .