Interface DatacenterCharacteristics

All Superinterfaces:
Identifiable
All Known Implementing Classes:
DatacenterCharacteristicsSimple

public interface DatacenterCharacteristics
extends Identifiable
An interface to be implemented by each class that represents the physical characteristics of a Datacenter.
Since:
CloudSim Plus 1.0
Author:
Manzur Murshed, Rajkumar Buyya, Rodrigo N. Calheiros, Anton Beloglazov, Manoel Campos da Silva Filho
  • Field Details

  • Method Details

    • getId

      long getId()
      Gets the Datacenter id.
      Specified by:
      getId in interface Identifiable
      Returns:
      the id
    • getDatacenter

      Datacenter getDatacenter()
      Gets the Datacenter that owns these characteristics
      Returns:
      the Datacenter
    • getVmm

      java.lang.String getVmm()
      Gets the Virtual Machine Monitor (VMM), also called hypervisor, used in the Datacenter.
      Returns:
      the VMM name
    • setVmm

      DatacenterCharacteristics setVmm​(java.lang.String vmm)
      Sets the vmm.
      Parameters:
      vmm - the new vmm
    • getArchitecture

      java.lang.String getArchitecture()
      Gets the architecture of the Datacenter.
      Returns:
      the architecture
    • setArchitecture

      DatacenterCharacteristics setArchitecture​(java.lang.String architecture)
      Sets the architecture.
      Parameters:
      architecture - the new architecture
    • getOs

      java.lang.String getOs()
      Gets the Operating System (OS) used by the Hosts in the Datacenter.
      Returns:
      the Operating System (OS)
    • setOs

      DatacenterCharacteristics setOs​(java.lang.String os)
      Sets the Operating System (OS).
      Parameters:
      os - the new Operating System (OS)
    • getMips

      double getMips()
      Gets the total MIPS rating, which is the sum of MIPS rating of all Hosts in the Datacenter.
      Returns:
      the sum of MIPS ratings
    • getNumberOfFailedHosts

      long getNumberOfFailedHosts()
      Gets the current number of failed PMs.
      Returns:
      current number of failed PMs the Datacenter has.
    • getNumberOfPes

      int getNumberOfPes()
      Gets the total number of PEs for all PMs.
      Returns:
      number of PEs
    • isWorking

      boolean isWorking()
      Checks whether all PMs of the Datacenter are working properly or not.
      Returns:
      if all PMs are working, otherwise
    • getCostPerBw

      double getCostPerBw()
      Get the monetary cost to use each each Megabit of bandwidth in the Datacenter.
      Returns:
      the cost ($) to use bw
    • setCostPerBw

      DatacenterCharacteristics setCostPerBw​(double costPerBw)
      Sets the monetary cost to use each Megabit of bandwidth.
      Parameters:
      costPerBw - the cost ($) to set
    • getCostPerMem

      double getCostPerMem()
      Get the monetary cost to use each Megabyte of RAM in the Datacenter.
      Returns:
      the cost ($) to use RAM
    • setCostPerMem

      DatacenterCharacteristics setCostPerMem​(double costPerMem)
      Sets the monetary cost to use each Megabyte of RAM in the Datacenter.
      Parameters:
      costPerMem - cost ($) to use RAM
    • getCostPerSecond

      double getCostPerSecond()
      Gets the monetary cost per second of CPU for using the Hosts in the Datacenter.
      Returns:
      the cost ($) per second
    • setCostPerSecond

      DatacenterCharacteristics setCostPerSecond​(double costPerSecond)
      Sets the monetary cost per second of CPU.
      Parameters:
      costPerSecond - the new cost ($) per second
    • getCostPerStorage

      double getCostPerStorage()
      Get the monetary cost to use each Megabyte of storage in the Datacenter.
      Returns:
      the cost ($) to use storage
    • setCostPerStorage

      DatacenterCharacteristics setCostPerStorage​(double costPerStorage)
      Sets the monetary cost to use each Megabyte of storage.
      Parameters:
      costPerStorage - cost ($) to use storage