anthill.antsim
Interface ResourceSet
- All Superinterfaces:
- Clearable
- All Known Implementing Classes:
- RandomResourceSet
- public interface ResourceSet
- extends Clearable
Interface ResourceSet
is used in scenarios in order to
obtain a set of resources to be inserted in the simulated peer network
and a set of requests to be performed.
- Version:
- $Revision$
- Author:
- Alberto Montresor
Method Summary |
java.lang.Object |
getRequest()
Generate a random request. |
Resource[] |
getResources()
Return an array containing the resources generated and
stored in this ResourceSet . |
int |
size()
Return the number of resources generated and stored in
this ResourceSet . |
size
public int size()
- Return the number of resources generated and stored in
this
ResourceSet
.
getResources
public Resource[] getResources()
- Return an array containing the resources generated and
stored in this
ResourceSet
.
getRequest
public java.lang.Object getRequest()
- Generate a random request. Depending on the implementation of
this class, the request could be the identifier of the one of
the resources contained in this
ResourceSet
,
or a more specific request (for example, a free query based on
keywords, or an insert request).