org.lucci.madhoc.network.net
Class NetworkingUnit

java.lang.Object
  extended by org.lucci.madhoc.network.ComputerUnit
      extended by org.lucci.madhoc.network.net.NetworkingUnit
All Implemented Interfaces:
Configurable

public class NetworkingUnit
extends ComputerUnit

Author:
luc.hogie

Constructor Summary
NetworkingUnit()
           
 
Method Summary
 void configure()
           
 java.util.Collection<Application> getApplicationsInTheNeighborhood(java.lang.Class clazz)
           
 Connection getBestConnectionTo(Station station)
           
 java.util.Collection<Connection> getConnections()
           
 java.util.Collection<Connection> getConnectionsTo(Station station)
           
 MessageBuffer getIncomingMessageQueue()
           
 java.util.Collection<Station> getNeighborhood()
           
 java.util.Collection<Station> getNeighborhoodAtHop(int hop)
           
 NetworkInterface getNetworkInterface(NetworkingTechnology networkType)
           
 java.util.Collection<NetworkInterface> getNetworkInterfaces()
           
 java.util.Collection<Connection> getNewConnections()
           
 MessageBuffer getOutgoingMessageQueue()
           
 int hashCode()
           
 void resetIterationScopedValues()
           
 
Methods inherited from class org.lucci.madhoc.network.ComputerUnit
getStation, setStation
 
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkingUnit

public NetworkingUnit()
Method Detail

configure

public void configure()
               throws java.lang.Throwable
Throws:
java.lang.Throwable

getNeighborhood

public java.util.Collection<Station> getNeighborhood()

getApplicationsInTheNeighborhood

public java.util.Collection<Application> getApplicationsInTheNeighborhood(java.lang.Class clazz)

getOutgoingMessageQueue

public MessageBuffer getOutgoingMessageQueue()

getNetworkInterfaces

public java.util.Collection<NetworkInterface> getNetworkInterfaces()
Returns:
Returns the networkAdapters.

getNetworkInterface

public NetworkInterface getNetworkInterface(NetworkingTechnology networkType)
Parameters:
class1 -
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getConnections

public java.util.Collection<Connection> getConnections()

getConnectionsTo

public java.util.Collection<Connection> getConnectionsTo(Station station)

getBestConnectionTo

public Connection getBestConnectionTo(Station station)

getNewConnections

public java.util.Collection<Connection> getNewConnections()

getNeighborhoodAtHop

public java.util.Collection<Station> getNeighborhoodAtHop(int hop)

resetIterationScopedValues

public void resetIterationScopedValues()

getIncomingMessageQueue

public MessageBuffer getIncomingMessageQueue()