cgl.narada.matching.tagvaluepairs
Class TagValueProfile

java.lang.Object
  extended by cgl.narada.matching.tagvaluepairs.TagValueProfile
All Implemented Interfaces:
Profile, TagValueMatchingDebugFlags

public class TagValueProfile
extends Object
implements Profile, TagValueMatchingDebugFlags

An STRING profile is stored in this class. The profile includes information regarding the string meeting the client is interested in, and the destination associated with this.


Field Summary
 
Fields inherited from interface cgl.narada.matching.tagvaluepairs.TagValueMatchingDebugFlags
TagValueClientEdgeAttributes_Debug, TagValueClientMatching_Debug, TagValueClientMatchingTreeEdge_Debug, TagValueClientMatchingTreeNode_Debug, TagValueClientProfile_Debug, TagValueEdgeAttributes_Debug, TagValueEvent_Debug, TagValueMatching_Debug, TagValueMatchingTreeEdge_Debug, TagValueMatchingTreeNode_Debug, TagValueProfile_Debug
 
Constructor Summary
TagValueProfile(byte[] stringProfileBytes)
          This method serves to unmarshall a stringProfile stream received over the link.
TagValueProfile(String subscription, int destinations, String profileId)
          A TagValueProfile is comprised of both the subscription as well as the destination of the unit/super-unit that has expressed an interest in it.
 
Method Summary
 byte[] getBytes()
          This method returns the stringProfile as a stream of bytes, the unmarshalling counterpart to this marshalling scheme is contained within one of the TagValueProfile constructors
 int getDestination()
          This method returns the destinations assocaited with the subscription.
 String getProfileId()
           
 int getProfileType()
           
 Object getSubscription()
          This method returns the subscription associated with the stringProfile.
static void main(String[] args)
           
 String toString()
          Provides a string representation of the stringProfile instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TagValueProfile

public TagValueProfile(String subscription,
                       int destinations,
                       String profileId)
A TagValueProfile is comprised of both the subscription as well as the destination of the unit/super-unit that has expressed an interest in it.

Parameters:
subscription - The string subscription
destinations - The hierarchial destinations associated with this stringProfile

TagValueProfile

public TagValueProfile(byte[] stringProfileBytes)
This method serves to unmarshall a stringProfile stream received over the link. The corresponding marshalling method for the stringProfile is contained within the getBytes() method.

Parameters:
stringProfileBytes - The marshalled stream of stringProfile bytes that are received over a link.
Method Detail

getSubscription

public Object getSubscription()
This method returns the subscription associated with the stringProfile.

Specified by:
getSubscription in interface Profile
Returns:
The subscription.

getDestination

public int getDestination()
This method returns the destinations assocaited with the subscription.

Specified by:
getDestination in interface Profile
Returns:
The destinations.

getProfileId

public String getProfileId()
Specified by:
getProfileId in interface Profile

getProfileType

public int getProfileType()
Specified by:
getProfileType in interface Profile

getBytes

public byte[] getBytes()
This method returns the stringProfile as a stream of bytes, the unmarshalling counterpart to this marshalling scheme is contained within one of the TagValueProfile constructors

Specified by:
getBytes in interface Profile
Returns:
The byte stream representation of the stringProfile

toString

public String toString()
Provides a string representation of the stringProfile instance.

Specified by:
toString in interface Profile
Overrides:
toString in class Object
Returns:
TagValueProfile as a String object.

main

public static void main(String[] args)


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