Class DatacenterCharacteristicsSimple
java.lang.Object
org.cloudsimplus.datacenters.DatacenterCharacteristicsSimple
- All Implemented Interfaces:
Identifiable,DatacenterCharacteristics
Represents static properties of a Datacenter such as architecture,
Operating System (OS), cost and
Distribution.
Each Datacenter must have its own instance of this class.
By default, all instances are created as PRIVATE datacenters.- Since:
- CloudSim Toolkit 1.0
- Author:
- Manzur Murshed, Rajkumar Buyya, Rodrigo N. Calheiros, Anton Beloglazov, Manoel Campos da Silva Filho
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cloudsimplus.datacenters.DatacenterCharacteristics
DatacenterCharacteristics.Distribution -
Field Summary
Fields inherited from interface org.cloudsimplus.datacenters.DatacenterCharacteristics
NULL -
Constructor Summary
ConstructorsConstructorDescriptionDatacenterCharacteristicsSimple(double costPerSecond, double costPerMem, double costPerStorage) Creates a DatacenterCharacteristics with no cost forBW.DatacenterCharacteristicsSimple(double costPerSecond, double costPerMem, double costPerStorage, double costPerBw) Creates a DatacenterCharacteristics. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cloudsimplus.datacenters.DatacenterCharacteristics
getCostPerBw, getCostPerMem, getCostPerSecond, getCostPerStorage, getDatacenter, getDistribution, setCostPerBw, setCostPerMem, setCostPerSecond, setCostPerStorage, setDistribution
-
Constructor Details
-
DatacenterCharacteristicsSimple
public DatacenterCharacteristicsSimple(double costPerSecond, double costPerMem, double costPerStorage) Creates a DatacenterCharacteristics with no cost forBW. The datacenterdistributiontype is set asDatacenterCharacteristics.Distribution.PRIVATEby default.- See Also:
-
DatacenterCharacteristicsSimple
public DatacenterCharacteristicsSimple(double costPerSecond, double costPerMem, double costPerStorage, double costPerBw) Creates a DatacenterCharacteristics. The datacenterdistributiontype is set asDatacenterCharacteristics.Distribution.PRIVATEby default.- See Also:
-
-
Method Details
-
getMips
public double getMips()- Specified by:
getMipsin interfaceDatacenterCharacteristics- Returns:
- the total MIPS rating, which is the sum of the MIPS rating across all
Hosts in the Datacenter.
-
getPesNumber
public int getPesNumber()- Specified by:
getPesNumberin interfaceDatacenterCharacteristics- Returns:
- the total number of PEs for all PMs.
-
getNumberOfFailedHosts
public long getNumberOfFailedHosts()- Specified by:
getNumberOfFailedHostsin interfaceDatacenterCharacteristics- Returns:
- the current number of failed PMs the Datacenter has.
-
isWorking
public boolean isWorking()- Specified by:
isWorkingin interfaceDatacenterCharacteristics- Returns:
- true if all PMs of the Datacenter are working properly, false otherwise
-
getId
public long getId()- Specified by:
getIdin interfaceDatacenterCharacteristics- Specified by:
getIdin interfaceIdentifiable- Returns:
- the
Datacenterid.
-