SwitchNull

final class SwitchNull implements Switch, SimEntityNullBase

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

Author:Manoel Campos da Silva Filho

See also: Switch.NULL

Methods

compareTo

public int compareTo(SimEntity entity)

downlinkTransferDelay

public double downlinkTransferDelay(HostPacket packet, int simultaneousPackets)

getDatacenter

public NetworkDatacenter getDatacenter()

getDownlinkBandwidth

public double getDownlinkBandwidth()

getDownlinkSwitches

public List<Switch> getDownlinkSwitches()

getLevel

public int getLevel()

getPorts

public int getPorts()

getSwitchingDelay

public double getSwitchingDelay()

getUplinkBandwidth

public double getUplinkBandwidth()

getUplinkSwitches

public List<Switch> getUplinkSwitches()

setDatacenter

public void setDatacenter(NetworkDatacenter datacenter)

setDownlinkBandwidth

public void setDownlinkBandwidth(double downlinkBandwidth)

setPorts

public void setPorts(int ports)

setSwitchingDelay

public void setSwitchingDelay(double switchingDelay)

setUplinkBandwidth

public void setUplinkBandwidth(double uplinkBandwidth)

uplinkTransferDelay

public double uplinkTransferDelay(HostPacket packet, int simultaneousPackets)