org.lucci.madhoc.network.net
Class NetworkInterface
java.lang.Object
org.lucci.madhoc.network.net.NetworkInterface
public final class NetworkInterface
- extends java.lang.Object
- Author:
- luc.hogie
Methods inherited from class java.lang.Object |
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
networkType
public NetworkingTechnology networkType
NetworkInterface
public NetworkInterface()
getMACAddress
public int getMACAddress()
- Returns:
- Returns the macAdress.
getConnections
public java.util.Collection<Connection> getConnections()
getCoverageRadius
public double getCoverageRadius()
- Returns:
- Returns the corerageRadius.
setCoverageRadius
public void setCoverageRadius(double coverageRadius)
- Parameters:
coverageRadius
- The corerageRadius to set.
getNetworkingUnit
public NetworkingUnit getNetworkingUnit()
- Returns:
- Returns the station.
setNetworkingUnit
public void setNetworkingUnit(NetworkingUnit inut)
- Parameters:
inut
- The station to set.
getNeighborhood
public java.util.Collection<NetworkInterface> getNeighborhood()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
getAmplificationRatio
public double getAmplificationRatio()
setAmplificationRatio
public void setAmplificationRatio(double amplificationRatio)
getNetworkingTechnology
public NetworkingTechnology getNetworkingTechnology()
setNetworkingTechnology
public void setNetworkingTechnology(NetworkingTechnology networkType)
hasNeighborsAtTwoHops
public boolean hasNeighborsAtTwoHops()
canSyncTo
public boolean canSyncTo(NetworkInterface surroundingNetworkAdapter)