cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/schedulers/cloudlet/CloudletSchedulerCompletelyFair.java
private double computeCloudletInitialVirtualRuntime(CloudletExecutionInfo rcl) {
        /*
        A negative virtual runtime indicates the cloudlet has never been executed yet.
        This math was used just to ensure that the first added cloudlets
        will have the lower vruntime, depending of their priorites.
        If all cloudlets have the same priority, the first
        added will start executing first.
        */

        /*
        Inverses the Cloudlet ID dividing the Integer.MAX_VALUE by it,
        because the ID is in fact int. This will make that the lower
        ID return higher values. It ensures that as lower is the ID,
        lower is the negative value returned.
        Inverting the cloudlet ID to get a higher value for lower IDs
        can be understood as resulting in "higher negative" values, that is,
        extreme negative values.
        */
        final double inverseOfCloudletId = Integer.MAX_VALUE/(rcl.getCloudletId()+1.0);

        return -Math.abs(rcl.getCloudlet().getPriority() + inverseOfCloudletId);
    }
/**
     * Computes the initial virtual runtime for a Cloudlet that will be added to the execution list.
     * This virtual runtime is updated as long as the Cloudlet is executed.
     * The initial value is negative to indicate the Cloudlet hasn't started
     * executing yet. The virtual runtime is computed based on the Cloudlet priority.
     *
     * @param rcl Cloudlet to compute the initial virtual runtime
     * @return the computed initial virtual runtime as a negative value
     * to indicate that the Cloudlet hasn't started executing yet
     */
Computes the initial virtual runtime for a Cloudlet that will be added to the execution list.
This virtual runtime is updated as long as the Cloudlet is executed.
The initial value is negative to indicate the Cloudlet hasn't started
executing yet. The virtual runtime is computed based on the Cloudlet priority.

@param rcl Cloudlet to compute the initial virtual runtime
@return the computed initial virtual runtime as a negative value
to indicate that the Cloudlet hasn't started executing yet
Computes the initial virtual runtime for a Cloudlet that will be added to the execution list . This virtual runtime is updated as long as the Cloudlet is executed . The initial value is negative to indicate the Cloudlet hasn ' t started executing yet . The virtual runtime is computed based on the Cloudlet priority . @param rcl Cloudlet to compute the initial virtual runtime @return the computed initial virtual runtime as a negative value to indicate that the Cloudlet hasn ' t started executing yet
private double computeCloudletInitialVirtualRuntime(CloudletExecutionInfo rcl) {
        /*
        A negative virtual runtime indicates the cloudlet has never been executed yet.
        This math was used just to ensure that the first added cloudlets
        will have the lower vruntime, depending of their priorites.
        If all cloudlets have the same priority, the first
        added will start executing first.
        */
        /*
        Inverses the Cloudlet ID dividing the Integer.MAX_VALUE by it,
        because the ID is in fact int. This will make that the lower
        ID return higher values. It ensures that as lower is the ID,
        lower is the negative value returned.
        Inverting the cloudlet ID to get a higher value for lower IDs
        can be understood as resulting in "higher negative" values, that is,
        extreme negative values.
        */
        final double inverseOfCloudletId = Integer.MAX_VALUE/(rcl.getCloudletId()+1.0);
        return -Math.abs(rcl.getCloudlet().getPriority() + inverseOfCloudletId);
    }
private double computeCloudletInitialVirtualRuntime ( CloudletExecutionInfo rcl ) { /*
        A negative virtual runtime indicates the cloudlet has never been executed yet.
        This math was used just to ensure that the first added cloudlets
        will have the lower vruntime, depending of their priorites.
        If all cloudlets have the same priority, the first
        added will start executing first.
        */ /*
        Inverses the Cloudlet ID dividing the Integer.MAX_VALUE by it,
        because the ID is in fact int. This will make that the lower
        ID return higher values. It ensures that as lower is the ID,
        lower is the negative value returned.
        Inverting the cloudlet ID to get a higher value for lower IDs
        can be understood as resulting in "higher negative" values, that is,
        extreme negative values.
        */ final double inverseOfCloudletId = Integer . MAX_VALUE / ( rcl . getCloudletId ( ) + 1.0 ) ; return - Math . abs ( rcl . getCloudlet ( ) . getPriority ( ) + inverseOfCloudletId ) ; }
Computes the initial virtual runtime for a Cloudlet that will be added to the execution list.
Computes the initial virtual runtime for a Cloudlet that will be added to the execution list .