cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/vms/power/PowerVm.java
public void addUtilizationHistoryValue(final double utilization) {
    	/*if(getUtilizationHistory().size()==0 && utilization==0.0) {
    		this.getHost().destroyVm(vm);
    	}*/
        utilizationHistory.add(0, utilization);
        if (getUtilizationHistory().size() > MAX_HISTORY_ENTRIES) {
            utilizationHistory.remove(MAX_HISTORY_ENTRIES);
        }
    }
/**
     * Adds a CPU utilization percentage history value to the begining of the History List.
     *
     * @param utilization the CPU utilization percentage to add
     */
Adds a CPU utilization percentage history value to the begining of the History List.
@param utilization the CPU utilization percentage to add
Adds a CPU utilization percentage history value to the begining of the History List . @param utilization the CPU utilization percentage to add
public void addUtilizationHistoryValue(final double utilization) {
    	/*if(getUtilizationHistory().size()==0 && utilization==0.0) {
    		this.getHost().destroyVm(vm);
    	}*/
        utilizationHistory.add(0, utilization);
        if (getUtilizationHistory().size() > MAX_HISTORY_ENTRIES) {
            utilizationHistory.remove(MAX_HISTORY_ENTRIES);
        }
    }
public void addUtilizationHistoryValue ( final double utilization ) { /*if(getUtilizationHistory().size()==0 && utilization==0.0) {
    		this.getHost().destroyVm(vm);
    	}*/ utilizationHistory . add ( 0 , utilization ) ; if ( getUtilizationHistory ( ) . size ( ) > MAX_HISTORY_ENTRIES ) { utilizationHistory . remove ( MAX_HISTORY_ENTRIES ) ; } }
Adds a CPU utilization percentage history value to the begining of the History List.
Adds a CPU utilization percentage history value to the begining of the History List .