ants.messor
Class MessorAntFactory

java.lang.Object
  |
  +--ants.messor.MessorAntFactory
All Implemented Interfaces:
AntFactory, Clearable

public class MessorAntFactory
extends Object
implements AntFactory

Version:
$Revision: 1.7 $
Author:
Alberto Montresor

Field Summary
static String MAX_EXPLORING_PROB
          Parameter name used to read maxExploringProb
static String MAX_KEEPSEARCHING_PROB
          Parameter name used to read maxKeepSearchingProb
static String MAX_SEARCH_DEV
          Parameter name used to read maxSearchDev
static String MAX_TARGET_RATIO
          Parameter name used to read maxTargetRatio
static String MAX_TRANSPORT
          Parameter name used to read transportPercentage
static String MIN_EXPLORING_PROB
          Parameter name used to read minExploringProb
static String MIN_KEEPSEARCHING_PROB
          Parameter name used to read minKeepSearchingProb
static String MIN_SEARCH_DEV
          Parameter name used to read minSearchDev
static String MIN_TARGET_RATIO
          Parameter name used to read maxTargetRatio
static String TRANSPORT_PERCENTAGE
          Parameter name used to read transportPercentage
static String VISITED_BUFFER_SIZE
          Parameter name used to read VisitedBufferSize
 
Fields inherited from interface anthill.AntFactory
NAME
 
Constructor Summary
MessorAntFactory(Factory factory, String name)
           
 
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

MAX_EXPLORING_PROB

public static final String MAX_EXPLORING_PROB
Parameter name used to read maxExploringProb

See Also:
Constant Field Values

MIN_EXPLORING_PROB

public static final String MIN_EXPLORING_PROB
Parameter name used to read minExploringProb

See Also:
Constant Field Values

MAX_SEARCH_DEV

public static final String MAX_SEARCH_DEV
Parameter name used to read maxSearchDev

See Also:
Constant Field Values

MIN_SEARCH_DEV

public static final String MIN_SEARCH_DEV
Parameter name used to read minSearchDev

See Also:
Constant Field Values

MAX_KEEPSEARCHING_PROB

public static final String MAX_KEEPSEARCHING_PROB
Parameter name used to read maxKeepSearchingProb

See Also:
Constant Field Values

MIN_KEEPSEARCHING_PROB

public static final String MIN_KEEPSEARCHING_PROB
Parameter name used to read minKeepSearchingProb

See Also:
Constant Field Values

MAX_TARGET_RATIO

public static final String MAX_TARGET_RATIO
Parameter name used to read maxTargetRatio

See Also:
Constant Field Values

MIN_TARGET_RATIO

public static final String MIN_TARGET_RATIO
Parameter name used to read maxTargetRatio

See Also:
Constant Field Values

TRANSPORT_PERCENTAGE

public static final String TRANSPORT_PERCENTAGE
Parameter name used to read transportPercentage

See Also:
Constant Field Values

MAX_TRANSPORT

public static final String MAX_TRANSPORT
Parameter name used to read transportPercentage

See Also:
Constant Field Values

VISITED_BUFFER_SIZE

public static final String VISITED_BUFFER_SIZE
Parameter name used to read VisitedBufferSize

See Also:
Constant Field Values
Constructor Detail

MessorAntFactory

public MessorAntFactory(Factory factory,
                        String name)
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