anthill
Interface AntFactory
- All Known Implementing Classes:
- RandomAntFactory
- public interface AntFactory
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.
Method Summary |
Ant[] |
getAnts(java.lang.Object request)
Factory method for creating a set of ants aimed at satisfying
a particular request. |
getAnts
public Ant[] getAnts(java.lang.Object request)
- 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