sidnet.core.misc
Class NodesList
java.lang.Object
sidnet.core.misc.NodesList
public class NodesList
- extends java.lang.Object
Constructor Summary |
NodesList()
Creates a new instance of DeadEndList |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodesList
public NodesList()
- Creates a new instance of DeadEndList
add
public void add(NetAddress ip,
NodeEntry entry)
add
public void add(NodeEntry n)
add
public void add(NetAddress ip)
remove
public void remove(int id)
remove
public void remove(NetAddress ip)
remove
public void remove(NodeEntry n)
printList
public void printList()
contains
public boolean contains(int nodeId)
contains
public boolean contains(NetAddress ip)
contains
public boolean contains(MacAddress mac)
get
public NodeEntry get(NetAddress ip)
getElementAt
public NodeEntry getElementAt(int index)
getAsLinkedList
public java.util.LinkedList<NodeEntry> getAsLinkedList()
size
public int size()
getFurthestNodeDistanceNCS
public double getFurthestNodeDistanceNCS(NCS_Location2D fromLocation)
getClosestNodeToNCS
public NodeEntry getClosestNodeToNCS(NCS_Location2D targetLocation)
maxCoverage
public double maxCoverage(Location2D referenceLocation,
LocationContext referenceLocationContext)