public class CloudletSchedulerDynamicWorkload extends CloudletSchedulerTimeShared
currentCPUs| Constructor and Description |
|---|
CloudletSchedulerDynamicWorkload(double mips,
int numberOfPes)
Instantiates a new vM scheduler time shared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cloudletFinish(ResCloudlet rcl)
Processes a finished cloudlet.
|
double |
cloudletSubmit(Cloudlet cl)
Receives an cloudlet to be executed in the VM managed by this scheduler.
|
double |
cloudletSubmit(Cloudlet cl,
double fileTransferTime)
Receives an cloudlet to be executed in the VM managed by this scheduler.
|
protected java.util.List<java.lang.Double> |
getCacheCurrentRequestedMips()
Gets the cache current requested mips.
|
protected double |
getCachePreviousTime()
Gets the cache previous time.
|
java.util.List<java.lang.Double> |
getCurrentRequestedMips()
Gets the current mips.
|
double |
getEstimatedFinishTime(ResCloudlet rcl,
double time)
Get estimated cloudlet completion time.
|
double |
getMips()
Gets the mips.
|
int |
getNumberOfPes()
Gets the pes number.
|
double |
getTotalCurrentAllocatedMipsForCloudlet(ResCloudlet rcl,
double time)
Gets the current mips.
|
double |
getTotalCurrentAvailableMipsForCloudlet(ResCloudlet rcl,
java.util.List<java.lang.Double> mipsShare)
Gets the total current mips for the clouddlet.
|
int |
getTotalCurrentMips()
Gets the total current mips.
|
double |
getTotalCurrentRequestedMipsForCloudlet(ResCloudlet rcl,
double time)
Gets the current mips.
|
double |
getTotalMips()
Gets the total mips.
|
double |
getTotalUtilizationOfCpu(double time)
Get utilization created by all cloudlets.
|
java.util.Map<java.lang.String,java.lang.Double> |
getUnderAllocatedMips()
Gets the under allocated mips.
|
protected void |
setCacheCurrentRequestedMips(java.util.List<java.lang.Double> cacheCurrentRequestedMips)
Sets the cache current requested mips.
|
protected void |
setCachePreviousTime(double cachePreviousTime)
Sets the cache previous time.
|
void |
setMips(double mips)
Sets the mips.
|
void |
setNumberOfPes(int pesNumber)
Sets the pes number.
|
void |
setTotalMips(double mips)
Sets the total mips.
|
void |
setUnderAllocatedMips(java.util.Map<java.lang.String,java.lang.Double> underAllocatedMips)
Sets the under allocated mips.
|
void |
updateUnderAllocatedMipsForCloudlet(ResCloudlet rcl,
double mips)
Update under allocated mips for cloudlet.
|
double |
updateVmProcessing(double currentTime,
java.util.List<java.lang.Double> mipsShare)
Updates the processing of cloudlets running under management of this scheduler.
|
cloudletCancel, cloudletPause, cloudletResume, getCapacity, getCloudletExecList, getCloudletFinishedList, getCloudletPausedList, getCloudletStatus, getCurrentRequestedUtilizationOfBw, getCurrentRequestedUtilizationOfRam, getNextFinishedCloudlet, isFinishedCloudlets, migrateCloudlet, runningCloudlets, setCloudletExecList, setCloudletFinishedList, setCloudletPausedListgetCurrentMipsShare, getPreviousTime, setCurrentMipsShare, setPreviousTimepublic CloudletSchedulerDynamicWorkload(double mips,
int numberOfPes)
mips - the mipsnumberOfPes - the pes numberpublic double updateVmProcessing(double currentTime,
java.util.List<java.lang.Double> mipsShare)
updateVmProcessing in class CloudletSchedulerTimeSharedcurrentTime - current simulation timemipsShare - array with MIPS share of each Pe available to the schedulerpublic double cloudletSubmit(Cloudlet cl)
cloudletSubmit in class CloudletSchedulerTimeSharedcl - the clpublic double cloudletSubmit(Cloudlet cl, double fileTransferTime)
cloudletSubmit in class CloudletSchedulerTimeSharedcl - the clfileTransferTime - the file transfer timepublic void cloudletFinish(ResCloudlet rcl)
cloudletFinish in class CloudletSchedulerTimeSharedrcl - finished cloudletpublic double getTotalUtilizationOfCpu(double time)
getTotalUtilizationOfCpu in class CloudletSchedulerTimeSharedtime - the timepublic java.util.List<java.lang.Double> getCurrentRequestedMips()
getCurrentRequestedMips in class CloudletSchedulerTimeSharedpublic double getTotalCurrentRequestedMipsForCloudlet(ResCloudlet rcl, double time)
getTotalCurrentRequestedMipsForCloudlet in class CloudletSchedulerTimeSharedrcl - the rcltime - the timepublic double getTotalCurrentAvailableMipsForCloudlet(ResCloudlet rcl, java.util.List<java.lang.Double> mipsShare)
getTotalCurrentAvailableMipsForCloudlet in class CloudletSchedulerTimeSharedrcl - the rclmipsShare - the mips sharepublic double getTotalCurrentAllocatedMipsForCloudlet(ResCloudlet rcl, double time)
getTotalCurrentAllocatedMipsForCloudlet in class CloudletSchedulerTimeSharedrcl - the rcltime - the timepublic void updateUnderAllocatedMipsForCloudlet(ResCloudlet rcl, double mips)
rcl - the rglmips - the mipspublic double getEstimatedFinishTime(ResCloudlet rcl, double time)
rcl - the rcltime - the timepublic int getTotalCurrentMips()
public void setTotalMips(double mips)
mips - the new total mipspublic double getTotalMips()
public void setNumberOfPes(int pesNumber)
pesNumber - the new pes numberpublic int getNumberOfPes()
public void setMips(double mips)
mips - the new mipspublic double getMips()
public void setUnderAllocatedMips(java.util.Map<java.lang.String,java.lang.Double> underAllocatedMips)
underAllocatedMips - the under allocated mipspublic java.util.Map<java.lang.String,java.lang.Double> getUnderAllocatedMips()
protected double getCachePreviousTime()
protected void setCachePreviousTime(double cachePreviousTime)
cachePreviousTime - the new cache previous timeprotected java.util.List<java.lang.Double> getCacheCurrentRequestedMips()
protected void setCacheCurrentRequestedMips(java.util.List<java.lang.Double> cacheCurrentRequestedMips)
cacheCurrentRequestedMips - the new cache current requested mips