public class SimpleBroadcastInterface extends NetworkInterface
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 |
|---|
SimpleBroadcastInterface(Settings s)
Reads the interface settings from the Settings file
|
SimpleBroadcastInterface(SimpleBroadcastInterface ni)
Copy constructor
|
| 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.
|
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.
|
connect, destroyConnection, disconnect, ensurePositiveValue, getConnections, getHost, getInterfaceType, getLocation, getTransmitRange, getTransmitSpeed, isActive, isConnected, isScanning, isTransferring, isWithinRange, moduleValueChanged, reset, setClisteners, setGroupSettings, setHostpublic SimpleBroadcastInterface(Settings s)
public SimpleBroadcastInterface(SimpleBroadcastInterface ni)
ni - the copied network interface objectpublic NetworkInterface replicate()
NetworkInterfacereplicate in class NetworkInterfacepublic void connect(NetworkInterface anotherInterface)
connect in class NetworkInterfaceanotherInterface - The interface to connect topublic void update()
update in class NetworkInterfacepublic void createConnection(NetworkInterface anotherInterface)
createConnection in class NetworkInterfaceanotherInterface - The interface to create the connection topublic java.lang.String toString()
toString in class NetworkInterface