ants.freeant
Class GnutantFactory

java.lang.Object
  |
  +--ants.freeant.GnutantFactory
All Implemented Interfaces:
AntFactory, Clearable

public class GnutantFactory
extends Object
implements AntFactory

Version:
$Revision: 1.5 $
Author:
Alberto Montresor
, Hein Meling

Field Summary
static String PAR_EXPLORATIONATTEMPTS
          Parameter name used to read explorationAttempts
static String PAR_EXPLORATIONPROB
          Parameter name used to read explorationProbability
static String PAR_MAXPROVIDERS
          Parameter name used to read trailDev
static String PAR_MAXRESOURCES
          Parameter name used to read trailDev
static String PAR_TRAILATTEMPTS
          Parameter name used to read trailAttempts
static String PAR_TRAILDEV
          Parameter name used to read trailDev
 
Fields inherited from interface anthill.AntFactory
NAME
 
Constructor Summary
GnutantFactory(Factory factory, String name)
          Factory for creating Gnutant ant species.
 
Method Summary
 void clear()
          Restores the object to its initial state.
 Ant[] getAnts(RequestId rid, Object request, NestId requestor)
          Returns a set of ants for a query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PAR_EXPLORATIONPROB

public static final String PAR_EXPLORATIONPROB
Parameter name used to read explorationProbability

See Also:
Constant Field Values

PAR_TRAILATTEMPTS

public static final String PAR_TRAILATTEMPTS
Parameter name used to read trailAttempts

See Also:
Constant Field Values

PAR_TRAILDEV

public static final String PAR_TRAILDEV
Parameter name used to read trailDev

See Also:
Constant Field Values

PAR_EXPLORATIONATTEMPTS

public static final String PAR_EXPLORATIONATTEMPTS
Parameter name used to read explorationAttempts

See Also:
Constant Field Values

PAR_MAXRESOURCES

public static final String PAR_MAXRESOURCES
Parameter name used to read trailDev

See Also:
Constant Field Values

PAR_MAXPROVIDERS

public static final String PAR_MAXPROVIDERS
Parameter name used to read trailDev

See Also:
Constant Field Values
Constructor Detail

GnutantFactory

public GnutantFactory(Factory factory,
                      String name)
Factory for creating Gnutant ant species.

Parameters:
factory - the factory to be used to read configuration arguments and to create other configurable objects
name - the name that is associated to this instance in the configuration file
Method Detail

clear

public void clear()
Restores the object to its initial state.

Specified by:
clear in interface Clearable

getAnts

public Ant[] getAnts(RequestId rid,
                     Object request,
                     NestId requestor)
Returns a set of ants for a query. Each ant will take care of the research of a distinct token of the query string.

Specified by:
getAnts in interface AntFactory
Parameters:
request - the object containing the request to be satisfied