|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object urv.omolsr.data.OMOLSRData
public class OMOLSRData
This class handles all the data related to the construction of the multicast overlay in the local node. It maintains a list of virtual neighbours for each multicast group, as well as link state table for each group. OMCastData also provides methods to obtain the headers of the messages that must be forwarded.
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
log
|
Constructor Summary | |
---|---|
OMOLSRData(OLSRNode localNode)
|
Method Summary | |
---|---|
void |
computeMST()
|
java.util.Set<OLSRNode> |
getGroupNodes()
|
HashMapSet<OLSRNode,OLSRNode> |
getHeadersForForwardingNodes(java.util.Set<OLSRNode> virtualNeighborsToForwardSet,
java.util.Set<OLSRNode> nonVirtualNeighborsToForwardSet)
Returns the header that must be set in each message when forwarding a multicast message IMPORTANT: now all nodes receive exactly the same header (broadcast reminiscence), although it should only receive |
HashMapSet<OLSRNode,OLSRNode> |
getHeadersForSource(OLSRNode localOLSRNode)
Obtains the headers to be sent into a multicast message |
java.util.Set<OLSRNode> |
getNonVirtualNeighborsExistingInSet(OLSRNode localOLSRNode,
java.util.HashSet<OLSRNode> nodeSet)
Returns a set of node which are not virtualneighbors of the given node and also exist in the given list |
java.util.Set<OLSRNode> |
getNonVirtualNeighborsInSubtree(java.util.Set<OLSRNode> nonVirtualNeighborsToForwardSet,
OLSRNode directDestinationNode)
Gets the subtree under the direct destination node and returns the nodes which are present in both subtree and nonVirtualNeighbors sets |
java.util.Set<OLSRNode> |
getTemporalNodes()
|
java.util.Set<OLSRNode> |
getVirtualNeighbors(OLSRNode node)
|
java.util.Set<OLSRNode> |
getVirtualNeighborsExistingInSet(OLSRNode localOLSRNode,
java.util.HashSet<OLSRNode> nodeSet)
Returns a set of node which are virtualneighbors of the given node and also exist in the given list |
java.lang.String |
toString()
|
void |
updateOMOLSRNetworkGraph(OMOLSRNetworkGraph omolsrNetworkGraph)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final org.apache.commons.logging.Log log
Constructor Detail |
---|
public OMOLSRData(OLSRNode localNode)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public void computeMST()
public java.util.Set<OLSRNode> getGroupNodes()
public HashMapSet<OLSRNode,OLSRNode> getHeadersForForwardingNodes(java.util.Set<OLSRNode> virtualNeighborsToForwardSet, java.util.Set<OLSRNode> nonVirtualNeighborsToForwardSet)
virtualNeighborsToForwardSet
- nonVirtualNeighborsToForwardSet
-
public HashMapSet<OLSRNode,OLSRNode> getHeadersForSource(OLSRNode localOLSRNode)
localOLSRNode
-
public java.util.Set<OLSRNode> getNonVirtualNeighborsExistingInSet(OLSRNode localOLSRNode, java.util.HashSet<OLSRNode> nodeSet)
localOLSRNode
- nodeSet
-
public java.util.Set<OLSRNode> getNonVirtualNeighborsInSubtree(java.util.Set<OLSRNode> nonVirtualNeighborsToForwardSet, OLSRNode directDestinationNode)
nonVirtualNeighborsToForwardSet
- vnToForwardMessage
-
public java.util.Set<OLSRNode> getTemporalNodes()
public java.util.Set<OLSRNode> getVirtualNeighbors(OLSRNode node)
public java.util.Set<OLSRNode> getVirtualNeighborsExistingInSet(OLSRNode localOLSRNode, java.util.HashSet<OLSRNode> nodeSet)
localOLSRNode
- nodeSet
-
public void updateOMOLSRNetworkGraph(OMOLSRNetworkGraph omolsrNetworkGraph)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |