|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcore.NetworkInterface
interfaces.SimpleBroadcastInterface
public class SimpleBroadcastInterface
A simple Network Interface that provides a constant bit-rate service, where one transmission can be on at a time.
Field Summary |
---|
Fields inherited from class core.NetworkInterface |
---|
connections, host, interfacetype, optimizer, RANGE_ID, SCAN_INTERVAL_ID, SCAN_INTERVAL_S, SPEED_ID, TRANSMIT_RANGE_S, TRANSMIT_SPEED_S, transmitRange, transmitSpeed |
Constructor Summary | |
---|---|
SimpleBroadcastInterface(Settings s)
Reads the interface settings from the Settings file |
|
SimpleBroadcastInterface(SimpleBroadcastInterface ni)
Copy constructor |
Method Summary | |
---|---|
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 (ie tears down connections that are out of range). |
Methods inherited from class core.NetworkInterface |
---|
connect, destroyConnection, disconnect, ensurePositiveValue, getAddress, getConnections, getHost, getInterfaceType, getLocation, getTransmitRange, getTransmitSpeed, isConnected, isScanning, isWithinRange, moduleValueChanged, reset, setClisteners, setHost |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimpleBroadcastInterface(Settings s)
public SimpleBroadcastInterface(SimpleBroadcastInterface ni)
ni
- the copied network interface objectMethod Detail |
---|
public NetworkInterface replicate()
NetworkInterface
replicate
in class NetworkInterface
public void connect(NetworkInterface anotherInterface)
connect
in class NetworkInterface
anotherInterface
- The interface to connect topublic void update()
update
in class NetworkInterface
public void createConnection(NetworkInterface anotherInterface)
createConnection
in class NetworkInterface
anotherInterface
- The interface to create the connection topublic java.lang.String toString()
toString
in class NetworkInterface
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |