uwcse.location
Class TypeSubscription

java.lang.Object
  |
  +--uwcse.location.Subscription
        |
        +--uwcse.location.TypeSubscription

public class TypeSubscription
extends Subscription

A subscription to to receive interrupt driven information about object(s) location(s) for all objects of a given type.

Version:
$Revision: 1.5 $
Author:
Jeffrey Hightower

Field Summary
protected  String m_typeName
           
 
Fields inherited from class uwcse.location.Subscription
m_expiration, m_id, m_subscriberAddress, m_subscriberId
 
Constructor Summary
TypeSubscription()
          Create a new type subscription for java.lang.Object that expires immediately.
TypeSubscription(String typeName, ServiceID serviceID, Date expiration)
          Create a new type subscription for the given type with the given unique id and expiration date.
TypeSubscription(TypeSubscription ts)
          Create a new type subscription as a copy of the given one.
 
Method Summary
 boolean equals(Object@TypeSubscription ts)
          Test this subscription for semantic equality with another subscription.
 String getSubscribedType()
          Get the type of the object this subscription is for.
 int hashCode()
           
 String toString()
          Get a string representation of this subscription.
 
Methods inherited from class uwcse.location.Subscription
equals, getExpiration, getGUID, getSubscriberServiceID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

m_typeName

protected String m_typeName
Constructor Detail

TypeSubscription

public TypeSubscription()
Create a new type subscription for java.lang.Object that expires immediately. This method exists only to support no argument constructor XML serialization and is generally not used in practice.


TypeSubscription

public TypeSubscription(String typeName,
                        ServiceID serviceID,
                        Date expiration)
Create a new type subscription for the given type with the given unique id and expiration date.


TypeSubscription

public TypeSubscription(TypeSubscription ts)
Create a new type subscription as a copy of the given one.

Method Detail

equals

public boolean equals(Object@TypeSubscription ts)
Test this subscription for semantic equality with another subscription.

Overrides:
equals in class Subscription

hashCode

public int hashCode()
Overrides:
hashCode in class Subscription

getSubscribedType

public String getSubscribedType()
Get the type of the object this subscription is for.


toString

public String toString()
Get a string representation of this subscription.

Overrides:
toString in class Subscription


This documentation is for the Location Stack v0.8. The latest distribution, the documentation, and the list of contributors to the Location Stack can always be found at http://portolano.cs.washington.edu/projects/location/

© Copyright 2004 University of Washington CSE