Package | Description |
---|---|
com.samysadi.acs.hardware.network | |
com.samysadi.acs.hardware.network.routingprotocol | |
com.samysadi.acs.user |
This package contains definitions for user entities of the simulator.
|
com.samysadi.acs.utility.factory |
This package contains definitions for different factories.
|
com.samysadi.acs.virtualization |
This package contains definitions for virtualization entities of the simulator.
|
Modifier and Type | Class and Description |
---|---|
class |
NetworkInterfaceDefault |
Modifier and Type | Method and Description |
---|---|
NetworkInterface |
NetworkInterface.clone()
The clone will have the same up and down links and ip / mask.
|
NetworkInterface |
NetworkLinkDefault.getFirstInterface() |
NetworkInterface |
NetworkLink.getFirstInterface() |
NetworkInterface |
NetworkInterfaceDefault.getRemoteNetworkInterface() |
NetworkInterface |
NetworkInterface.getRemoteNetworkInterface()
Returns null or the remote interface that is connected to this interface through up-link or down-link.
|
NetworkInterface |
NetworkLinkDefault.getSecondInterface() |
NetworkInterface |
NetworkLink.getSecondInterface() |
Modifier and Type | Method and Description |
---|---|
List<NetworkInterface> |
NetworkDeviceDefault.getInterfaces() |
List<NetworkInterface> |
NetworkDevice.getInterfaces()
Returns the list of interfaces contained within this NetworkDevice.
|
Constructor and Description |
---|
NetworkLinkDefault(NetworkInterface ni0,
NetworkInterface ni1) |
Modifier and Type | Method and Description |
---|---|
Iterator<NetworkInterface> |
Route.iterator()
An iterator over the interfaces of this route in proper order.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Route.add(NetworkInterface networkInterface)
Adds the given interface to this route and returns true.
|
void |
RoutingProtocolDefault.addRoutingHint(IpAddress destinationIpStart,
IpAddress destinationIpEnd,
NetworkInterface nextInterface) |
void |
RoutingProtocol.addRoutingHint(IpAddress destinationIpStart,
IpAddress destinationIpEnd,
NetworkInterface nextInterface)
Adds a hint for the routing protocol.
Implementations can perform faster routing when looking for a route to a device whose IP has already an associated routing hint. |
boolean |
Route.prepend(NetworkInterface networkInterface)
Adds the given interface in the beginning of the current route and returns true.
|
static Route |
Route.toRoute(NetworkInterface... networkInterfaces) |
Modifier and Type | Method and Description |
---|---|
void |
ThinClientVirtualMachineDefault.setUsableNetworkInterfaces(List<NetworkInterface> networkInterfaces) |
Modifier and Type | Method and Description |
---|---|
static NetworkInterface[] |
FactoryUtils.linkDevices(Config config,
NetworkDevice device0,
NetworkDevice device1,
long linkLatency,
double linkLossRate)
This calls
FactoryUtils.linkDevices(Config, NetworkDevice, NetworkDevice, long, long, long, double)
such that linkUpBw and linkDownBw are gotten from the device0 configuration contexted with
FactoryUtils.NetworkInterface_CONTEXT (default is 100MiB/s ). |
static NetworkInterface[] |
FactoryUtils.linkDevices(Config config,
NetworkDevice device0,
NetworkDevice device1,
long linkUpBw,
long linkDownBw,
long linkLatency,
double linkLossRate)
This method calls
Factory.linkDevices(NetworkDevice, NetworkDevice, Class, Class, Class, Class, long, long, long, double)
with the following parameters:
networkInterface0Class: is gotten from device0 configuration contexted with FactoryUtils.NetworkInterface_CONTEXT ;
networkInterface1Class: is gotten from device1 configuration contexted with FactoryUtils.NetworkInterface_CONTEXT ;
networkLinkClass: is gotten from given configuration contexted with FactoryUtils.NetworkLink_CONTEXT ;
networkProvisionerClass: is gotten from given configuration contexted with FactoryUtils.NetworkLink_CONTEXT . |
NetworkInterface[] |
Factory.linkDevices(NetworkDevice device0,
NetworkDevice device1,
Class<?> networkInterface0Class,
Class<?> networkInterface1Class,
Class<?> networkLinkClass,
Class<?> networkProvisionerClass,
long linkUpBw,
long linkDownBw,
long linkLatency,
double linkLossRate)
Creates a symmetrical connection (independent upload and download operations)
between device0 and device1 and returns an array containing the two created
NetworkInterface s. |
NetworkInterface |
Factory.newNetworkInterface(Class<?> clazz,
NetworkDevice parent) |
Modifier and Type | Method and Description |
---|---|
NetworkLink |
Factory.newNetworkLink(Class<?> clazz,
Entity parent,
NetworkInterface ni0,
NetworkInterface ni1) |
Modifier and Type | Method and Description |
---|---|
List<NetworkInterface> |
VirtualMachineDefault.getUsableNetworkInterfaces() |
List<NetworkInterface> |
VirtualMachine.getUsableNetworkInterfaces()
Returns the network interfaces that this virtual machine is allowed to use.
|
Modifier and Type | Method and Description |
---|---|
void |
VirtualMachineDefault.setUsableNetworkInterfaces(List<NetworkInterface> networkInterfaces) |
void |
VirtualMachine.setUsableNetworkInterfaces(List<NetworkInterface> networkInterfaces)
Updates the network interfaces that this virtual machine is allowed to use.
|