CloudletTaskSchedulerSimple

public class CloudletTaskSchedulerSimple implements CloudletTaskScheduler

Implements a policy of scheduling performed by a virtual machine to process CloudletTasks of a NetworkCloudlet.

It also schedules the network communication among the cloudlets, managing the time a cloudlet stays blocked waiting the response of a network package sent to another cloudlet.

Author:Saurabh Kumar Garg, Manoel Campos da Silva Filho

Constructors

CloudletTaskSchedulerSimple

public CloudletTaskSchedulerSimple()

Creates a CloudletTaskSchedulerSimple object.

Methods

addPacketToListOfPacketsSentFromVm

public boolean addPacketToListOfPacketsSentFromVm(VmPacket pkt)

clearVmPacketsToSend

public void clearVmPacketsToSend()

getVm

public Vm getVm()

getVmPacketsToSend

public List<VmPacket> getVmPacketsToSend()

isTimeToUpdateCloudletProcessing

public boolean isTimeToUpdateCloudletProcessing(Cloudlet cloudlet)

processCloudletTasks

public void processCloudletTasks(Cloudlet cloudlet, long partialFinishedMI)

setVm

public void setVm(Vm vm)