Class VmCost
java.lang.Object
org.cloudsimplus.vms.VmCost
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
VmCost
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
-