|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.matching.tagvalue.ClientMatchingTreeNode
public class ClientMatchingTreeNode
This class implements the matching tree node. This node has edges originating from it, some of which could be pure destination edges and some of which could connect this tag node to some other tag node.
| Field Summary |
|---|
| Fields inherited from interface cgl.narada.matching.tagvalue.ClientMatchingDebugFlags |
|---|
ClientEdgeAttributes_Debug, ClientMatching_Debug, ClientMatchingTreeEdge_Debug, ClientMatchingTreeNode_Debug |
| Constructor Summary | |
|---|---|
ClientMatchingTreeNode(String tag)
Constructor for the matching tree node. |
|
| Method Summary | |
|---|---|
ClientMatchingTreeEdge |
createEdgeLeadingIntoNode(String value,
String tagTwo,
int destination)
This method is responsible for the creation of an edge between two tags, with the edge having a certain value. |
boolean |
createEdgeWithDestinations(String value,
int destinations)
Returns true if a new dge has been created, else it returns false if a new edge in not created |
ClientMatchingTreeEdge |
getEdgeLeadingIntoTag(String tag,
String value)
This method retrieves the edge (of a certain value) emanating from this particular node, and leading into another tag. |
ClientMatchingTreeEdge[] |
getListOfEdgesWithValue(String value)
This method is used to handle subscriptions that end at this particular value of the edge. |
String |
getTag()
This method returns the tag associated with the node. |
Hashtable |
matchEvent(MEvent e,
Hashtable _destinationsComputedSoFar)
This method is responsible for matching an event to the profile graph that is stored at the node. |
void |
matchEventForStorage(MEvent e,
EventDestinations _destinationsComputedSoFar)
This method is responsible for matching an event to the profile graph that is stored at the node. |
ClientMatchingTreeEdge |
removeEdgeLeadingIntoNode(String value,
String tagTwo,
int destinations)
This method is responsible for the removal of an edge leading into the node that would have a tag of tagTwo. |
boolean |
removeEdgeWithDestinations(String value,
int destinations)
This method returns true if the change needs to be propagated, and false otherwise |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientMatchingTreeNode(String tag)
tag - The tag for the node in the graph.| Method Detail |
|---|
public String getTag()
public Hashtable matchEvent(MEvent e,
Hashtable _destinationsComputedSoFar)
e - The event that needs to be matched._destinationsComputedSoFar - The destinations that have been computed
so far. This is needed since the method in question is a recursive
method.
public void matchEventForStorage(MEvent e,
EventDestinations _destinationsComputedSoFar)
e - The event that needs to be matched._destinationsComputedSoFar - The destinations that have been computed
so far. This is needed since the method in question is a recursive
method.
public ClientMatchingTreeEdge createEdgeLeadingIntoNode(String value,
String tagTwo,
int destination)
value - The value of the tag for the node in questiontagTwo - The next tag in the tag-value pair.destination - The destinations associated with the edge.
public boolean createEdgeWithDestinations(String value,
int destinations)
public ClientMatchingTreeEdge removeEdgeLeadingIntoNode(String value,
String tagTwo,
int destinations)
value - The value of the tag for the node in questiontagTwo - The next tag in the tag-value pair.destinations - The destinations associated with the edge.
public boolean removeEdgeWithDestinations(String value,
int destinations)
value - The value of the destination edge from a node.destinations - The destination that is associated with the value
public ClientMatchingTreeEdge[] getListOfEdgesWithValue(String value)
public ClientMatchingTreeEdge getEdgeLeadingIntoTag(String tag,
String value)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||