public interface PowerHost extends HostDynamicWorkload
NullPointerException
when
using the NULL
object instead of attributing null
to
PowerHost
variables.Modifier and Type | Field and Description |
---|---|
static PowerHost |
NULL
An attribute that implements the Null Object Design Pattern for
PowerHost
objects. |
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 consumption of the host.
|
PowerModel |
getPowerModel()
Gets the power model.
|
PowerHost |
setPowerModel(PowerModel powerModel)
Sets the power model.
|
addStateHistoryEntry, getFinishedVms, getMaxUtilization, getMaxUtilizationAmongVmsPes, getPreviousUtilizationMips, getPreviousUtilizationOfCpu, getStateHistory
addMigratingInVm, addOnUpdateProcessingListener, addVmMigratingOut, allocatePesForVm, deallocatePesForVm, destroyAllVms, destroyVm, getAllocatedMipsForVm, getAvailableMips, getAvailableStorage, getBwProvisioner, getDatacenter, getMaxAvailableMips, getNumberOfFailedPes, getNumberOfFreePes, getNumberOfWorkingPes, getPeList, getProvisioner, getRamProvisioner, getTotalAllocatedMipsForVm, getTotalMipsCapacity, getUtilizationOfBw, getUtilizationOfCpu, getUtilizationOfCpuMips, getUtilizationOfRam, getVm, getVmList, getVmScheduler, getVmsMigratingIn, getVmsMigratingOut, getWorkingPeList, isFailed, isSuitableForVm, reallocateMigratingInVms, removeMigratingInVm, removeOnUpdateProcessingListener, removeVmMigratingIn, removeVmMigratingOut, setBwProvisioner, setDatacenter, setFailed, setPeStatus, setRamProvisioner, setSimulation, setVmScheduler, updateProcessing, vmCreate
getBw, getMips, getNumberOfPes, getRam, getSimulation, getStorage
setId
getId
getResource, getResources
compareTo
double getEnergyLinearInterpolation(double fromUtilization, double toUtilization, double time)
fromUtilization
- the initial utilization percentagetoUtilization
- the final utilization percentagetime
- the timedouble getMaxPower()
double getPower()
PowerModel getPowerModel()
PowerHost setPowerModel(PowerModel powerModel)
powerModel
- the new power modelCopyright © 2015–2017 Systems, Security and Image Communication Lab - Instituto de Telecomunicações (IT) - Universidade da Beira Interior (UBI) - Instituto Federal de Educação Ciência e Tecnologia do Tocantins (IFTO). All rights reserved.