Uses of Interface
org.cloudbus.cloudsim.network.switches.Switch
Package | Description |
---|---|
org.cloudbus.cloudsim.datacenters.network |
Provides network-enabled
Datacenter implementations. |
org.cloudbus.cloudsim.network.switches |
Provides classes that implement the
Switch interface
to allow creating Network Switches that compose a network topology. |
-
Uses of Switch in org.cloudbus.cloudsim.datacenters.network
Methods in org.cloudbus.cloudsim.datacenters.network that return types with arguments of type Switch Modifier and Type Method Description java.util.List<Switch>
NetworkDatacenter. getEdgeSwitch()
Gets a map of all Edge Switches in the Datacenter network, where each key is the switch id and each value is the switch itself.java.util.List<Switch>
NetworkDatacenter. getSwitchMap()
Gets a read-only list of network Datacenter's Switches.Methods in org.cloudbus.cloudsim.datacenters.network with parameters of type Switch Modifier and Type Method Description void
NetworkDatacenter. addSwitch(Switch swt)
Adds aSwitch
to the Datacenter. -
Uses of Switch in org.cloudbus.cloudsim.network.switches
Classes in org.cloudbus.cloudsim.network.switches that implement Switch Modifier and Type Class Description class
AbstractSwitch
A base class for implementing Network Switch.class
AggregateSwitch
This class represents an Aggregate Switch in a Datacenter network.class
EdgeSwitch
Represents an Edge Switch in a Datacenter network, which can be connected toNetworkHost
s.class
RootSwitch
This class allows to simulate Root switch which connects Datacenters to external network.Fields in org.cloudbus.cloudsim.network.switches declared as Switch Modifier and Type Field Description static Switch
Switch. NULL
An attribute that implements the Null Object Design Pattern forSwitch
objects.Methods in org.cloudbus.cloudsim.network.switches that return types with arguments of type Switch Modifier and Type Method Description java.util.List<Switch>
AbstractSwitch. getDownlinkSwitches()
java.util.List<Switch>
Switch. getDownlinkSwitches()
Gets the list of Switches in the lower layer that this Switch is connected to.java.util.List<Switch>
AbstractSwitch. getUplinkSwitches()
java.util.List<Switch>
Switch. getUplinkSwitches()
Gets the list of Switches in the upper layer that this Switch is connected to.Methods in org.cloudbus.cloudsim.network.switches with parameters of type Switch Modifier and Type Method Description protected void
AbstractSwitch. addPacketToSendToDownlinkSwitch(Switch downlinkSwitch, HostPacket packet)
Adds a packet that will be sent to a downlinkSwitch
.protected void
AbstractSwitch. addPacketToSendToUplinkSwitch(Switch uplinkSwitch, HostPacket packet)
Adds a packet that will be sent to a uplinkSwitch
.protected java.util.List<HostPacket>
AbstractSwitch. getDownlinkSwitchPacketList(Switch downlinkSwitch)
Gets the list of packets to be sent to a downlink switch.protected java.util.List<HostPacket>
AbstractSwitch. getUplinkSwitchPacketList(Switch uplinkSwitch)
Gets the list of packets to be sent to an uplink switch.