cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/cloudlets/CloudletExecutionInfo.java
public void updateProcessing(long executedInstructions) {
        setLastProcessingTime(cloudlet.getSimulation().clock());

        if(executedInstructions <= 0){
            return;
        }

        this.instructionsFinishedSoFar += executedInstructions;
        this.instructionsFinishedSoFar =
                Math.min(this.instructionsFinishedSoFar, cloudlet.getLength()*Conversion.MILLION);

        final double finishedSoFarByPeMI = instructionsFinishedSoFar / Conversion.MILLION;
        cloudlet.setFinishedLengthSoFar((long)finishedSoFarByPeMI);
    }
/**
     * Updates the length of cloudlet that has already been completed.
     *
     * @param executedInstructions amount of instructions just executed, to be
     * added to the {@link #instructionsFinishedSoFar}, in Instructions (instead of Million Instructions)
     * @pre instructionsExecuted >= 0.0
     * @post $none
     */
Updates the length of cloudlet that has already been completed.
@param executedInstructions amount of instructions just executed, to be
added to the  #instructionsFinishedSoFar, in Instructions (instead of Million Instructions)
@pre instructionsExecuted >= 0.0
@post $none
Updates the length of cloudlet that has already been completed . @param executedInstructions amount of instructions just executed to be added to the #instructionsFinishedSoFar in Instructions ( instead of Million Instructions ) @pre instructionsExecuted > = 0 . 0 @post $none
public void updateProcessing(long executedInstructions) {
        setLastProcessingTime(cloudlet.getSimulation().clock());
        if(executedInstructions <= 0){
            return;
        }
        this.instructionsFinishedSoFar += executedInstructions;
        this.instructionsFinishedSoFar =
                Math.min(this.instructionsFinishedSoFar, cloudlet.getLength()*Conversion.MILLION);
        final double finishedSoFarByPeMI = instructionsFinishedSoFar / Conversion.MILLION;
        cloudlet.setFinishedLengthSoFar((long)finishedSoFarByPeMI);
    }
public void updateProcessing ( long executedInstructions ) { setLastProcessingTime ( cloudlet . getSimulation ( ) . clock ( ) ) ; if ( executedInstructions <= 0 ) { return ; } this . instructionsFinishedSoFar += executedInstructions ; this . instructionsFinishedSoFar = Math . min ( this . instructionsFinishedSoFar , cloudlet . getLength ( ) * Conversion . MILLION ) ; final double finishedSoFarByPeMI = instructionsFinishedSoFar / Conversion . MILLION ; cloudlet . setFinishedLengthSoFar ( ( long ) finishedSoFarByPeMI ) ; }
Updates the length of cloudlet that has already been completed.
Updates the length of cloudlet that has already been completed .