urv.olsr.mcast
Class TopologyEvent
java.lang.Object
org.jgroups.View
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
Fields inherited from class org.jgroups.View |
members, vid |
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 |
TopologyEvent
public TopologyEvent(NetworkGraph<OLSRNode,Weight> networkGraph,
RoutingTable routingTable,
OLSRNode localNode)
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()