DatacenterCharacteristicsSimple

public class DatacenterCharacteristicsSimple implements DatacenterCharacteristics

Represents static properties of a Datacenter such as architecture, Operating System (OS), management policy (time- or space-shared), cost and time zone at which the resource is located along resource configuration. Each Datacenter has to have its own instance of this class, since it stores the Datacenter host list.

Author:Manzur Murshed, Rajkumar Buyya, Rodrigo N. Calheiros, Anton Beloglazov

Constructors

DatacenterCharacteristicsSimple

public DatacenterCharacteristicsSimple(Datacenter datacenter)

Creates a DatacenterCharacteristics with default values for architecture, OS, Time Zone and VMM. The costs for BW, getCostPerMem() () RAM} and getCostPerStorage() () Storage} are set to zero.

Methods

getArchitecture

public String getArchitecture()

getCostPerBw

public double getCostPerBw()

getCostPerMem

public double getCostPerMem()

getCostPerSecond

public double getCostPerSecond()

getCostPerStorage

public double getCostPerStorage()

getDatacenter

public Datacenter getDatacenter()

getId

public long getId()

Gets the Datacenter id, setup when Datacenter is created.

getMips

public double getMips()

getNumberOfFailedHosts

public long getNumberOfFailedHosts()

getNumberOfFreePes

public int getNumberOfFreePes()

getNumberOfPes

public int getNumberOfPes()

getOs

public String getOs()

getTimeZone

public double getTimeZone()

getVmm

public String getVmm()

isWorking

public boolean isWorking()

setArchitecture

public final DatacenterCharacteristics setArchitecture(String architecture)

setCostPerBw

public final DatacenterCharacteristics setCostPerBw(double costPerBw)

setCostPerMem

public final DatacenterCharacteristics setCostPerMem(double costPerMem)

setCostPerSecond

public final DatacenterCharacteristics setCostPerSecond(double costPerSecond)

setCostPerStorage

public final DatacenterCharacteristics setCostPerStorage(double costPerStorage)

setOs

public final DatacenterCharacteristics setOs(String os)

setTimeZone

public final DatacenterCharacteristics setTimeZone(double timeZone)

setVmm

public final DatacenterCharacteristics setVmm(String vmm)