Class CloudletTaskSchedulerSimple

java.lang.Object
org.cloudbus.cloudsim.schedulers.cloudlet.network.CloudletTaskSchedulerSimple
All Implemented Interfaces:
CloudletTaskScheduler

public class CloudletTaskSchedulerSimple
extends java.lang.Object
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.

Since:
CloudSim Plus 1.0
Author:
Saurabh Kumar Garg, Manoel Campos da Silva Filho
  • Field Summary

    Fields inherited from interface org.cloudbus.cloudsim.schedulers.cloudlet.network.CloudletTaskScheduler

    NULL
  • Constructor Summary

    Constructors 
    Constructor Description
    CloudletTaskSchedulerSimple()
    Creates a CloudletTaskSchedulerSimple object.
  • Method Summary

    Modifier and Type Method Description
    boolean addPacketToListOfPacketsSentFromVm​(VmPacket pkt)
    Adds a packet to the list of packets sent by a given VM, targeting the VM of this scheduler.
    void clearVmPacketsToSend()
    Clears the list of VmPacket's to send from the Vm of this scheduler to other VMs.
    Vm getVm()
    Gets the Vm that the CloudletTaskScheduler will sent packets from or receive packets to.
    java.util.List<VmPacket> getVmPacketsToSend()
    Gets a read-only list of VmPacket's to send from the Vm of this scheduler to other VMs.
    boolean isTimeToUpdateCloudletProcessing​(Cloudlet cloudlet)
    Checks if it's time to update the execution of a given Cloudlet.
    void processCloudletTasks​(Cloudlet cloudlet, long partialFinishedMI)
    Process Cloudlet's tasks, such as tasks to send packets from or received by a Cloudlet inside a VM.
    void setVm​(Vm vm)
    Sets the Vm that the CloudletTaskScheduler will sent packets from or receive packets to.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait