urv.omolsr.data
Class OMOLSRNetworkGraph

java.lang.Object
  extended by 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

Field Summary
static GraphUtils<OLSRNode,Weight> graphUtils
           
 
Constructor Summary
OMOLSRNetworkGraph(NetworkGraph<OLSRNode,Weight> graph)
           
 
Method Summary
 NetworkGraph<OLSRNode,Weight> computeMinimumSpanningTree(OLSRNode localNode)
           
 java.util.Set<OLSRNode> getGroupNodes()
           
 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)
 NetworkGraph<OLSRNode,Weight> getNetworkGraphCopy()
           
 java.util.Set<OLSRNode> getVirtualNeighbors(OLSRNode node)
          Returns the neighbors of the node.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

graphUtils

public static GraphUtils<OLSRNode,Weight> graphUtils
Constructor Detail

OMOLSRNetworkGraph

public OMOLSRNetworkGraph(NetworkGraph<OLSRNode,Weight> graph)
Method Detail

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