Class VmCost

java.lang.Object
org.cloudsimplus.vms.VmCost

public class VmCost extends Object
Computes the monetary ($) cost to run a given Vm, including the total cost and individual resource cost, namely: the processing power, bandwidth, memory and storage cost ($).
Since:
CloudSim Plus 1.0
Author:
raysaoliveira
  • Constructor Details

    • VmCost

      public VmCost(Vm vm)
      Creates an instance to compute the monetary cost ($) to run a given VM.
      Parameters:
      vm - the VM to compute its monetary cost
  • Method Details

    • getMemoryCost

      public double getMemoryCost()
      Returns:
      the memory monetary cost ($) of the resource allocated to the VM
    • getBwCost

      public double getBwCost()
      Returns:
      the bandwidth monetary cost ($) of the resource allocated to the VM
    • getProcessingCost

      public double getProcessingCost()
      Returns:
      the processing monetary cost ($) of the PEs allocated from the PM hosting the VM, considering the VM's PEs number and total execution time.
    • getStorageCost

      public double getStorageCost()
      Returns:
      the storage monetary cost ($) of the resource allocated to the VM
    • getTotalCost

      public double getTotalCost()
      Returns:
      the total monetary cost ($) of all resources allocated to the VM, namely the processing power, bandwidth, memory and storage.
    • toString

      public String toString()
      Overrides:
      toString in class Object