public class PowerVm extends Vm
| Modifier and Type | Field and Description |
|---|---|
static int |
HISTORY_LENGTH
The Constant HISTORY_LENGTH.
|
| Constructor and Description |
|---|
PowerVm(int id,
int userId,
double mips,
int pesNumber,
int ram,
long bw,
long size,
int priority,
java.lang.String vmm,
CloudletScheduler cloudletScheduler,
double schedulingInterval)
Instantiates a new power vm.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addUtilizationHistoryValue(double utilization)
Adds the utilization history value.
|
double |
getPreviousTime()
Gets the previous time.
|
double |
getSchedulingInterval()
Gets the scheduling interval.
|
protected java.util.List<java.lang.Double> |
getUtilizationHistory()
Gets the utilization history.
|
double |
getUtilizationMad()
Gets the utilization MAD in MIPS.
|
double |
getUtilizationMean()
Gets the utilization mean in percents.
|
double |
getUtilizationVariance()
Gets the utilization variance in MIPS.
|
void |
setPreviousTime(double previousTime)
Sets the previous time.
|
protected void |
setSchedulingInterval(double schedulingInterval)
Sets the scheduling interval.
|
double |
updateVmProcessing(double currentTime,
java.util.List<java.lang.Double> mipsShare)
Updates the processing of cloudlets running on this VM.
|
addStateHistoryEntry, getBw, getCloudletScheduler, getCurrentAllocatedBw, getCurrentAllocatedMips, getCurrentAllocatedRam, getCurrentAllocatedSize, getCurrentRequestedBw, getCurrentRequestedMaxMips, getCurrentRequestedMips, getCurrentRequestedRam, getCurrentRequestedTotalMips, getHost, getId, getMips, getNumberOfPes, getRam, getSize, getStateHistory, getTotalUtilizationOfCpu, getTotalUtilizationOfCpuMips, getUid, getUid, getUserId, getVmm, isBeingInstantiated, isInMigration, setBeingInstantiated, setBw, setCloudletScheduler, setCurrentAllocatedBw, setCurrentAllocatedMips, setCurrentAllocatedRam, setCurrentAllocatedSize, setHost, setId, setInMigration, setMips, setNumberOfPes, setRam, setSize, setUid, setUserId, setVmmpublic static final int HISTORY_LENGTH
public PowerVm(int id,
int userId,
double mips,
int pesNumber,
int ram,
long bw,
long size,
int priority,
java.lang.String vmm,
CloudletScheduler cloudletScheduler,
double schedulingInterval)
id - the iduserId - the user idmips - the mipspesNumber - the pes numberram - the rambw - the bwsize - the sizepriority - the priorityvmm - the vmmcloudletScheduler - the cloudlet schedulerschedulingInterval - the scheduling intervalpublic double updateVmProcessing(double currentTime,
java.util.List<java.lang.Double> mipsShare)
updateVmProcessing in class VmcurrentTime - current simulation timemipsShare - array with MIPS share of each Pe available to the schedulerpublic double getUtilizationMad()
public double getUtilizationMean()
public double getUtilizationVariance()
public void addUtilizationHistoryValue(double utilization)
utilization - the utilizationprotected java.util.List<java.lang.Double> getUtilizationHistory()
public double getPreviousTime()
public void setPreviousTime(double previousTime)
previousTime - the new previous timepublic double getSchedulingInterval()
protected void setSchedulingInterval(double schedulingInterval)
schedulingInterval - the schedulingInterval to set