cgl.narada.protocol
Class LinkCostMatrix

java.lang.Object
  extended by cgl.narada.protocol.LinkCostMatrix
All Implemented Interfaces:
ProtocolDebugFlags

public class LinkCostMatrix
extends Object
implements ProtocolDebugFlags

The link cost matrix maintains the cost associated with traversal over any of the edges within the connectivity graph, hosted at a server node. The link cost matrix reflects the communication costs involved in communication with units at disparate levels. These costs are not absolute costs, and simply reflect the relative costs associated with communications between nodes in different units as compared to the communication costs between nodes in a cluster. These costs along with the graph traversal rules aid the calculation of the shortest routes from any node in the connectivity graph to the vertex node.

Version:
$Revision$ $Date$

Field Summary
 
Fields inherited from interface cgl.narada.protocol.ProtocolDebugFlags
BrokerLocatorCommunicator_Debug, ClientConnectionHandler_Debug, Connection_Debug, ConnectionPropagation_Debug, Destinations_Debug, DuplicateDetection_Debug, EventBuffer_Debug, EventRoutingProtocol_Debug, Gateway_Debug, GatewayInfo_Debug, GatewayPropagation_Debug, JmsProfilePropagation_Debug, LinkCostMatrix_Debug, NodeAdditionProtocol_Debug, NodeAddress_Debug, Path_Debug, PersistentEventRouting_Debug, ProfilePropagationProtocol_Debug, ProtocolException_Debug, ProtocolHandler_Debug, ProtocolID_Debug, ProtocolIDFactory_Debug, RoutingCache_Debug, RtpEventRoutingProtocol_Debug, RtpProfilePropagation_Debug, SecureMessageRouting_Debug, TagValueEventRoutingProtocol_Debug, TagValueProfilePropagation_Debug, XmlEventRoutingProtocol_Debug, XPathProfilePropagation_Debug
 
Constructor Summary
LinkCostMatrix(short level)
          The link cost Matrix constructor.
 
Method Summary
 short computeCost(short level1, short level2)
          Returns the cost associated with the traversal over an edge in the connectivity graph.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkCostMatrix

public LinkCostMatrix(short level)
The link cost Matrix constructor. Creation of costs involves specification of the system Level

Parameters:
level - The system Level.
Method Detail

computeCost

public short computeCost(short level1,
                         short level2)
Returns the cost associated with the traversal over an edge in the connectivity graph.

Parameters:
level1 - The level of the first node of the edge
level2 - The level of the second node of the edge
Returns:
The cost associated with traversal over the edge.

main

public static void main(String[] args)


For comments and suggestions please send e-mail to The NaradaBrokering Project