/** * Gets the total monetary cost of all resources allocated to the VM, * namely the processing power, bandwidth, memory and storage. * * @return */ public double getTotalCost() { return getProcessingCost() + getStorageCost() + getMemoryCost() + getBwCost(); } }