jxtaimpl.ids
Class NestId

java.lang.Object
  |
  +--jxtaimpl.ids.NestId
All Implemented Interfaces:
NestId, Serializable

public class NestId
extends Object
implements NestId, Serializable

The class NestId uses a gateService-PipeAdv in order to identify a nest

Author:
Francesco Russo (frusso@cs.unibo.it)
See Also:
Serialized Form

Constructor Summary
NestId(PipeAdvertisement pipeAdvertisement)
          The constructor takes as input value the pipe adv of this nest's GateService instance.
 
Method Summary
 boolean equals(NestId id)
          This method tests wether the NestId named id is equal to the current instance or not.
 PipeAdvertisement getPipeAdv()
          This method will return the pipe adv from which the NestId instance has been derived
 URL getURL()
          This method returns the pipe identifier URL representation
 String toString()
          This method will return a string rapresentation of the NestId instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NestId

public NestId(PipeAdvertisement pipeAdvertisement)
The constructor takes as input value the pipe adv of this nest's GateService instance. That's the smallest information we need in order to get in touch with other nests

Method Detail

getPipeAdv

public PipeAdvertisement getPipeAdv()
This method will return the pipe adv from which the NestId instance has been derived


toString

public String toString()
This method will return a string rapresentation of the NestId instance

Overrides:
toString in class Object

getURL

public URL getURL()
This method returns the pipe identifier URL representation


equals

public boolean equals(NestId id)
This method tests wether the NestId named id is equal to the current instance or not.