public class InterferenceLimitedInterface extends NetworkInterface
| Modifier and Type | Field and Description |
|---|---|
protected int |
currentTransmitSpeed |
protected int |
numberOfTransmissions |
ACT_JITTER_S, connections, host, interfacetype, NET_SUB_NS, oldTransmitRange, optimizer, RANGE_ID, SCAN_INTERVAL_ID, SCAN_INTERVAL_S, SPEED_ID, TRANSMIT_RANGE_S, TRANSMIT_SPEED_S, transmitRange, transmitSpeed| Constructor and Description |
|---|
InterferenceLimitedInterface(InterferenceLimitedInterface ni)
Copy constructor
|
InterferenceLimitedInterface(Settings s) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(NetworkInterface anotherInterface)
Tries to connect this host to another host.
|
void |
createConnection(NetworkInterface anotherInterface)
Creates a connection to another host.
|
int |
getTransmitSpeed()
Returns the transmit speed of this network layer
|
boolean |
isTransferring()
Returns true if this interface is actually transmitting data
|
NetworkInterface |
replicate()
Replication function
|
java.lang.String |
toString()
Returns a string representation of the object.
|
void |
update()
Updates the state of current connections (i.e., tears down connections
that are out of range).
|
connect, destroyConnection, disconnect, ensurePositiveValue, getConnections, getHost, getInterfaceType, getLocation, getTransmitRange, isActive, isConnected, isScanning, isWithinRange, moduleValueChanged, reset, setClisteners, setGroupSettings, setHostprotected int currentTransmitSpeed
protected int numberOfTransmissions
public InterferenceLimitedInterface(Settings s)
public InterferenceLimitedInterface(InterferenceLimitedInterface ni)
ni - the copied network interface objectpublic NetworkInterface replicate()
NetworkInterfacereplicate in class NetworkInterfacepublic int getTransmitSpeed()
getTransmitSpeed in class NetworkInterfacepublic void connect(NetworkInterface anotherInterface)
connect in class NetworkInterfaceanotherInterface - The host to connect topublic void update()
update in class NetworkInterfacepublic void createConnection(NetworkInterface anotherInterface)
createConnection in class NetworkInterfaceanotherInterface - The interface to create the connection topublic boolean isTransferring()
isTransferring in class NetworkInterfacepublic java.lang.String toString()
toString in class NetworkInterface