urv.omolsr.data
Class OMOLSRNetworkGraph
java.lang.Object
urv.omolsr.data.OMOLSRNetworkGraph
- All Implemented Interfaces:
- java.io.Serializable
public class OMOLSRNetworkGraph
- extends java.lang.Object
- implements java.io.Serializable
- Author:
- Gerard Paris Aixala
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
graphUtils
public static GraphUtils<OLSRNode,Weight> graphUtils
OMOLSRNetworkGraph
public OMOLSRNetworkGraph(NetworkGraph<OLSRNode,Weight> graph)
computeMinimumSpanningTree
public NetworkGraph<OLSRNode,Weight> computeMinimumSpanningTree(OLSRNode localNode)
getGroupNodes
public java.util.Set<OLSRNode> getGroupNodes()
getLowestBandwithInBytesOfRouteTo
public long getLowestBandwithInBytesOfRouteTo(OLSRNode localNode,
OLSRNode targetNode)
- This method retrieves the lowest credit capacity in bytes of the
nodes in the route to the targetNode (included)
getNetworkGraphCopy
public NetworkGraph<OLSRNode,Weight> getNetworkGraphCopy()
getVirtualNeighbors
public java.util.Set<OLSRNode> getVirtualNeighbors(OLSRNode node)
- Returns the neighbors of the node. Since this is a contracted graph
i.e, only members of the group are present in this graph, virtual
neighbors of a node are the same as "regular" neighbors
- Parameters:
node
-
- Returns:
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object