anthill
Interface AntFactory

All Superinterfaces:
Clearable
All Known Implementing Classes:
FreenetAntFactory, GnutantFactory, RandomAntFactory

public interface AntFactory
extends Clearable

Factory interface for creating ants. This interface is used by nest to create ants which will be used to satisfy requests in the Anthill network.

Version:
$Revision$
Author:
Alberto Montresor

Method Summary
 Ant[] getAnts(RequestId rid, java.lang.Object request, NestId requestor)
          Factory method for creating a set of ants aimed at satisfying a particular request.
 
Methods inherited from interface anthill.util.Clearable
clear
 

Method Detail

getAnts

public Ant[] getAnts(RequestId rid,
                     java.lang.Object request,
                     NestId requestor)
Factory method for creating a set of ants aimed at satisfying a particular request. Multiple ants created for the same request are completely independent. The interpretation of the request is left to ant implementations.
Parameters:
request - the object containing the request to be satisfied