cgl.narada.matching.integer
Class IntegerProfile

java.lang.Object
  extended by cgl.narada.matching.integer.IntegerProfile
All Implemented Interfaces:
IntegerMatchingDebugFlags, Profile

public class IntegerProfile
extends Object
implements Profile, IntegerMatchingDebugFlags

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


Field Summary
 
Fields inherited from interface cgl.narada.matching.integer.IntegerMatchingDebugFlags
ClientIntegerMatching_Debug, IntegerMatching_Debug
 
Constructor Summary
IntegerProfile(byte[] integerProfileBytes)
          This method serves to unmarshall a integerProfile stream received over the link.
IntegerProfile(Integer subscription, int destinations, String profileId)
          A IntegerProfile 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 integerProfile as a stream of bytes, the unmarshalling counterpart to this marshalling scheme is contained within one of the IntegerProfile 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 integerProfile.
static void main(String[] args)
           
 String toString()
          Provides a string representation of the integerProfile instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntegerProfile

public IntegerProfile(Integer subscription,
                      int destinations,
                      String profileId)
A IntegerProfile 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 integer subscription
destinations - The hierarchial destinations associated with this integerProfile

IntegerProfile

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

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

getSubscription

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

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 integerProfile as a stream of bytes, the unmarshalling counterpart to this marshalling scheme is contained within one of the IntegerProfile constructors

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

toString

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

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

main

public static void main(String[] args)


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