urv.olsr.mcast
Class TopologyEvent

java.lang.Object
  extended by org.jgroups.View
      extended by urv.olsr.mcast.TopologyEvent
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, org.jgroups.util.Streamable

public class TopologyEvent
extends org.jgroups.View
implements java.io.Serializable

Event passed to the above layer for giving some information. In this protocol is used for passing information (omolsrNetworkGraph) from the OLSR protocol to the multicast protocol (OMOLSR). We also will use this event to notify the higher layer protocols about the membership, in the way that JGroups usually do it (VIEW_CHANGE Event).

Author:
Gerard Paris Aixala, Raul Gracia Tinedo
See Also:
View, Serialized Form

Field Summary
 
Fields inherited from class org.jgroups.View
members, vid
 
Constructor Summary
TopologyEvent(NetworkGraph<OLSRNode,Weight> networkGraph, RoutingTable routingTable, OLSRNode localNode)
           
 
Method Summary
 long getBandwidthCapacityInBytesOf(OLSRNode node)
          Returns the the bandwidth capacity of a specific node
 long getBandwidthCapacityInMessagesOf(OLSRNode node)
           
 int getHopCountTo(OLSRNode olsrNode)
           
 OLSRNode getLocalNode()
           
 long getLowestBandwidthCapacityInBytesOfRouteTo(OLSRNode node)
           
 long getMyBandwidthCapacityInBytes()
           
 long getMyBandwidthCapacityInMessages()
           
 OLSRNode getNextHopTo(OLSRNode node)
           
 OMOLSRNetworkGraph getOMOLSRNetworkGraph()
           
 
Methods inherited from class org.jgroups.View
clone, containsMember, equals, getCreator, getMembers, getVid, hashCode, printDetails, readExternal, readFrom, serializedSize, size, toString, writeExternal, writeTo
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TopologyEvent

public TopologyEvent(NetworkGraph<OLSRNode,Weight> networkGraph,
                     RoutingTable routingTable,
                     OLSRNode localNode)
Method Detail

getBandwidthCapacityInBytesOf

public long getBandwidthCapacityInBytesOf(OLSRNode node)
Returns the the bandwidth capacity of a specific node


getBandwidthCapacityInMessagesOf

public long getBandwidthCapacityInMessagesOf(OLSRNode node)

getHopCountTo

public int getHopCountTo(OLSRNode olsrNode)

getLocalNode

public OLSRNode getLocalNode()

getLowestBandwidthCapacityInBytesOfRouteTo

public long getLowestBandwidthCapacityInBytesOfRouteTo(OLSRNode node)

getMyBandwidthCapacityInBytes

public long getMyBandwidthCapacityInBytes()

getMyBandwidthCapacityInMessages

public long getMyBandwidthCapacityInMessages()

getNextHopTo

public OLSRNode getNextHopTo(OLSRNode node)

getOMOLSRNetworkGraph

public OMOLSRNetworkGraph getOMOLSRNetworkGraph()