interfaces
Class ConnectivityOptimizer

java.lang.Object
  extended by interfaces.ConnectivityOptimizer
Direct Known Subclasses:
ConnectivityGrid

public abstract class ConnectivityOptimizer
extends java.lang.Object

A superclass for schemes for optimizing the location of possible contacts with network interfaces of a specific range


Constructor Summary
ConnectivityOptimizer()
           
 
Method Summary
abstract  void addInterface(NetworkInterface ni)
          Adds a network interface to the optimizer (unless it is already present)
abstract  void addInterfaces(java.util.Collection<NetworkInterface> interfaces)
          Adds a collection of network interfaces to the optimizer (except of those already added
abstract  java.util.Collection<NetworkInterface> getAllInterfaces()
          Finds all other interfaces that are registered to the ConnectivityOptimizer
abstract  java.util.Collection<NetworkInterface> getNearInterfaces(NetworkInterface ni)
          Finds all network interfaces that might be located so that they can be connected with the network interface
abstract  void updateLocation(NetworkInterface ni)
          Updates a network interface's location
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectivityOptimizer

public ConnectivityOptimizer()
Method Detail

addInterface

public abstract void addInterface(NetworkInterface ni)
Adds a network interface to the optimizer (unless it is already present)


addInterfaces

public abstract void addInterfaces(java.util.Collection<NetworkInterface> interfaces)
Adds a collection of network interfaces to the optimizer (except of those already added


updateLocation

public abstract void updateLocation(NetworkInterface ni)
Updates a network interface's location


getNearInterfaces

public abstract java.util.Collection<NetworkInterface> getNearInterfaces(NetworkInterface ni)
Finds all network interfaces that might be located so that they can be connected with the network interface

Parameters:
ni - network interface that needs to be connected
Returns:
A collection of network interfaces within proximity

getAllInterfaces

public abstract java.util.Collection<NetworkInterface> getAllInterfaces()
Finds all other interfaces that are registered to the ConnectivityOptimizer