cgl.narada.matching.tagvalue
Class EdgeAttributes

java.lang.Object
  extended by cgl.narada.matching.tagvalue.EdgeAttributes
All Implemented Interfaces:
MatchingDebugFlags

public class EdgeAttributes
extends Object
implements MatchingDebugFlags

This keeps track of the destinations, and the number of predicates within each destination that are interested in a particular edge. This irrespective of wether the edge in question is connected to another node in the matching tree graph or if its simply a destination edge. The destinations thus returned need to be fed into the event routing protocol, which provides the shortest routes to reach destinations at different levels.


Field Summary
 
Fields inherited from interface cgl.narada.matching.tagvalue.MatchingDebugFlags
EdgeAttributes_Debug, EventID_Debug, Matching_Debug, MatchingTreeEdge_Debug, MatchingTreeNode_Debug, MEvent_Debug, Predicate_Debug
 
Constructor Summary
EdgeAttributes()
           
 
Method Summary
 boolean containsDestinations()
          This method serves as the precursor to the deletion of certain nodes and edges, in response to the removal of an interest in subscription predicates.
 void decrementPredicateCountForDestination(int _destination)
          This method provides for decrementing the reference count assocaited with messages.
 int getDestinations()
          Returns the list of destinations associated with the edge
 int[] getPredicateCountForDestinations()
          Returns the predicate count associated with the destinations
 void incrementPredicateCountForDestination(int _destination)
          This method increments the predicate count associated with the edge.
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

EdgeAttributes

public EdgeAttributes()
Method Detail

incrementPredicateCountForDestination

public void incrementPredicateCountForDestination(int _destination)
This method increments the predicate count associated with the edge. When subcriptions are being added - newly created or existing - edges need to be update with reference counts for predicates within each destination. This plays a major role in determing when a destination need no longer be served.


decrementPredicateCountForDestination

public void decrementPredicateCountForDestination(int _destination)
This method provides for decrementing the reference count assocaited with messages. When the reference count associated with a given destination is reduced to zero, we say that the destination is no longer interested in the edge, and proceed to remove it from the list of destinations associated with the edge


containsDestinations

public boolean containsDestinations()
This method serves as the precursor to the deletion of certain nodes and edges, in response to the removal of an interest in subscription predicates.


getDestinations

public int getDestinations()
Returns the list of destinations associated with the edge


getPredicateCountForDestinations

public int[] getPredicateCountForDestinations()
Returns the predicate count associated with the destinations

Returns:
The predicate count associated with individual destinations.

main

public static void main(String[] args)


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