org.lucci.madhoc.network.net
Class NetworkInterface

java.lang.Object
  extended by org.lucci.madhoc.network.net.NetworkInterface

public final class NetworkInterface
extends java.lang.Object

Author:
luc.hogie

Field Summary
 NetworkingTechnology networkType
           
 
Constructor Summary
NetworkInterface()
           
 
Method Summary
 boolean canSyncTo(NetworkInterface surroundingNetworkAdapter)
           
 double getAmplificationRatio()
           
 java.util.Collection<Connection> getConnections()
           
 double getCoverageRadius()
           
 int getMACAddress()
           
 java.util.Collection<NetworkInterface> getNeighborhood()
           
 NetworkingTechnology getNetworkingTechnology()
           
 NetworkingUnit getNetworkingUnit()
           
 int hashCode()
           
 boolean hasNeighborsAtTwoHops()
           
 void setAmplificationRatio(double amplificationRatio)
           
 void setCoverageRadius(double coverageRadius)
           
 void setNetworkingTechnology(NetworkingTechnology networkType)
           
 void setNetworkingUnit(NetworkingUnit inut)
           
 
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

networkType

public NetworkingTechnology networkType
Constructor Detail

NetworkInterface

public NetworkInterface()
Method Detail

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)