jxtaimpl
Class AnthillGroup

java.lang.Object
  |
  +--StdPeerGroup
        |
        +--jxtaimpl.AnthillGroup

public class AnthillGroup
extends StdPeerGroup

This is the class implementing the AnthillGroup

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

Constructor Summary
AnthillGroup()
          This is the default constructor.
 
Method Summary
protected  PipeAdvertisement getDsPipeAdv()
          This method returns the PipeAdv associated with the DownloadService
protected  PipeAdvertisement getGsPipeAdv()
          This method returns the PipeAdv associated with the GateService
 Nest getNest()
          This method will be invoked by the GateService instance in order to obtain a reference to the Nest.
 DiscoveryService getNetDiscoveryService()
          Returns the NetPeerGroup's DiscoveryService
 PipeService getNetPipeService()
          Returns the NetPeerGroup's PipeService
protected  void setDsPipeAdv(PipeAdvertisement dsPipeAdv)
          This method sets the PipeAdv associated with the DownloadService.
protected  void setGsPipeAdv(PipeAdvertisement gsPipeAdv)
          This method sets the PipeAdv associated with the GateService.
protected  void setNest(Nest nest)
          Method for setting the right Nest instance, invoked by the AnthillPeerWS instance
protected  void setNetDiscoveryService(DiscoveryService netDiscoveryService)
          Sets the NetPeerGroup's DiscoveryService.
protected  void setNetPipeService(PipeService netPipeService)
          Sets the NetPeerGroup's PipeService.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnthillGroup

public AnthillGroup()
This is the default constructor. No arguments are needed, all the useful properties have to be set via their own set methods

Method Detail

getNest

public Nest getNest()
This method will be invoked by the GateService instance in order to obtain a reference to the Nest.


setNest

protected void setNest(Nest nest)
Method for setting the right Nest instance, invoked by the AnthillPeerWS instance


getGsPipeAdv

protected PipeAdvertisement getGsPipeAdv()
This method returns the PipeAdv associated with the GateService


setGsPipeAdv

protected void setGsPipeAdv(PipeAdvertisement gsPipeAdv)
This method sets the PipeAdv associated with the GateService. It has to be invoked by the AnthillPeerWS instance


getDsPipeAdv

protected PipeAdvertisement getDsPipeAdv()
This method returns the PipeAdv associated with the DownloadService


setDsPipeAdv

protected void setDsPipeAdv(PipeAdvertisement dsPipeAdv)
This method sets the PipeAdv associated with the DownloadService. It has to be invoked by the AnthillPeerWS instance


getNetPipeService

public PipeService getNetPipeService()
Returns the NetPeerGroup's PipeService


setNetPipeService

protected void setNetPipeService(PipeService netPipeService)
Sets the NetPeerGroup's PipeService. It has to be invoked by the AnthillPeerWS instance


getNetDiscoveryService

public DiscoveryService getNetDiscoveryService()
Returns the NetPeerGroup's DiscoveryService


setNetDiscoveryService

protected void setNetDiscoveryService(DiscoveryService netDiscoveryService)
Sets the NetPeerGroup's DiscoveryService. It has to be invoked by the AnthillPeerWS instance