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

    • DEFAULT_VMM

      static final String DEFAULT_VMM
      The default Virtual Machine Monitor to be used if not one is set.
      See Also:
    • DEFAULT_ARCH

      static final String DEFAULT_ARCH
      The default architecture of Datacenter Hosts to be used if not one is set.
      See Also:
    • DEFAULT_OS

      static final String DEFAULT_OS
      The default Operating System of Datacenter Hosts to be used if not one is set.
      See Also:
    • NULL

      static final DatacenterCharacteristics NULL
      An attribute that implements the Null Object Design Pattern for Datacenter objects.
  • Method Details

    • getId

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

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

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

      Sets the VMM.
      Parameters:
      vmm - the new VMM
    • getArchitecture

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

      DatacenterCharacteristics setArchitecture(String architecture)
      Sets the architecture of the Datacenter.
      Parameters:
      architecture - the new architecture
    • getOs

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

      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 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