org.lucci.madhoc.network.net
Class NetworkingUnit
java.lang.Object
org.lucci.madhoc.network.ComputerUnit
org.lucci.madhoc.network.net.NetworkingUnit
- All Implemented Interfaces:
- Configurable
public class NetworkingUnit
- extends ComputerUnit
- Author:
- luc.hogie
Methods inherited from class java.lang.Object |
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
NetworkingUnit
public NetworkingUnit()
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()