DatacenterNull

final class DatacenterNull implements Datacenter

A class that implements the Null Object Design Pattern for Datacenter class.

Author:Manoel Campos da Silva Filho

See also: Datacenter.NULL

Methods

addHost

public Datacenter addHost(Host host)

addHostList

public <T extends Host> Datacenter addHostList(List<T> hostList)

addOnHostAvailableListener

public Datacenter addOnHostAvailableListener(EventListener<HostEventInfo> listener)

compareTo

public int compareTo(SimEntity entity)

getBandwidthPercentForMigration

public double getBandwidthPercentForMigration()

getCharacteristics

public DatacenterCharacteristics getCharacteristics()

getDatacenterStorage

public DatacenterStorage getDatacenterStorage()

getHost

public Host getHost(int index)

getHostById

public Host getHostById(long id)

getHostList

public List<Host> getHostList()

getId

public long getId()

getName

public String getName()

getPower

public double getPower()

getPowerInKWattsHour

public double getPowerInKWattsHour()

getSchedulingInterval

public double getSchedulingInterval()

getSimulation

public Simulation getSimulation()

getState

public State getState()

getVmAllocationPolicy

public VmAllocationPolicy getVmAllocationPolicy()

getVmList

public List<Vm> getVmList()

isAlive

public boolean isAlive()

isFinished

public boolean isFinished()

isStarted

public boolean isStarted()

processEvent

public void processEvent(SimEvent evt)

removeHost

public <T extends Host> Datacenter removeHost(T host)

run

public void run()

schedule

public boolean schedule(SimEvent evt)

schedule

public boolean schedule(SimEntity dest, double delay, int tag, Object data)

schedule

public boolean schedule(double delay, int tag, Object data)

schedule

public boolean schedule(SimEntity dest, double delay, int tag)

setBandwidthPercentForMigration

public void setBandwidthPercentForMigration(double bandwidthPercentForMigration)

setDatacenterStorage

public void setDatacenterStorage(DatacenterStorage datacenterStorage)

setName

public SimEntity setName(String newName)

setSchedulingInterval

public Datacenter setSchedulingInterval(double schedulingInterval)

setSimulation

public SimEntity setSimulation(Simulation simulation)

setState

public SimEntity setState(State state)

shutdownEntity

public void shutdownEntity()

start

public void start()

toString

public String toString()