|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use RequestId | |
anthill | This package contains the main interfaces needed by ant implementors; in particular, it contains the Ant interface, which is the agent interface to be implemented. |
anthill.antsim.impl | This package contains a prototype implementation of the
interfaces included in package anthill.antsim . |
anthill.nest | This package contains the main interfaces needed by nest implementors. |
anthill.nestor | This package is a prototype implementation of package
anthill.nest to be used during Anthill
simulations. |
freenetant | This package contains a simple ant implementation that perform a random walking through a peer-to-peer network. |
gnutant | This package contains a simple ant implementation. |
random | This package contains a simple ant implementation that perform a random walking through a peer-to-peer network. |
Uses of RequestId in anthill |
Methods in anthill with parameters of type RequestId | |
Ant[] |
AntFactory.getAnts(RequestId rid,
java.lang.Object request,
NestId requestor)
Factory method for creating a set of ants aimed at satisfying a particular request. |
boolean |
AntView.returnResources(RequestId rid,
Resource[] resources)
This method is invoked by ants to notify the nest that the ant associated to this AntView , created to satisfy
a request, has found the specified set of resources. |
Uses of RequestId in anthill.antsim.impl |
Classes in anthill.antsim.impl that implement RequestId | |
class |
Rid
|
Methods in anthill.antsim.impl with parameters of type RequestId | |
void |
ResponseMonitor.startRequest(RequestId rid)
|
boolean |
ResponseMonitor.returnResources(RequestId rid,
Resource[] resources,
int timeout)
Upcall method used to notify this listener that the request associated to it has returned the specified set of resources. |
java.util.Set |
ResponseMonitor.responses(RequestId rid)
Returns the responses associated with the specified response identifier. |
java.util.Set |
ResponseMonitor.responses(RequestId rid,
float fraction)
Returns the responses associated with the specified response identifier if the number of responses received so far exceeds limit. |
void |
ScenarioImpl.returnResources(RequestId rid,
Resource[] resources)
Upcall method used to notify this listener that the request associated to it has returned the specified set of resources. |
Uses of RequestId in anthill.nest |
Methods in anthill.nest with parameters of type RequestId | |
void |
ResponseListener.returnResources(RequestId rid,
Resource[] resources)
Upcall method used to notify this listener that the request associated to it has returned the specified set of resources. |
void |
Nest.request(RequestId rid,
java.lang.Object request,
ResponseListener listener)
Accepts a resource request originated by the user of this nest. |
void |
RequestSet.add(RequestId key,
ResponseListener listener)
Adds an association between a key and the listener interested in the responses returned by this ant. |
boolean |
RequestSet.returnResources(RequestId key,
Resource[] resources)
Returns the specified resources to the listener associated to the given key |
Uses of RequestId in anthill.nestor |
Methods in anthill.nestor with parameters of type RequestId | |
boolean |
LocalAntView.returnResources(RequestId rid,
Resource[] resources)
This method is invoked by ants to notify the nest that the ant associated to this AntView, created to satisfy a request, is returning the specified set of resources. |
void |
LocalRequestSet.add(RequestId key,
ResponseListener listener)
|
boolean |
LocalRequestSet.returnResources(RequestId key,
Resource[] resources)
|
void |
LocalNest.request(RequestId rid,
java.lang.Object request,
ResponseListener listener)
Accepts a request from the nest user. |
Uses of RequestId in freenetant |
Methods in freenetant with parameters of type RequestId | |
Ant[] |
FreenetAntFactory.getAnts(RequestId rid,
java.lang.Object request,
NestId requestor)
Returns a freenet ant for a query. |
Constructors in freenetant with parameters of type RequestId | |
FreenetAnt(RequestId rid,
java.lang.String query,
int copyProb,
int fakeProb,
NestId requestor)
Instantiate a new FreeAnt by setting the query to be satisfied and the hash value to be searched. |
Uses of RequestId in gnutant |
Methods in gnutant with parameters of type RequestId | |
void |
GnutantScenario.returnResources(RequestId rid,
Resource[] resources)
Upcall method used to notify this listener that the request associated to it has returned the specified set of resources. |
Ant[] |
GnutantFactory.getAnts(RequestId rid,
java.lang.Object request,
NestId requestor)
Returns a set of ants for a query. |
Constructors in gnutant with parameters of type RequestId | |
ResponseGnutant(RequestId rid,
Resource[] resources,
NestId requestor,
AntId responseId)
Initializes a new ResponseGnutant with the set of resources to be returned, the identifier of the requestor nest and an ant identifier to be used to obtain return information through nests. |
|
Gnutant(RequestId rid,
java.lang.String query,
KeyHash key,
NestId requestor)
Instantiate a new Gnutant by setting the query to be satisfied and the hash value to be searched. |
|
ReplyGnutant(RequestId rid,
Resource[] resources,
NestId requestor)
Initializes a new ReplyGnutant with the set of resources to be returned, the request identifier and the identifier of the requestor nest. |
|
SearchGnutant(RequestId rid,
java.lang.String query,
KeyHash keyhash)
Instantiate a new SearchGnutant by setting the query to be satisfied and the hash value to be searched. |
Uses of RequestId in random |
Methods in random with parameters of type RequestId | |
Ant[] |
RandomAntFactory.getAnts(RequestId rid,
java.lang.Object request,
NestId requestor)
Returns a set of ants for a query. |
Constructors in random with parameters of type RequestId | |
RandomAnt(RequestId rid,
java.lang.String query)
Instantiate a new RandomAnt by setting the query to be satisfied and the hash value to be searched. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |