|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Resource | |
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.antnet | This package is a prototype implementation of package
anthill.nest to be used during actual
deployment in a real environment. |
anthill.antsim | This package contains the main interfaces used in the Anthill simulation tool, including interfaces to perform evaluations, to collect statistics, to simulate peer-to-peer networks and to generate random requests of documents. |
anthill.antsim.impl | This package contains a prototype implementation of the
interfaces included in package anthill.antsim . |
anthill.genie | This package contains the main interfaces used in the Anthill evolution framework, including interfaces to perform evaluations using genetic tools, to represent genetic codes and to manipulate populations of genetic codes. |
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. |
anthill.storage | |
anthill.storage.impl | |
gnutant | This package contains a simple ant implementation. |
Uses of Resource in anthill |
Methods in anthill that return Resource | |
Resource[] |
AntView.getResources(java.lang.Object request)
Performs the specified request on the local resource storage and returns the resources satisfying the request. |
Resource |
AntView.getResource(java.lang.Object key)
Performs the specified request on the local resource storage and returns the resources satisfying the request. |
Methods in anthill with parameters of type Resource | |
void |
AntView.addResource(Resource resource)
Add a resource to the nest. |
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 Resource in anthill.antnet |
Classes in anthill.antnet that implement Resource | |
class |
FileResource
FileResource represents a local file resource that can be
added by a an anthill clients. |
Uses of Resource in anthill.antsim |
Methods in anthill.antsim that return Resource | |
Resource[] |
ResourceSet.getResources()
Return an array containing the resources generated and stored in this ResourceSet . |
Uses of Resource in anthill.antsim.impl |
Classes in anthill.antsim.impl that implement Resource | |
class |
RandomResource
A RandomResource is characterized only by its name, which is
a string obtained from a long value generated randomly. |
Fields in anthill.antsim.impl declared as Resource | |
protected Resource[] |
RandomResourceSet.resources
Resources contained in this resource set |
Methods in anthill.antsim.impl that return Resource | |
Resource[] |
RandomResourceSet.getResources()
Return an array containing the resources generated and stored in this ResourceSet . |
Methods in anthill.antsim.impl with parameters of type Resource | |
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. |
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 Resource in anthill.genie |
Methods in anthill.genie that return Resource | |
Resource |
ResourceFactory.getResource()
Factory method for Resource objects. |
Uses of Resource in anthill.nest |
Methods in anthill.nest with parameters of type Resource | |
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.insert(Resource resource)
Inserts a new resource in this nest. |
boolean |
RequestSet.returnResources(RequestId key,
Resource[] resources)
Returns the specified resources to the listener associated to the given key |
Uses of Resource in anthill.nestor |
Methods in anthill.nestor that return Resource | |
Resource[] |
LocalAntView.getResources(java.lang.Object request)
Performs the specified request on the local resource storage and returns the resources satisfying the request. |
Resource |
LocalAntView.getResource(java.lang.Object key)
Performs the specified request on the local resource storage and returns the resources satisfying the request. |
Resource[] |
LocalNest.getResources(java.lang.Object request)
Performs the specified request on the local resource storage and returns the resources satisfying the request. |
Resource |
LocalNest.getResource(java.lang.Object key)
Performs the specified request on the local resource storage and returns the resources satisfying the request. |
Methods in anthill.nestor with parameters of type Resource | |
void |
LocalAntView.addResource(Resource resource)
Add a resource to the nest. |
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. |
boolean |
LocalRequestSet.returnResources(RequestId key,
Resource[] resources)
|
void |
LocalNest.insert(Resource resource)
Insert a new resource in this nest. |
void |
LocalNest.addResource(Resource resource)
Add a resource to the nest. |
Uses of Resource in anthill.storage |
Methods in anthill.storage that return Resource | |
Resource[] |
QueryStorage.getResources(java.lang.Object query)
Return the resource associated with the specified query. |
Resource |
GenericStorage.getResource(java.lang.Object key)
Returns the resource associated with the specified key. |
Methods in anthill.storage with parameters of type Resource | |
boolean |
QueryController.satisfies(Resource resource,
java.lang.Object query)
Returns the result of matching the specified query with the given resource. |
void |
GenericStorage.addResource(java.lang.Object key,
Resource resource)
Adds a resource to the storage and associates it to the specified key. |
Uses of Resource in anthill.storage.impl |
Methods in anthill.storage.impl that return Resource | |
Resource |
LRUKeyStorage.getResource(java.lang.Object key)
Returns the resource associated with the specified key. |
Resource[] |
LRUQueryStorage.getResources(java.lang.Object query)
Return the resource associated with the specified query. |
Resource |
MemoryStorage.getResource(java.lang.Object key)
Returns the resource identified by the given key. |
Methods in anthill.storage.impl with parameters of type Resource | |
void |
LRUKeyStorage.addResource(java.lang.Object key,
Resource resource)
Adds a resource to the storage and associates it to the specified key. |
void |
MemoryStorage.addResource(java.lang.Object key,
Resource resource)
Adds a resource to the storage and associates it to the specified key. |
boolean |
ANDQueryController.satisfies(Resource resource,
java.lang.Object query)
Returns the result of matching the specified query with the given resource. |
Uses of Resource in gnutant |
Classes in gnutant that implement Resource | |
class |
UrlResource
An UrlResource is an object containing the URL from which the
content of a resource may be downloaded. |
class |
UrlResourceSet
|
Methods in gnutant that return Resource | |
Resource[] |
UrlStorage.getResources(java.lang.Object query)
|
Methods in gnutant with parameters of type Resource | |
void |
UrlStorage.addResource(java.lang.Object resourceKey,
Resource urlResource)
Adds a resource to the storage and associates it to the specified key. |
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. |
Constructors in gnutant with parameters of type Resource | |
BackwardGnutant(KeyHash keyhash,
Resource[] resources,
java.util.ArrayList path)
Initializes a new BackwardGnutant with the set of resources to be used for updating the distributed index. |
|
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. |
|
TrailGnutant(NestId provider,
KeyHash key,
Resource[] resources,
AntId trailId,
History history)
Initializes a new TrailGnutant 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. |
|
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. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |