public class PowerHost extends HostDynamicWorkload
| Constructor and Description |
|---|
PowerHost(int id,
RamProvisioner ramProvisioner,
BwProvisioner bwProvisioner,
long storage,
java.util.List<? extends Pe> peList,
VmScheduler vmScheduler,
PowerModel powerModel)
Instantiates a new host.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getEnergyLinearInterpolation(double fromUtilization,
double toUtilization,
double time)
Gets the energy consumption using linear interpolation of the utilization change.
|
double |
getMaxPower()
Gets the max power that can be consumed by the host.
|
double |
getPower()
Gets the power.
|
protected double |
getPower(double utilization)
Gets the power.
|
PowerModel |
getPowerModel()
Gets the power model.
|
protected void |
setPowerModel(PowerModel powerModel)
Sets the power model.
|
addStateHistoryEntry, getCompletedVms, getMaxUtilization, getMaxUtilizationAmongVmsPes, getPreviousUtilizationMips, getPreviousUtilizationOfCpu, getStateHistory, getUtilizationMips, getUtilizationOfBw, getUtilizationOfCpu, getUtilizationOfCpuMips, getUtilizationOfRam, setPreviousUtilizationMips, setUtilizationMips, updateVmsProcessingaddMigratingInVm, allocatePesForVm, deallocatePesForVm, getAllocatedMipsForVm, getAvailableMips, getBw, getBwProvisioner, getDatacenter, getId, getMaxAvailableMips, getNumberOfFreePes, getNumberOfPes, getPeList, getRam, getRamProvisioner, getStorage, getTotalAllocatedMipsForVm, getTotalMips, getVm, getVmList, getVmScheduler, getVmsMigratingIn, isFailed, isSuitableForVm, reallocateMigratingInVms, removeMigratingInVm, setBwProvisioner, setDatacenter, setFailed, setFailed, setId, setPeList, setPeStatus, setRamProvisioner, setStorage, setVmScheduler, vmCreate, vmDeallocate, vmDeallocateAll, vmDestroy, vmDestroyAllpublic PowerHost(int id,
RamProvisioner ramProvisioner,
BwProvisioner bwProvisioner,
long storage,
java.util.List<? extends Pe> peList,
VmScheduler vmScheduler,
PowerModel powerModel)
id - the idramProvisioner - the ram provisionerbwProvisioner - the bw provisionerstorage - the storagepeList - the pe listvmScheduler - the VM schedulerpublic double getPower()
protected double getPower(double utilization)
utilization - the utilizationpublic double getMaxPower()
public double getEnergyLinearInterpolation(double fromUtilization,
double toUtilization,
double time)
fromUtilization - the from utilizationtoUtilization - the to utilizationtime - the timeprotected void setPowerModel(PowerModel powerModel)
powerModel - the new power modelpublic PowerModel getPowerModel()