uwcse.location
Class NameSubscription

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

public class NameSubscription
extends Subscription

A subscription to to receive interrupt driven information about object(s) location(s).

Version:
$Revision: 1.6 $
Author:
Jeffrey Hightower

Field Summary
protected  Set m_nameSet
           
 
Fields inherited from class uwcse.location.Subscription
m_expiration, m_id, m_subscriberAddress, m_subscriberId
 
Constructor Summary
NameSubscription()
          Create a new name subscription that expires immediately.
NameSubscription(Set nameSet, ServiceID serviceID, Date expiration)
          Create a new name subscription for the given name with the given unique id and expiration date.
NameSubscription(NameSubscription ns)
          Create a new name subscription as a copy of the given one.
 
Method Summary
 boolean equals(Object@NameSubscription ns)
          Test this subscription for semantic equality with another subscription.
 Set getSubscribedNames()
          Get the set of object names 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_nameSet

protected Set m_nameSet
Constructor Detail

NameSubscription

public NameSubscription()
Create a new name subscription that expires immediately. This method exists only to support no argument constructor XML serialization and is generally not used in practice.


NameSubscription

public NameSubscription(Set nameSet,
                        ServiceID serviceID,
                        Date expiration)
Create a new name subscription for the given name with the given unique id and expiration date.


NameSubscription

public NameSubscription(NameSubscription ns)
Create a new name subscription as a copy of the given one.

Method Detail

equals

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

Overrides:
equals in class Subscription

hashCode

public int hashCode()
Overrides:
hashCode in class Subscription

getSubscribedNames

public Set getSubscribedNames()
Get the set of object names 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