A B C D E F G H I K L M N P Q R S T U V W

A

add(AntId, NestId) - Method in interface anthill.nest.Trail
Add a pair (ant identifier, previous nest identifier) to Trail object.
add(AntId, NestId) - Method in class anthill.nestor.LocalTrail
Add a pair (id, source) to the trail object containing the host.
add(AntView) - Method in class anthill.antnet.ConcurrentManager
Adds an ant to the queue of ants to be executed.
add(AntView) - Method in interface anthill.nest.Manager
Add an ant to the queue of ants to be executed.
add(AntView) - Method in class anthill.nestor.LocalManager
Adds an ant to the queue of ants to be executed
add(Object) - Method in class anthill.util.MapList
Add the given key to the map with null as value.
add(Object) - Method in class anthill.util.Queue
Appends object <\code> at the end of the queue.
add(Object) - Method in class anthill.util.History
Appends object <\code> at the end of the list
add(RequestId, ResponseListener) - Method in interface anthill.nest.RequestSet
Adds an association between a key and the listener interested in the responses returned by this ant.
add(RequestId, ResponseListener) - Method in class anthill.nestor.LocalRequestSet
 
add(String, float) - Method in class anthill.antsim.Stats
Add the value of addend to the counter identified by name.
addAnt(Ant) - Method in interface anthill.AntView
Add a new ant to this nest.
addAnt(Ant) - Method in class anthill.nestor.LocalAntView
FIXME: Implement.
addAntNeighbour(NestId) - Method in interface anthill.nest.Nest
Adds the identifier of a new neighbour nest to the set of neighbours known to this nest, on behalf of an ant visiting the nest.
addAntNeighbour(NestId) - Method in class anthill.nestor.LocalNest
Add the identifier of a new neighbour nest to the set of neighbours known to this Nest, on behalf of an ant.
addClientNeighbour(NestId) - Method in interface anthill.nest.Nest
Adds the identifier of a new neighbour nest to the set of neighbours known to this nest, on behalf of the nest user.
addClientNeighbour(NestId) - Method in class anthill.nestor.LocalNest
Add the identifier of a new neighbour nest to the set of neighbours known to this Nest, on behalf of an Nest client.
addGeneticCode(GeneticCode) - Method in interface anthill.genie.GeneticScenario
Set the genetic code(s) to be evaluated.
addGeneticCode(GeneticCode) - Method in interface anthill.genie.GeneticExperiment
Set the genetic code to be evaluated.
addGeneticCode(GeneticCode) - Method in interface anthill.genie.GeneticNest
Add a new genetic code to the set of genetic codes known to this nest.
addGeneticCode(GeneticCode) - Method in class anthill.genie.impl.GeneticScenarioImpl
Set the genetic code to be evaluated.
addGeneticCode(GeneticCode) - Method in class anthill.genie.impl.GeneticExperimentImpl
Set the genetic code to be evaluated.
addGeneticCode(GeneticCode) - Method in class anthill.nestor.LocalGeneticNest
Add a new genetic code to the set of genetic codes known to this anthill.
addKeyhash(KeyHash, NestId) - Method in class gnutant.GnutantPheromone
Add a new nest containing a document that match the specified keyword, represented by a hash of the keyword.
addKeyhash(KeyHash, NestId) - Method in class freenetant.FreenetAntPheromone
Add a new nest containing a document that match the specified keyword, represented by a hash of the keyword.
addKeyword(String, NestId) - Method in class freenetant.FreenetAntPheromone
Convert the query string in the corresponding hash value.
addNeighbour(NestId) - Method in interface anthill.AntView
Ants invoke this method to add the identifier of a new neighbour nest to the set of neighbours known to the current nest.
addNeighbour(NestId) - Method in class anthill.nestor.LocalAntView
Add the new neighbor information to the Gate object contained in the current nest.
addResource(Object, Resource) - Method in class gnutant.UrlStorage
Adds a resource to the storage and associates it to the specified key.
addResource(Object, Resource) - Method in interface anthill.storage.GenericStorage
Adds a resource to the storage and associates it to the specified key.
addResource(Object, Resource) - Method in class anthill.storage.impl.LRUKeyStorage
Adds a resource to the storage and associates it to the specified key.
addResource(Object, Resource) - Method in class anthill.storage.impl.MemoryStorage
Adds a resource to the storage and associates it to the specified key.
addResource(Resource) - Method in interface anthill.AntView
Add a resource to the nest.
addResource(Resource) - Method in class anthill.nestor.LocalAntView
Add a resource to the nest.
addResource(Resource) - Method in class anthill.nestor.LocalNest
Add a resource to the nest.
addURL(UrlResource) - Method in class gnutant.UrlResourceSet
 
Analyzer - class anthill.util.Analyzer.
This class can be used to analyze the memory footprint of an object reference.
Analyzer() - Constructor for class anthill.util.Analyzer
 
ANDQueryController - class anthill.storage.impl.ANDQueryController.
This class is used to verify if an object is
ANDQueryController(Factory) - Constructor for class anthill.storage.impl.ANDQueryController
Constructor for the query controller
Ant - interface anthill.Ant.
This interface contains the methods which must be implemented by ant developers.
AntDescriptor - class anthill.nest.AntDescriptor.
This class contains information about an ant,including the identifier of the nest which has sent it to this host, the identifier of the ant, the remaining time-to-live and a reference to the ant itself.
AntDescriptor(NestId, Ant, int) - Constructor for class anthill.nest.AntDescriptor
Instantiates an ant descriptor and copies the initialization parameters in it.
AntFactory - interface anthill.AntFactory.
Factory interface for creating ants.
anthill - package anthill
This package contains the main interfaces needed by ant implementors; in particular, it contains the Ant interface, which is the agent interface to be implemented.
anthill.antnet - package anthill.antnet
This package is a prototype implementation of package anthill.nest to be used during actual deployment in a real environment.
anthill.antsim - package anthill.antsim
This package contains the main interfaces used in the Anthill simulation tool, including interfaces to perform evaluations, to collect statistics, to simulate peer-to-peer networks and to generate random requests of documents.
anthill.antsim.impl - package anthill.antsim.impl
This package contains a prototype implementation of the interfaces included in package anthill.antsim.
anthill.factory - package anthill.factory
This package contains a general factory class based on reflection and XML configuration files, which could be used to configure the behavior of an Anthill simulation without need to recompile the application.
anthill.genie - package anthill.genie
This package contains the main interfaces used in the Anthill evolution framework, including interfaces to perform evaluations using genetic tools, to represent genetic codes and to manipulate populations of genetic codes.
anthill.genie.impl - package anthill.genie.impl
This package contains a prototype implementation of the interfaces included in package anthill.genie.
anthill.nest - package anthill.nest
This package contains the main interfaces needed by nest implementors.
anthill.nestor - package anthill.nestor
This package is a prototype implementation of package anthill.nest to be used during Anthill simulations.
anthill.storage - package anthill.storage
 
anthill.storage.impl - package anthill.storage.impl
 
anthill.util - package anthill.util
This package contains some utility classes performing different tasks, such as logging, printing and exceptional behavior handling.
AntId - interface anthill.AntId.
Empty interface used as a marker for ant identifiers.
AntIdImpl - class anthill.antnet.AntIdImpl.
Class AntIdImpl is the implementation of AntId to be used in a deployment environment.
AntIdImpl() - Constructor for class anthill.antnet.AntIdImpl
Builds a new identifier, by generating a random sequence of SIZE bytes.
AntListener - interface anthill.nest.AntListener.
This interface must be implemented by nests in order to receive ants from other nests.
AntView - interface anthill.AntView.
Interface AntView contains the set of methods which are accessible to ants when visiting nests.

B

Backtrack - class anthill.util.Backtrack.
This class
Backtrack() - Constructor for class anthill.util.Backtrack
 
BackwardGnutant - class gnutant.BackwardGnutant.
 
BackwardGnutant() - Constructor for class gnutant.BackwardGnutant
Default constructor for externalization
BackwardGnutant(KeyHash, Resource[], ArrayList) - Constructor for class gnutant.BackwardGnutant
Initializes a new BackwardGnutant with the set of resources to be used for updating the distributed index.
bestCode - Variable in class anthill.genie.impl.GeneticFrameworkImpl
Fittest genetic code
bestFitness - Variable in class anthill.genie.impl.GeneticFrameworkImpl
 

C

CapacityException - exception anthill.storage.CapacityException.
Base class for the exceptions thrown by Capacity.
CapacityException() - Constructor for class anthill.storage.CapacityException
Constructs a CapacityExeception with no detail message.
CapacityException(long, long, long) - Constructor for class anthill.storage.CapacityException
Constructs a CapacityExeception with the specified message.
clear - Variable in class anthill.antsim.impl.ExperimentImpl
If true, the scenario will be cleared between iterations of the experiment
clear() - Method in class gnutant.InsantScenario
Restores the object to its initial state.
clear() - Method in class gnutant.GnutantScenario
Restores the object to its initial state.
clear() - Method in class gnutant.GnutantFactory
Restores the object to its initial state.
clear() - Method in class random.RandomAntFactory
Restores the object to its initial state.
clear() - Method in class freenetant.FreenetAntFactory
Restores the object to its initial state.
clear() - Method in class anthill.antnet.ConcurrentManager
Restores the object to its initial state.
clear() - Method in class anthill.antnet.UdpGate
 
clear() - Method in class anthill.antsim.Stats
Restores the object to its initial state, setting all fields to zero, except for updating the average.
clear() - Method in class anthill.antsim.impl.ExperimentImpl
Restores the object to its initial state.
clear() - Method in class anthill.antsim.impl.TimeExperiment
Restores the object to its initial state.
clear() - Method in class anthill.antsim.impl.RangeExperiment
Restores the object to its initial state.
clear() - Method in class anthill.antsim.impl.PeernetImpl
Restores the object to its initial state.
clear() - Method in class anthill.antsim.impl.ResponseMonitor
Restores the object to its initial state.
clear() - Method in class anthill.antsim.impl.ScenarioImpl
Restores the object to its initial state.
clear() - Method in class anthill.antsim.impl.RandomResourceSet
Restores the object to its initial state.
clear() - Method in class anthill.genie.impl.GeneticScenarioImpl
Restores the object to its initial state.
clear() - Method in class anthill.genie.impl.GeneticExperimentImpl
Restores the object to its initial state.
clear() - Method in class anthill.nestor.LocalManager
Restores the object to its initial state.
clear() - Method in class anthill.nestor.LocalRequestSet
Restores the object to its initial state.
clear() - Method in class anthill.nestor.LocalGate
Restores the object to its initial state.
clear() - Method in class anthill.nestor.LocalNest
Restores the object to its initial state.
clear() - Method in class anthill.nestor.LocalTrail
Restores the object to its initial state.
clear() - Method in class anthill.nestor.LocalGeneticNest
Restores the object to its initial state.
clear() - Method in class anthill.storage.impl.LRUKeyStorage
Restore the object to its initial state
clear() - Method in class anthill.storage.impl.MemoryStorage
 
clear() - Method in interface anthill.util.Clearable
Restores the object to its initial state.
clear() - Method in class anthill.util.MapList
 
clear() - Method in class anthill.util.Queue
Removes all the elements from the queue.
Clearable - interface anthill.util.Clearable.
Interface Clearable is implemented by those objects whose content may be restored to its initial state.
compareTo(Object) - Method in class anthill.util.SHADigest
 
compareTo(SHADigest) - Method in class anthill.util.SHADigest
 
complete() - Method in class gnutant.GnutantScenario
Upcall method used to notify this listener that the request associated to it has finished to return resources.
complete() - Method in class anthill.antsim.impl.ScenarioImpl
Upcall method used to notify this listener that the request associated to it has finished to return resources.
complete() - Method in interface anthill.nest.ResponseListener
Upcall method used to notify this listener that the request associated to it has finished to return resources.
compute(Stats) - Method in interface anthill.genie.Fitness
Evaluate the fitness of a particular ant algorithm based on the statistics collected during its simulation.
compute(Stats) - Method in class anthill.genie.impl.FindingFitness
Evaluate the fitness of a particular ant algorithm based on the statistics collected during its simulation.
computeAvg() - Method in class anthill.antsim.Stats
Computes the average of all the values stored in the map, and keeps the result in the avgMap.
computed - Variable in class anthill.genie.impl.GeneticExperimentImpl
Boolean flag; true if the fitness has been already computed
computeDigest(String) - Method in class anthill.util.SHADigest
Compute a SHA-1 hash value for the specified string
computeHash() - Method in class anthill.util.SHADigest
Computes the hash code for the object.
computeRandomSHA() - Method in class anthill.util.SHADigest
Compute a random SHA-1 hash value for a simulated hash.
ConcurrentManager - class anthill.antnet.ConcurrentManager.
Implementations of Manager capable to manage multiple threads.
ConcurrentManager(int) - Constructor for class anthill.antnet.ConcurrentManager
Instantiates a thread manager by creating a number of threads which will take care of the ants.
ConfigFormatException - exception anthill.factory.ConfigFormatException.
Thrown when there is a problem parsing or validating the content of the system configuration file.
ConfigFormatException(String) - Constructor for class anthill.factory.ConfigFormatException
Constructs a ConfigFormatExeception with the specified message.
ConfigParser - class anthill.factory.ConfigParser.
Parser code to read an XML configuration file, using the supplied URL.
ConfigParser(Factory) - Constructor for class anthill.factory.ConfigParser
Constructs a parser.
ConstructorException - exception anthill.factory.ConstructorException.
ConstructorException is a runtime exception that wraps an exception thrown when using get() methods of Factory
ConstructorException(Throwable) - Constructor for class anthill.factory.ConstructorException
Constructs a ConstructorException with a target exception.
ConstructorException(Throwable, String) - Constructor for class anthill.factory.ConstructorException
Constructs a ConstructorException with a target exception and a detail message.
containsKey(Object) - Method in class anthill.util.MapList
 
containsResource(Object) - Method in interface anthill.storage.GenericStorage
Returns true if the resource associated to key is contained in the storage, false otherwise.
containsResource(Object) - Method in class anthill.storage.impl.LRUKeyStorage
Returns true if the resource associated to key is contained in the storage, false otherwise.
containsResource(Object) - Method in class anthill.storage.impl.MemoryStorage
Returns true if the resource associated to key is contained in the storage, false otherwise.
containsValue(Object) - Method in class anthill.util.MapList
 
COPY_PROB - Static variable in class freenetant.FreenetAntFactory
String name of the parameter used to determine the copy probability used by these ants.
countClasses(Object) - Static method in class anthill.util.Analyzer
Returns a collection of InstanceCount objects, one for each of the classes referenced (directly or indirectly) by the specified object.
createAntId() - Method in interface anthill.AntView
Creates a new ant identifier.
createAntId() - Method in class anthill.nestor.LocalAntView
Creates a new ant identifier.
cullRate - Variable in class anthill.genie.impl.GeneticFrameworkImpl
Percentage deemed unfit for reproduction

D

debug - Variable in class anthill.antsim.impl.ExperimentImpl
If true, methods for the analysis of experiment footprint are invoked
debug - Variable in class anthill.antsim.impl.TimeExperiment
If true, methods for the analysis of experiment footprint are invoked
debug - Variable in class anthill.antsim.impl.RangeExperiment
If true, methods for the analysis of experiment footprint are invoked
DEBUG - Static variable in class anthill.util.Log
True if the log function is active.
deliver(AntDescriptor) - Method in interface anthill.nest.AntListener
This method is invoked to notify the ant listener that an ant coming from the given nest has been received
deliver(AntDescriptor) - Method in class anthill.nestor.LocalNest
Receive an agent from outside and deliver it to the to the activity manager.
digest - Static variable in class anthill.util.SHADigest
Message digest generator used to produce hash values for strings
DIGEST_SIZE - Static variable in class anthill.util.SHADigest
Byte size of the digest values
DIGEST_TYPE - Static variable in class anthill.util.SHADigest
Name of the digest function to be used
doBacktracking(AntView) - Method in class freenetant.FreenetAnt
 
DOC_STORAGE - Static variable in interface anthill.storage.Storage
Name used to identify the standard storage for documents
DOCS_TO_DL - Static variable in class gnutant.GnutantScenario
String name of the parameter used to determine the percentage of documents to download upon receiving a set of documents as reply from the SearchGnutant.
docsDL - Variable in class gnutant.GnutantScenario
Percentage of the satisfied requests to download
doubleValue(String) - Method in class anthill.factory.Factory
Method used to obtain the double value associated to a particular configuration parameter

E

eliteRate - Variable in class anthill.genie.impl.GeneticFrameworkImpl
Percentage of population carried forward unchanged from each generation
end() - Method in class anthill.util.MapList
Close the thread.
entrySet() - Method in class anthill.util.MapList
 
equals(Object) - Method in class gnutant.UrlResourceSet
Check whether this UrlResourceSet is equal to the specified object.
equals(Object) - Method in class gnutant.UrlResource
Check whether this UrlResource is equal to the specified object.
equals(Object) - Method in class anthill.Neighbour
Check whether this LocalNid is equal to the specified object.
equals(Object) - Method in class anthill.antnet.UdpNid
Check if two UdpNid objects are equals.
equals(Object) - Method in class anthill.antnet.AntIdImpl
Check whether this AntIdImpl is equal to the specified object.
equals(Object) - Method in class anthill.antsim.impl.Rid
Check whether this Rid is equal to the specified object.
equals(Object) - Method in class anthill.antsim.impl.RandomResource
Indicates whether some other object is "equal to" this one
equals(Object) - Method in class anthill.genie.GeneticCode
Check whether this GeneticCode is equal to the specified object.
equals(Object) - Method in class anthill.nestor.LocalAid
Check whether this LocalAid is equal to the specified object.
equals(Object) - Method in class anthill.nestor.LocalNid
Check whether this LocalNid is equal to the specified object.
equals(Object) - Method in class anthill.util.SHADigest
Check whether this SHADigest is equal to the specified object.
evaluate() - Method in class gnutant.InsantScenario
Perform the evaluation of this scenario object by simulating it.
evaluate() - Method in class gnutant.GnutantScenario
Perform the evaluation of this scenario object by simulating it.
evaluate() - Method in interface anthill.antsim.Scenario
Perform the evaluation of this scenario object by simulating it.
evaluate() - Method in interface anthill.antsim.Experiment
Perform the evaluation of the current ant algorithm.
evaluate() - Method in class anthill.antsim.impl.ExperimentImpl
Perform the evaluation of the current ant algorithm.
evaluate() - Method in class anthill.antsim.impl.TimeExperiment
Perform the evaluation of the current ant algorithm.
evaluate() - Method in class anthill.antsim.impl.RangeExperiment
Perform the evaluation of the current ant algorithm.
evaluate() - Method in class anthill.antsim.impl.ScenarioImpl
Perform the evaluation of this scenario object by simulating it.
evaluate() - Method in class anthill.genie.impl.GeneticExperimentImpl
Execute the experiment, i.e. evaluate the fitness of the genetic code on each of the scenarios contained in this experimnt.
evolve() - Method in interface anthill.genie.GeneticFramework
Try to evolve a population of genetic codes, using the configuration parameters contained in this instance
evolve() - Method in class anthill.genie.impl.GeneticFrameworkImpl
Tries to evolve a population of genetic codes, using the configuration parameters contained in this instance.
execute() - Method in class anthill.antnet.ConcurrentManager
Execute an ant stored in this Manager
execute() - Method in interface anthill.nest.Manager
Force the execution of one of the ants waiting to be executed and stored in this Manager.
execute() - Method in class anthill.nestor.LocalManager
Executes an ant stored in this LocalManager.
Executor - class anthill.antnet.Executor.
This interface contains method receive(), which should be implemented by a anthill in order to receive an agent from other nests.
Experiment - interface anthill.antsim.Experiment.
The Experiment interface represents the execution of a set of Scenarios.
ExperimentImpl - class anthill.antsim.impl.ExperimentImpl.
Class ExperimentImpl is a simple implementation of Experiment which repeat the execution of a single scenario a certain number of times and returns a single Stats object containing a summary of the statistics for all the executions.
ExperimentImpl(Factory, int) - Constructor for class anthill.antsim.impl.ExperimentImpl
Instantiates a new experiment by setting the given number of times by which a scenario has to be evaluated.
ExperimentImpl(Factory, int, boolean) - Constructor for class anthill.antsim.impl.ExperimentImpl
Instantiates a new experiment by setting the given number of times by which a scenario has to be evaluated.
ExperimentImpl(Factory, int, boolean, boolean) - Constructor for class anthill.antsim.impl.ExperimentImpl
Instantiates a new experiment by setting the given number of times by which a scenario has to be evaluated.

F

factory - Variable in class gnutant.InsantScenario
Factory used to instantiate objects
factory - Variable in class gnutant.GnutantScenario
Factory used to instantiate objects
factory - Variable in class anthill.antsim.impl.ExperimentImpl
Factory used to instantiate objects
factory - Variable in class anthill.antsim.impl.TimeExperiment
Factory used to instantiate objects
factory - Variable in class anthill.antsim.impl.RangeExperiment
Factory used to instantiate objects
factory - Variable in class anthill.antsim.impl.ScenarioImpl
Factory used to instantiate objects
factory - Variable in class anthill.antsim.impl.RandomResourceSet
Factory used to instantiate objects
factory - Variable in class anthill.genie.impl.GeneticFrameworkImpl
Factory used to instantiate objects
factory - Variable in class anthill.genie.impl.GeneticExperimentImpl
Factory used to instantiate objects
factory - Variable in class anthill.nestor.LocalTrail
Factory used to instantiate objects
Factory - class anthill.factory.Factory.
A generic factory for creating object instances of a class matching a particular interface and possibly taking arguments.
Factory() - Constructor for class anthill.factory.Factory
Create a parser object and pass this factory object allowing the parser to place the parsed elements directly into the HashMap using the factory API method put.
Factory(String[]) - Constructor for class anthill.factory.Factory
Create a parser object and pass this factory object allowing the parser to place the parsed elements directly into the HashMap using the factory API method put.
FAKE_PROB - Static variable in class freenetant.FreenetAntFactory
 
fileList - Variable in class gnutant.InsantScenario
List of files to select randomly to compose fake URLs
FileResource - class anthill.antnet.FileResource.
FileResource represents a local file resource that can be added by a an anthill clients.
fillRoutingTable(Neighbour[]) - Method in class freenetant.FreenetAntPheromone
 
finalRounds - Variable in class anthill.antsim.impl.ScenarioImpl
Final rounds to be performed; during this phase, requests are not generated and statistics are computed
FindingFitness - class anthill.genie.impl.FindingFitness.
Evaluate the fitness of a particular ant algorithm based on the statistics collected during its simulation.
FindingFitness() - Constructor for class anthill.genie.impl.FindingFitness
 
Fitness - interface anthill.genie.Fitness.
Evaluate the fitness of a particular ant algorithm based on the statistics collected during its simulation.
floatValue(String) - Method in class anthill.factory.Factory
Method used to obtain the double value associated to a particular configuration parameter
flush() - Static method in class anthill.util.Log
 
footprint(Object) - Static method in class anthill.util.Analyzer
Returns the memory footprint of the specified object, computed recursively by adding the footprint of the fields of the object and the footprint of each of the objects referenced by it.
freenetant - package freenetant
This package contains a simple ant implementation that perform a random walking through a peer-to-peer network.
FreenetAnt - class freenetant.FreenetAnt.
 
FreenetAnt(RequestId, String, int, int, NestId) - Constructor for class freenetant.FreenetAnt
Instantiate a new FreeAnt by setting the query to be satisfied and the hash value to be searched.
FreenetAntFactory - class freenetant.FreenetAntFactory.
 
FreenetAntFactory(Factory, int, int) - Constructor for class freenetant.FreenetAntFactory
Constructor for the freenet ant.
FreenetAntPheromone - class freenetant.FreenetAntPheromone.
 
FreenetAntPheromone() - Constructor for class freenetant.FreenetAntPheromone
 
FreenetAntPheromone(int) - Constructor for class freenetant.FreenetAntPheromone
 
FreenetTest - class freenetant.FreenetTest.
 
FreenetTest() - Constructor for class freenetant.FreenetTest
 

G

Gate - interface anthill.nest.Gate.
The Gate interface contains the set of methods used by a nest to communicate with other nests.
generations - Variable in class anthill.genie.impl.GeneticFrameworkImpl
Number of generations to be computed
GenericStorage - interface anthill.storage.GenericStorage.
The GenericStorage represents a generic storage which enforce a simple policy based on a maximum capacity.
GeneticAnt - interface anthill.genie.GeneticAnt.
This interface extends interface Ant with methods for the management of the genetic code of ants.
GeneticAntFactory - interface anthill.genie.GeneticAntFactory.
Factory interface for creating ants with genetic codes.
GeneticCode - class anthill.genie.GeneticCode.
For a nest, the genetic code of an ant is simply a sequence of bits.
GeneticCode(boolean[]) - Constructor for class anthill.genie.GeneticCode
Construct a new GeneticCode object starting from a sequence of bits maintained in a boolean array.
GeneticCode(GeneticCode) - Constructor for class anthill.genie.GeneticCode
Construct a new GeneticCode object starting from another GeneticCode object.
GeneticExperiment - interface anthill.genie.GeneticExperiment.
An Experiment is constituted by a collection of Scenario's.
GeneticExperimentImpl - class anthill.genie.impl.GeneticExperimentImpl.
Class ExperimentImpl is a simple implementation of Experiment.
GeneticExperimentImpl(Factory, int) - Constructor for class anthill.genie.impl.GeneticExperimentImpl
Instantiates a new experiment by creating the specified number of scenarios through the specified scenario factory.
GeneticFramework - interface anthill.genie.GeneticFramework.
The GeneticFramework class is used to manage the genetic evolution.
GeneticFrameworkImpl - class anthill.genie.impl.GeneticFrameworkImpl.
Basic implementation of the GeneticFramework interface.
GeneticFrameworkImpl(Factory, int, int, int, double, double, double, int) - Constructor for class anthill.genie.impl.GeneticFrameworkImpl
Instantiates a new genetic framework
GeneticNest - interface anthill.genie.GeneticNest.
The GeneticNest interface extends Nest with methods for managing genetic codes to be used in the creation of new ants during the evaluation of the fitness of a genetic ant algorithm.
GeneticScenario - interface anthill.genie.GeneticScenario.
Interface GeneticScenario extends interface Scenario with methods for managing genetic codes to be used in the creation of new ants during the evaluation of the fitness of a genetic ant algorithm.
GeneticScenarioImpl - class anthill.genie.impl.GeneticScenarioImpl.
This is the scenario
GeneticScenarioImpl(Factory, int, int, int, int) - Constructor for class anthill.genie.impl.GeneticScenarioImpl
Instantiates a new ScenarioImpl.
get() - Method in class anthill.util.Backtrack
Writes the value i in the last position of the backtrack data structure.
get() - Method in class anthill.util.Queue
Returns the first element of the queue.
get(Class) - Method in class anthill.factory.Factory
The get method is used to obtain an instantiation of a class implementing the requested interface.
get(int) - Method in class anthill.genie.GeneticCode
Returns the content of bit i.
get(int[]) - Method in class anthill.genie.GeneticCode
Read the content of this genetic code formattted as specified by the sizes array.
get(Object) - Method in class anthill.util.MapList
Gets the value associated with the specified key.
get(Object, int) - Method in class anthill.util.TreeList
Returns a set of object values whose keys closely match that of key.
get(String) - Method in class anthill.antsim.Stats
Return the value of the counter identified by name
get(String) - Method in class anthill.factory.Factory
The get method is used to obtain an instantiation of a class implementing the requested interface.
getAddress() - Method in class anthill.antnet.UdpNid
Returns the address contained in this id.
getAnt() - Method in interface anthill.AntView
Returns the ant which is associated to this AntView.
getAnt() - Method in class anthill.nest.AntDescriptor
Return a reference to the ant associated with this ant descriptor.
getAnt() - Method in class anthill.nestor.LocalAntView
 
getAnts(GeneticCode, Object) - Method in interface anthill.genie.GeneticAntFactory
Factory method for creating ants.
getAnts(RequestId, Object, NestId) - Method in class gnutant.GnutantFactory
Returns a set of ants for a query.
getAnts(RequestId, Object, NestId) - Method in class random.RandomAntFactory
Returns a set of ants for a query.
getAnts(RequestId, Object, NestId) - Method in class freenetant.FreenetAntFactory
Returns a freenet ant for a query.
getAnts(RequestId, Object, NestId) - Method in interface anthill.AntFactory
Factory method for creating a set of ants aimed at satisfying a particular request.
getAttribute(String) - Method in class gnutant.UrlResourceSet
Returns the value associated to the specified attribute name, or null if there is no attribute with that name.
getAttribute(String) - Method in class gnutant.UrlResource
Returns the value associated to the specified attribute name, or null if there is no attribute with that name.
getAttribute(String) - Method in interface anthill.Resource
Returns the value associated to the specified attribute name, or null if there is no attribute with that name.
getAttribute(String) - Method in class anthill.antnet.FileResource
Returns the value associated to the specified attribute name, or null if there is no attribute with that name.
getAttribute(String) - Method in class anthill.antsim.impl.RandomResource
Returns the value associated to the specified attribute name, or null if there is no attribute with that name.
getAvg(String) - Static method in class anthill.antsim.Stats
Return the average value of the counter identified by name
getCapacity() - Method in class anthill.storage.CapacityException
Returns the initial capacity of the storage which raised this exception.
getCapacity() - Method in interface anthill.storage.GenericStorage
Returns the initial capacity of this generic storage.
getCapacity() - Method in class anthill.storage.impl.LRUKeyStorage
Returns the initial capacity of this generic storage.
getCapacity() - Method in class anthill.storage.impl.MemoryStorage
Returns the initial capacity of this generic storage.
getCloseNests(KeyHash) - Method in class freenetant.FreenetAntPheromone
Construct and return an array containing the neighbours nests for this node ordered by closeness of the value of the key (keyhash).
getContentLength() - Method in class gnutant.UrlResourceSet
Return the lenght of the content of the resource, if available.
getContentLength() - Method in class gnutant.UrlResource
Return the lenght of the content of the resource, if available.
getContentLength() - Method in interface anthill.Resource
Return the lenght of the content of the resource, if available; otherwise, it returns -1.
getContentLength() - Method in class anthill.antnet.FileResource
Return the lenght of the content of the resource, if available; otherwise, it returns -1.
getContentLength() - Method in class anthill.antsim.impl.RandomResource
Return the lenght of the content of the resource, if available; otherwise, it returns -1.
getCost() - Method in class anthill.Neighbour
Returns a float value representing the cost of communication with this neighbor.
getCounter() - Method in class anthill.util.InstanceCount
Return the counter contained in this object
getFile() - Method in class gnutant.UrlResource
Returns the file part of this URL.
getFitness() - Method in interface anthill.genie.GeneticExperiment
Return the evaluated fitness.
getFitness() - Method in class anthill.genie.impl.GeneticExperimentImpl
Returns the evaluated fitness.
getFittest() - Method in interface anthill.genie.GeneticFramework
Return the genetic code with the best fitness.
getFittest() - Method in class anthill.genie.impl.GeneticFrameworkImpl
Return the genetic code with the best fitness.
getGeneticCode() - Method in interface anthill.genie.GeneticAnt
Return the genetic code of this ant.
getHeadKey() - Method in class anthill.util.MapList
The key of head in the list, which can be used to remove the head from the list; suitable for implementing an LRU policy.
getId() - Method in class anthill.Neighbour
Returns the nest identifier of the neighbour
getId() - Method in class anthill.antnet.UdpGate
Returns the identifier of the Nest to which this gate is associated.
getId() - Method in interface anthill.nest.Nest
Returns the identifier of this nest
getId() - Method in interface anthill.nest.Gate
Returns the identifier of the nest containing this gate.
getId() - Method in class anthill.nestor.LocalAid
 
getId() - Method in class anthill.nestor.LocalGate
Returns the identifier of the Nest to which this gate is associated.
getId() - Method in class anthill.nestor.LocalNest
Return the identifier of this Nest
getInputStream() - Method in class gnutant.UrlResourceSet
Return an input stream to download the contents of the resource.
getInputStream() - Method in class gnutant.UrlResource
Return an input stream to download the contents of the resource.
getInputStream() - Method in interface anthill.Resource
Return an input stream to download the contents of the resource.
getInputStream() - Method in class anthill.antnet.FileResource
Return an input stream to download the contents of the resource.
getInputStream() - Method in class anthill.antsim.impl.RandomResource
Return an input stream to download the contents of the resource.
getKey() - Method in class gnutant.UrlResourceSet
Return the document identifier for this Url resource as the key.
getKey() - Method in class gnutant.UrlResource
Return the document key for this Url resource as the key.
getKey() - Method in interface anthill.Resource
Returns the key identifier of the object.
getKey() - Method in class anthill.antnet.FileResource
Returns the key identifier of the object.
getKey() - Method in class anthill.antsim.impl.RandomResource
Returns the key identifier of the object.
getKeyword() - Method in class anthill.util.KeyHash
Returns the keyword associated with this KeyHash object.
getKeyword(int) - Method in class gnutant.Keywords
Returns the keyword stored in the given position.
getLastVisited() - Method in interface anthill.AntView
Returns the identifier of the last nest visisted by this ant.
getLastVisited() - Method in class anthill.nest.AntDescriptor
Return the identifier of the last nest visited by the ant associated with this ant descriptor.
getLastVisited() - Method in class anthill.nestor.LocalAntView
 
getManager() - Method in interface anthill.nest.Nest
Returns the Manager object associated to this nest
getManager() - Method in class anthill.nestor.LocalNest
Return the Manager associated to this Nest
getMaxsize() - Method in class anthill.util.MapList
Return the maximum size of the current site.
getMaxtime() - Method in class anthill.util.MapList
Return the maximum size of the current site.
getName() - Method in class gnutant.UrlResourceSet
Returns the string identifier of the object.
getName() - Method in class gnutant.UrlResource
Returns the string identifier of the object.
getName() - Method in interface anthill.Resource
Returns the string identifier of the object.
getName() - Method in class anthill.antnet.FileResource
Returns the string identifier of the object.
getName() - Method in class anthill.antsim.impl.RandomResource
Returns the string identifier of the object.
getNeighbours() - Method in interface anthill.AntView
Ants invoke this method to obtain the list of nest neighbors known to the current nest.
getNeighbours() - Method in interface anthill.nest.Nest
Returns information about the neighbours known to this nest.
getNeighbours() - Method in class anthill.nestor.LocalAntView
Ants invoke this method to obtain the list of nest neighbors known to the current nest.
getNeighbours() - Method in class anthill.nestor.LocalNest
Return the neighbours known to this Nest
getNest() - Method in class anthill.antsim.impl.Rid
 
getNestId() - Method in interface anthill.AntView
Returns the identifier of the nest hosting the ant using this AntView.
getNestId() - Method in class anthill.nestor.LocalAntView
 
getNests() - Method in interface anthill.antsim.Peernet
Returns the collection of nests composing the simulated P2P network.
getNests() - Method in class anthill.antsim.impl.PeernetImpl
Return the nodes composing the simulated p2p network
getNextNest(KeyHash, ArrayList) - Method in class gnutant.GnutantPheromone
Obtains a set of possible next nests based on the provided keyhash.
getPheromone() - Method in interface anthill.AntView
Get the pheromone information object related to this ant.
getPheromone() - Method in class anthill.nestor.LocalAntView
Get the pheromone information object related to the species of the ant associated to this AntView object.
getPheromone(Class) - Method in class anthill.nestor.LocalNest
Return the pheromone associated to the link to this neighbour.
getPopulation() - Method in interface anthill.genie.GeneticFramework
Return the population of evolved genetic codes.
getPopulation() - Method in class anthill.genie.impl.GeneticFrameworkImpl
Return the population of evolved genetic codes.
getPort() - Method in class anthill.antnet.UdpNid
Returns the port number contained in this id.
getRemainingCapacity() - Method in class anthill.storage.CapacityException
Returns the remaining capacity of the storage which raised this exception.
getRemainingCapacity() - Method in interface anthill.storage.GenericStorage
Returns the remaining capacity of this generic storage.
getRemainingCapacity() - Method in class anthill.storage.impl.LRUKeyStorage
Returns the remaining capacity of this generic storage.
getRemainingCapacity() - Method in class anthill.storage.impl.MemoryStorage
Returns the remaining capacity of this generic storage.
getRequest() - Method in interface anthill.antsim.ResourceSet
Generate a random request.
getRequest() - Method in class anthill.antsim.impl.RandomResourceSet
Generate a random request.
getRequestedCapacity() - Method in class anthill.storage.CapacityException
Returns the requested capacity for the resource whose insertion generated this exception.
getResource() - Method in interface anthill.genie.ResourceFactory
Factory method for Resource objects.
getResource(Object) - Method in interface anthill.AntView
Performs the specified request on the local resource storage and returns the resources satisfying the request.
getResource(Object) - Method in class anthill.nestor.LocalAntView
Performs the specified request on the local resource storage and returns the resources satisfying the request.
getResource(Object) - Method in class anthill.nestor.LocalNest
Performs the specified request on the local resource storage and returns the resources satisfying the request.
getResource(Object) - Method in interface anthill.storage.GenericStorage
Returns the resource associated with the specified key.
getResource(Object) - Method in class anthill.storage.impl.LRUKeyStorage
Returns the resource associated with the specified key.
getResource(Object) - Method in class anthill.storage.impl.MemoryStorage
Returns the resource identified by the given key.
getResources() - Method in interface anthill.antsim.ResourceSet
Return an array containing the resources generated and stored in this ResourceSet.
getResources() - Method in class anthill.antsim.impl.RandomResourceSet
Return an array containing the resources generated and stored in this ResourceSet.
getResources(Object) - Method in class gnutant.UrlStorage
 
getResources(Object) - Method in interface anthill.AntView
Performs the specified request on the local resource storage and returns the resources satisfying the request.
getResources(Object) - Method in class anthill.nestor.LocalAntView
Performs the specified request on the local resource storage and returns the resources satisfying the request.
getResources(Object) - Method in class anthill.nestor.LocalNest
Performs the specified request on the local resource storage and returns the resources satisfying the request.
getResources(Object) - Method in interface anthill.storage.QueryStorage
Return the resource associated with the specified query.
getResources(Object) - Method in class anthill.storage.impl.LRUQueryStorage
Return the resource associated with the specified query.
getReturnNest(AntId, boolean) - Method in interface anthill.AntView
Returns the identifier of the previous nest in the incoming path, as stored through during the forward trip through method storePreviousNest().
getReturnNest(AntId, boolean) - Method in class anthill.nestor.LocalAntView
Lookup trail information on the Trail object stored in the nest and move to the obtained nest.
getRndKeyword() - Method in class gnutant.Keywords
Returns a random keyword from the keywordList.
getSpecies() - Method in class gnutant.BackwardGnutant
 
getSpecies() - Method in class gnutant.ResponseGnutant
 
getSpecies() - Method in class gnutant.Gnutant
 
getSpecies() - Method in class gnutant.Insant
 
getSpecies() - Method in class gnutant.TrailGnutant
 
getSpecies() - Method in class gnutant.ReplyGnutant
 
getSpecies() - Method in class gnutant.SearchGnutant
 
getSpecies() - Method in class random.RandomAnt
Returns the identifier of the "species" of this ant.
getSpecies() - Method in class freenetant.FreenetAnt
 
getSpecies() - Method in interface anthill.Ant
Returns the identifier of the "species" of this ant.
getStorage(String) - Method in interface anthill.AntView
Return a storage object identified by the given name.
getStorage(String) - Method in interface anthill.nest.Nest
Obtains a storage reference from the nest.
getStorage(String) - Method in class anthill.nestor.LocalAntView
Return a storage object identified by the given name.
getStorage(String) - Method in class anthill.nestor.LocalNest
Return a storage object identified by the given name.
getTargetException() - Method in class anthill.factory.ConstructorException
Get the thrown target exception.
getTargetException() - Method in class anthill.storage.StorageNotFoundException
Get the thrown target exception.
getTTL() - Method in interface anthill.AntView
 
getTTL() - Method in class anthill.nest.AntDescriptor
Return the remaining time-to-live of this ant.
getTTL() - Method in class anthill.nestor.LocalAntView
 
getType() - Method in class anthill.util.InstanceCount
Return the class contained in this object
getURL() - Method in class gnutant.UrlResource
Return the stringified url for this Url resource.
getUrls() - Method in class gnutant.UrlResourceSet
 
getValue(String) - Method in class anthill.factory.Factory
Method used to obtain the value associated to a particular configuration parameter
getVersion(Class) - Method in class anthill.factory.Factory
Check the version of the class, argument pair stored in the factory database under the key iface.
getVersion(String) - Method in class anthill.factory.Factory
Check the version of the class, argument pair stored in the factory database under the key iface.
gnutant - package gnutant
This package contains a simple ant implementation.
Gnutant - class gnutant.Gnutant.
 
Gnutant(RequestId, String, KeyHash, NestId) - Constructor for class gnutant.Gnutant
Instantiate a new Gnutant by setting the query to be satisfied and the hash value to be searched.
GnutantFactory - class gnutant.GnutantFactory.
 
GnutantFactory() - Constructor for class gnutant.GnutantFactory
Factory for creating Gnutant ant species.
GnutantPheromone - class gnutant.GnutantPheromone.
Gnutant Pheromone is "the routing table" of the Gnutant species.
GnutantPheromone(AntView) - Constructor for class gnutant.GnutantPheromone
Creates a new GnutantPheromone instance.
GnutantPheromone(AntView, int) - Constructor for class gnutant.GnutantPheromone
Creates a new GnutantPheromone instance.
GnutantPheromone(AntView, int, int) - Constructor for class gnutant.GnutantPheromone
Creates a new GnutantPheromone instance.
GnutantScenario - class gnutant.GnutantScenario.
Class ScenarioImpl is a simple implementation of interface Scenario in which a predefined set of resources is inserted in the network and then a certain number of requests are performed and simulate.
GnutantScenario(Factory, int, int, String) - Constructor for class gnutant.GnutantScenario
Creates a new GnutantScenario instance.
GnutantScenario(Factory, int, String) - Constructor for class gnutant.GnutantScenario
Creates a new GnutantScenario instance.
goBackward(AntView) - Method in class freenetant.FreenetAnt
Algorithm used when the ant go backward.
goForward(AntView) - Method in class freenetant.FreenetAnt
Algorithm used when moving forward.

H

hashcode - Variable in class anthill.util.SHADigest
To avoid recomputing the hash of a big integer we save it
hashCode() - Method in class gnutant.UrlResourceSet
Returns a hash code value for the object.
hashCode() - Method in class gnutant.UrlResource
Returns a hash code value for the object.
hashCode() - Method in class anthill.Neighbour
Returns a hash code value for the object.
hashCode() - Method in class anthill.antnet.UdpNid
Returns a hash code value for the object.
hashCode() - Method in class anthill.antnet.AntIdImpl
Returns a hash code value for the object.
hashCode() - Method in class anthill.antsim.impl.Rid
Returns a hash code value for the object.
hashCode() - Method in class anthill.nestor.LocalAid
Returns a hash code value for the object.
hashCode() - Method in class anthill.nestor.LocalNid
Returns a hash code value for the object.
hashCode() - Method in class anthill.util.SHADigest
Returns a hash code value for the object.
HashList - class anthill.util.HashList.
This class implements a HashList, which is a combination of a HashMap and a doubly linked list.
HashList(int) - Constructor for class anthill.util.HashList
Instantiate a new HashList object by setting the maximum number of key, value pairs which may be contained in it.
HashList(int, int) - Constructor for class anthill.util.HashList
Instantiate a new HashList object by setting the maximum number of composite Pair objects which may be contained in it.
History - class anthill.util.History.
The History class
History(boolean) - Constructor for class anthill.util.History
 

I

inc(String) - Method in class anthill.antsim.Stats
Increment by 1 the value of the counter identified by name.
init(AntView) - Method in class gnutant.BackwardGnutant
 
init(AntView) - Method in class gnutant.ResponseGnutant
 
init(AntView) - Method in class gnutant.Gnutant
FIXME: add this method to AntView; add the invocation of this method in the local nest.
init(AntView) - Method in class gnutant.Insant
Initialize the InsertGnutant at the originating nest.
init(AntView) - Method in class gnutant.TrailGnutant
 
init(AntView) - Method in class gnutant.ReplyGnutant
 
init(AntView) - Method in class gnutant.SearchGnutant
 
init(AntView) - Method in class random.RandomAnt
 
init(AntView) - Method in class freenetant.FreenetAnt
Configuration parameters for this ant.
init(AntView) - Method in interface anthill.Ant
This method is called on ants at the initialization time.
INITAL_DOCS - Static variable in class gnutant.GnutantScenario
String name of the parameter used to determine the inital number of documents to be installed at each nest.
initDocsPrNest - Variable in class gnutant.GnutantScenario
Initial documents per nest
initRandom(boolean) - Method in class anthill.util.SHADigest
Initialize a random generator.
initRounds - Variable in class anthill.antsim.impl.ScenarioImpl
Initialization rounds to be performed; during this phase, requests are generated and statistics are not computed
Insant - class gnutant.Insant.
Ant implementation for inserting a document into the anthill network.
Insant() - Constructor for class gnutant.Insant
Default constructor for externalization.
Insant(KeyHash, UrlResource) - Constructor for class gnutant.Insant
Instantiate a new Gnutant by setting the query to be satisfied and the hash value to be searched.
InsantScenario - class gnutant.InsantScenario.
Class ScenarioImpl is a simple implementation of interface Scenario in which a predefined set of resources is inserted in the network and then a certain number of requests are performed and simulate.
InsantScenario(Factory, int, String, String) - Constructor for class gnutant.InsantScenario
Instantiates a new ScenarioImpl.
insert(Resource) - Method in interface anthill.nest.Nest
Inserts a new resource in this nest.
insert(Resource) - Method in class anthill.nestor.LocalNest
Insert a new resource in this nest.
InstanceCount - class anthill.util.InstanceCount.
This class contains the number of instance objects of a particular class as computed by Analyzer.
intValue(String) - Method in interface anthill.AntView
Read from statistics
intValue(String) - Method in class anthill.factory.Factory
Method used to obtain the integer value associated to a particular configuration parameter
intValue(String) - Method in class anthill.nestor.LocalAntView
Read from statistics
intValue(String) - Method in class anthill.nestor.LocalNest
Read from statistics
isEmpty() - Method in class freenetant.FreenetAntPheromone
Check if the routing table is empty or not.
isEmpty() - Method in class anthill.util.MapList
 
isEmpty() - Method in class anthill.util.Queue
Returns true if the queue is empty.
isReachable() - Method in class anthill.Neighbour
Returns true if this neghbour is considered reachable.
iterations - Variable in class anthill.antsim.impl.ExperimentImpl
Number of times a scenario is evaluated
iterations - Variable in class anthill.antsim.impl.TimeExperiment
Number of times a scenario is evaluated
iterations - Variable in class anthill.antsim.impl.RangeExperiment
Number of times a scenario is evaluated
iterations - Variable in class anthill.genie.impl.GeneticExperimentImpl
Number of times a scenario is evaluated
iterator() - Method in interface anthill.storage.GenericStorage
Returns the complete set of resources stored in this storage object using an iterator.
iterator() - Method in class anthill.storage.impl.LRUKeyStorage
Returns the complete set of resources stored in this storage object using an iterator.
iterator() - Method in class anthill.storage.impl.MemoryStorage
Returns the complete set of resources stored in this storage object using an iterator.

K

key - Variable in class anthill.util.MapList.Pair
The key used for accessing the value.
KeyHash - class anthill.util.KeyHash.
The class KeyHash computes the digest (or hash) of a specified string keyword, and enables various other classes to compare keyword hashes and store them in a HashMap or other collections in need of a hashCode method.
KeyHash() - Constructor for class anthill.util.KeyHash
Default constructor for externalization.
KeyHash(boolean) - Constructor for class anthill.util.KeyHash
Creates a new KeyHash instance based on a randomly generated SHA-1 hash key.
KeyHash(boolean, String) - Constructor for class anthill.util.KeyHash
Compute a SHA-1 hash value for the specified keyword, or compute a random SHA-1 identifier if the keyword is equal to null.
KeyHash(String) - Constructor for class anthill.util.KeyHash
Compute a SHA-1 hash value for the specified keyword, or compute a random SHA-1 identifier if the keyword is equal to null.
keyList() - Method in class anthill.util.MapList
 
keySet() - Method in class anthill.util.MapList
 
keyword - Variable in class anthill.util.KeyHash
The keyword for this KeyHash object.
keywords - Variable in class gnutant.GnutantScenario
Keywords holder.
Keywords - class gnutant.Keywords.
Provides a holder for keywords, read from an ASCII file with a set of keywords on each line.
Keywords(String) - Constructor for class gnutant.Keywords
Loads the specified keyword file, entirely.
Keywords(String, int) - Constructor for class gnutant.Keywords
Loads the specified keyword file, limited by the number of keyword lines to load into the keyword list.
kwFile - Variable in class gnutant.GnutantScenario
Keywords filename

L

list - Variable in class anthill.storage.impl.LRUKeyStorage
HashList use to implement the LRU policy of the LRU key storage.
LocalAid - class anthill.nestor.LocalAid.
Class LocalAid is the implementation of AntId to be used during off-line simulation.
LocalAid() - Constructor for class anthill.nestor.LocalAid
Builds a new local identifier by incrementing the counter.
LocalAntView - class anthill.nestor.LocalAntView.
Class LocalAntView is a simple implementation of interface AntView, which implements methods included in it by invoking the opportune methods on the local nest.
LocalGate - class anthill.nestor.LocalGate.
Class LocalGate is the implementation of Gate to be used during off-line simulations.
LocalGate() - Constructor for class anthill.nestor.LocalGate
Initializes a new LocalGate by creating a new local nest identifier.
LocalGeneticNest - class anthill.nestor.LocalGeneticNest.
A Nest class collects the components of a Nest site: (i) a AntView object, which is the view of a Nest for an Ant; (ii) a Gate object, which manage the communication between nests; (iii) an Manager, i.e. the object which manage the activities performed by different agents.
LocalGeneticNest(Factory) - Constructor for class anthill.nestor.LocalGeneticNest
Constructs a new nest.
LocalManager - class anthill.nestor.LocalManager.
Class LocalManager is the implementation of Manager to be used during off-line simulations.
LocalManager() - Constructor for class anthill.nestor.LocalManager
 
LocalNest - class anthill.nestor.LocalNest.
A Nest class collects the components of a Nest site: (i) a AntView object, which is the view of a Nest for an Ant; (ii) a Gate object, which manage the communication between nests; (iii) an Manager, i.e. the object which manage the activities performed by different agents.
LocalNest(Factory) - Constructor for class anthill.nestor.LocalNest
Constructs a new nest.
LocalNid - class anthill.nestor.LocalNid.
Class LocalNid is the implementation of NestId for the to be used during off-line simulation.
LocalNid(LocalGate) - Constructor for class anthill.nestor.LocalNid
Builds a new local identifier
LocalRequestSet - class anthill.nestor.LocalRequestSet.
This class is a simple implementation of ResourceSet containing an hash table mapping ant identifiers to response listeners.
LocalRequestSet() - Constructor for class anthill.nestor.LocalRequestSet
Constructor
LocalTrail - class anthill.nestor.LocalTrail.
Class LocalTrail is the implementation of Trail to be used during off-line simulations.
LocalTrail(Factory) - Constructor for class anthill.nestor.LocalTrail
Instantiate a new empty Trail object.
Log - class anthill.util.Log.
This class contains a set of static methods for the management of log files.
Log() - Constructor for class anthill.util.Log
 
lookup(AntId, boolean) - Method in interface anthill.nest.Trail
Lookup the Trail object in order to obtain the identifier of the nest from which the specified ant arrived.
lookup(AntId, boolean) - Method in class anthill.nestor.LocalTrail
Lookup this LocalTrail object in order to obtain the identifier of the nest from which the specified ant arrived.
lr - Variable in class gnutant.InsantScenario
Reader for obtaining keywords
LRUKeyStorage - class anthill.storage.impl.LRUKeyStorage.
Implementation of an LRU based key storage.
LRUKeyStorage(Factory, String) - Constructor for class anthill.storage.impl.LRUKeyStorage
 
LRUQueryStorage - class anthill.storage.impl.LRUQueryStorage.
Implementation of an LRU based query storage.
LRUQueryStorage(Factory, String, String) - Constructor for class anthill.storage.impl.LRUQueryStorage
 

M

main(String[]) - Static method in class test.Test
 
main(String[]) - Static method in class freenetant.FreenetTest
 
main(String[]) - Static method in class anthill.util.Util
 
main(String[]) - Static method in class anthill.util.TreeList
 
main(String[]) - Static method in class anthill.util.Queue
 
Manager - interface anthill.nest.Manager.
The aim of a Manager is to control the execution of the ants receveid by other nests or generated locally.
map - Variable in class anthill.util.MapList
A map mapping a key identifier to a composite Pair object implementing a doubly linked list.
MapList - class anthill.util.MapList.
This class implements a HashList, which is a combination of a HashMap and a doubly linked list.
MapList.Pair - class anthill.util.MapList.Pair.
The Pair class is an inner class used to link objects stored in the map into a list.
MapList.Pair(MapList, Object, Object) - Constructor for class anthill.util.MapList.Pair
Initializing constructor, to be inserted at the tail, thus requires you to specify the previous tail.
MapList(int) - Constructor for class anthill.util.MapList
Instantiate a new MapList object by setting the maximum number of key, value pairs which may be contained in it.
MapList(int, int) - Constructor for class anthill.util.MapList
Instantiate a new MapList object by setting the maximum number of composite Pair objects which may be contained in it.
maxvalue - Variable in class anthill.antsim.impl.RangeExperiment
 
MemoryStorage - class anthill.storage.impl.MemoryStorage.
The MemoryStorage is a simple implementation of the generic storage which keeps resources in memory.
MemoryStorage(Factory, int) - Constructor for class anthill.storage.impl.MemoryStorage
Constructor for a memory capacity object
merge(Queue) - Method in class anthill.util.Queue
Add the elements of the addend queue at the end of this queue.
minvalue - Variable in class anthill.antsim.impl.RangeExperiment
 
monitor - Variable in class gnutant.GnutantScenario
Responses
monitor - Variable in class anthill.antsim.impl.ScenarioImpl
Responses
move(NestId) - Method in interface anthill.AntView
Method invoked by an ant in order to be sent to another Nest.
move(NestId) - Method in class anthill.nestor.LocalAntView
Moves an ant to the specified nest.
mutRate - Variable in class anthill.genie.impl.GeneticFrameworkImpl
Mutation rate

N

name - Variable in class anthill.antsim.impl.RangeExperiment
 
Neighbour - class anthill.Neighbour.
Class Neighbour contains the information related to another nest related to another nest.
Neighbour(NestId) - Constructor for class anthill.Neighbour
Constructs a new neighbour with the given identifier.
Neighbour(NestId, float, boolean) - Constructor for class anthill.Neighbour
Constructs a new neighbour with the given identifier and with the specified additional parameters.
Nest - interface anthill.nest.Nest.
Nest is the interface used by nest users to communicate with nests.
NEST_TTL - Static variable in class anthill.nestor.LocalNest
String name of the parameter used to determine the ttl used by these nests.
NestId - interface anthill.NestId.
Empty interface used as a marker for nest identifiers.
net - Variable in class gnutant.InsantScenario
Peernet on which the genetic code will be evaluated
net - Variable in class gnutant.GnutantScenario
Peernet on which the genetic code will be evaluated
net - Variable in class anthill.antsim.impl.ScenarioImpl
Peernet on which the genetic code will be evaluated
netVersion - Variable in class gnutant.InsantScenario
Version identifier of the peer network; when init params change, the version increase
netVersion - Variable in class gnutant.GnutantScenario
Version identifier of the peer network; when init params change, the version increase
netVersion - Variable in class anthill.antsim.impl.ScenarioImpl
Version identifier of the peer network; when init params change, the version increase
next - Variable in class anthill.util.MapList.Pair
Next pair in the linked list
nrequests - Variable in class gnutant.GnutantScenario
Number of requests to be issued per round
nrequests - Variable in class anthill.antsim.impl.ScenarioImpl
 
nscenarios - Variable in class anthill.antsim.impl.TimeExperiment
Number of scenario to be evaluated
numcodes - Variable in class anthill.genie.impl.GeneticFrameworkImpl
Number of genetic codes constituting the population
numgenes - Variable in class anthill.genie.impl.GeneticFrameworkImpl
Number of genes (bit sequences) constituting a genetic code

P

panic(Throwable) - Static method in class anthill.util.Util
Print the description of an exceptional condition and exit from it.
Peernet - interface anthill.antsim.Peernet.
The Peernet interface represents a simulated peer-to-peer network.
PEERNET_DEGREE - Static variable in class anthill.antsim.impl.PeernetImpl
String name of the parameter used to determine the degree of the nodes included in this peernet.
PEERNET_SIZE - Static variable in class anthill.antsim.impl.PeernetImpl
String name of the parameter used to determine the number of nodes included in this peernet.
PeernetImpl - class anthill.antsim.impl.PeernetImpl.
This is a basic implementation of the Peernet interface.
PeernetImpl(Factory) - Constructor for class anthill.antsim.impl.PeernetImpl
Initialize a new Peernet factory
people - Variable in class anthill.genie.impl.GeneticFrameworkImpl
Population of evolved genetic codes
PheromoneStorage - interface anthill.storage.impl.PheromoneStorage.
Storage is an empty interface which is used a marker for storage objects, which may be requested and obtained by ants when visiting nest.
PHR_STORAGE - Static variable in interface anthill.storage.Storage
Name used to identify the standard storage for documents
pop() - Method in class anthill.util.Backtrack
 
prev - Variable in class anthill.util.MapList.Pair
Previous pair in the linked list
print() - Method in class anthill.util.History
FIXME Add a parameter to print over a print writer
print(int, Object) - Static method in class anthill.util.Log
If the log is not active, print an exception on the standard output.
print(Object) - Static method in class anthill.util.Log
Prints the specified information on the standard output.
Printable - class anthill.util.Printable.
Classes extending Printable automatically inherit a toString() method which prints out their contents. i.e. the value of the fields contained in the object instances.
Printable() - Constructor for class anthill.util.Printable
 
printClasses(Object) - Static method in class anthill.util.Analyzer
Returns a string containing information about the classes referenced (directly or indirectly) by the specified object and the number of instances for each classes.
printFile(int, Object) - Static method in class anthill.util.Log
If the log is not active, print an exception on the standard output.
printFile(Object) - Static method in class anthill.util.Log
Prints the specified information on the standard output.
println(int, Object) - Static method in class anthill.util.Log
If the log is not active, print an exception on the standard output.
println(Object) - Static method in class anthill.util.Log
Prints the specified information on the standard output and terminates the line.
printlnFile(int, Object) - Static method in class anthill.util.Log
If the log is not active, print an exception on the standard output.
printlnFile(Object) - Static method in class anthill.util.Log
Prints the specified information on the standard output and terminates the line.
printStackTrace() - Method in class anthill.factory.ConstructorException
Prints the stack trace of the thrown target exception.
printStackTrace() - Method in class anthill.storage.StorageNotFoundException
Prints the stack trace of the thrown target exception.
printStackTrace(Exception) - Static method in class anthill.util.Log
Print the stack trace of the specified exception on the standard output; if the log function is active, print the stack trace on the log file as well.
printStackTrace(int, Exception) - Static method in class anthill.util.Log
If the log is not active, prints an exception on the standard output.
printStackTrace(PrintStream) - Method in class anthill.factory.ConstructorException
Prints the stack trace of the thrown target exception to the specified print stream.
printStackTrace(PrintStream) - Method in class anthill.storage.StorageNotFoundException
Prints the stack trace of the thrown target exception to the specified print stream.
printStackTrace(PrintWriter) - Method in class anthill.factory.ConstructorException
Prints the stack trace of the thrown target exception to the specified print writer.
printStackTrace(PrintWriter) - Method in class anthill.storage.StorageNotFoundException
Prints the stack trace of the thrown target exception to the specified print writer.
proxyMap - Variable in class anthill.util.TreeList
A proxy for the actual map, used to access methods from the SortedMap interface.
push() - Method in class anthill.util.Backtrack
Resizes the backtrack structure by adding the space for a new element.
put(Object, Object) - Method in class anthill.util.MapList
Add the key, value pair to the map.
put(String, String, String[], Class[], Object[]) - Method in class anthill.factory.Factory
Method used to insert or update an interface mapping in the factory database.
putAll(Map) - Method in class anthill.util.MapList
 
putValue(String, double) - Method in class anthill.factory.Factory
Method used to insert or update a double configuration value associated to a configuration name.
putValue(String, float) - Method in class anthill.factory.Factory
Method used to insert or update a double configuration value associated to a configuration name.
putValue(String, int) - Method in class anthill.factory.Factory
Method used to insert or update an integer configuration value associated to a configuration name.
putValue(String, Object) - Method in class anthill.factory.Factory
Method used to insert or update a configuration value associated to a configuration name.

Q

QueryController - interface anthill.storage.QueryController.
 
QueryStorage - interface anthill.storage.QueryStorage.
Implementation of an LRU based query storage.
Queue - class anthill.util.Queue.
The Queue class implements a queue with last-in, first-out semantics.
Queue() - Constructor for class anthill.util.Queue
Allocates a queue with default bucket size
Queue(int) - Constructor for class anthill.util.Queue
Allocates a queue with bucket size equal to size <\code>.

R

random - package random
This package contains a simple ant implementation that perform a random walking through a peer-to-peer network.
random - Static variable in class anthill.util.SHADigest
Proxy for obtaining random numbers.
RANDOM_RESOURCESET_SIZE - Static variable in class anthill.antsim.impl.RandomResourceSet
Random generator
RANDOM_TYPE - Static variable in class anthill.util.SHADigest
Name of the random function to be used
RandomAnt - class random.RandomAnt.
This class contains the implementation of a simple ant which performs a random walk through the network.
RandomAnt(RequestId, String) - Constructor for class random.RandomAnt
Instantiate a new RandomAnt by setting the query to be satisfied and the hash value to be searched.
RandomAntFactory - class random.RandomAntFactory.
 
RandomAntFactory() - Constructor for class random.RandomAntFactory
 
RandomResource - class anthill.antsim.impl.RandomResource.
A RandomResource is characterized only by its name, which is a string obtained from a long value generated randomly.
RandomResource() - Constructor for class anthill.antsim.impl.RandomResource
Construct a resource with a random name
RandomResourceSet - class anthill.antsim.impl.RandomResourceSet.
RandomResourceSet is a simple implementation of ResourceSet which generates RandomResources.
RandomResourceSet(Factory) - Constructor for class anthill.antsim.impl.RandomResourceSet
Initializes this RandomResourceSet by creating size resources.
RangeExperiment - class anthill.antsim.impl.RangeExperiment.
Class RangeExperiment is a simple implementation of Experiment which repeat the execution of a single scenario a certain number of times and returns a single Stats object containing a summary of the statistics for all the executions.
RangeExperiment(Factory, String, int, int, int) - Constructor for class anthill.antsim.impl.RangeExperiment
Instantiates a new experiment by setting the given number of times by which a scenario has to be evaluated.
RangeExperiment(Factory, String, int, int, int, int) - Constructor for class anthill.antsim.impl.RangeExperiment
Instantiates a new experiment by setting the given number of times by which a scenario has to be evaluated.
RangeExperiment(Factory, String, int, int, int, int, boolean) - Constructor for class anthill.antsim.impl.RangeExperiment
Instantiates a new experiment by setting the given number of times by which a scenario has to be evaluated.
rdigest - Variable in class anthill.util.SHADigest
A big integer for the hash code of the specified keyword.
read(String) - Method in class anthill.factory.ConfigParser
Parses the file obtained from the specified URL.
readExternal(ObjectInput) - Method in class gnutant.UrlResourceSet
Marshals this UrlResourceSet to the specified output stream.
readExternal(ObjectInput) - Method in class gnutant.Gnutant
 
readExternal(ObjectInput) - Method in class gnutant.Insant
Describe readExternal method here.
readExternal(ObjectInput) - Method in class gnutant.SearchGnutant
 
readExternal(ObjectInput) - Method in class gnutant.UrlResource
Marshals this UrlResource to the specified output stream.
readExternal(ObjectInput) - Method in class random.RandomAnt
 
readExternal(ObjectInput) - Method in class freenetant.FreenetAnt
 
readExternal(ObjectInput) - Method in class anthill.antnet.UdpNid
Read a UdpNid from a stream.
readExternal(ObjectInput) - Method in class anthill.util.SHADigest
Marshals this SHADigest to the specified input stream.
readExternal(ObjectInput) - Method in class anthill.util.KeyHash
Marshals this KeyHash to the specified output stream.
remove() - Method in class anthill.util.Queue
Removes the first element of the queue.
remove(Object) - Method in class anthill.util.MapList
Removes the specify key and its associated value from the map list.
removeChunck(int) - Method in class anthill.util.MapList
Removes the specify number of elements from the head of the linked list and also from the map.
removeNeighbour(NestId) - Method in interface anthill.AntView
Ants invoke this method to remove a neighbor nest from the list of neighbors known to this nest.
removeNeighbour(NestId) - Method in interface anthill.nest.Nest
Removes the identifier of a neighbour nest from the set of neighbours known to this Nest.
removeNeighbour(NestId) - Method in class anthill.nestor.LocalAntView
FIXME: Implement.
removeNeighbour(NestId) - Method in class anthill.nestor.LocalNest
Remove a neighbour identifier from the set of neighbour
removeResource(Object) - Method in interface anthill.storage.GenericStorage
Removes the resource associated with the specified key from the storage.
removeResource(Object) - Method in class anthill.storage.impl.LRUKeyStorage
Removes the resource associated with the specified key from the storage.
removeResource(Object) - Method in class anthill.storage.impl.MemoryStorage
Removes a resource from the storage.
REPETITION - Static variable in class anthill.antsim.impl.TimeExperiment
 
ReplyGnutant - class gnutant.ReplyGnutant.
 
ReplyGnutant() - Constructor for class gnutant.ReplyGnutant
Default constructor for externalization
ReplyGnutant(RequestId, Resource[], NestId) - Constructor for class gnutant.ReplyGnutant
Initializes a new ReplyGnutant with the set of resources to be returned, the request identifier and the identifier of the requestor nest.
request(RequestId, Object, ResponseListener) - Method in interface anthill.nest.Nest
Accepts a resource request originated by the user of this nest.
request(RequestId, Object, ResponseListener) - Method in class anthill.nestor.LocalNest
Accepts a request from the nest user.
RequestId - interface anthill.RequestId.
Empty interface used as a marker for request identifiers.
RequestSet - interface anthill.nest.RequestSet.
The RequestSet interface represents a data structure containing associations between ant identifiers and listeners interested in the responses returned by those ants.
Resource - interface anthill.Resource.
The Resource interface describes resources that may be stored in a nests.
ResourceFactory - interface anthill.genie.ResourceFactory.
Factory interface for Resource objects.
resources - Variable in class gnutant.InsantScenario
Set of resources stored in the Anthill network
resources - Variable in class anthill.antsim.impl.ScenarioImpl
Set of resources stored in the Anthill network
resources - Variable in class anthill.antsim.impl.RandomResourceSet
Resources contained in this resource set
ResourceSet - interface anthill.antsim.ResourceSet.
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.
ResponseGnutant - class gnutant.ResponseGnutant.
 
ResponseGnutant() - Constructor for class gnutant.ResponseGnutant
Default constructor for externalization
ResponseGnutant(RequestId, Resource[], NestId, AntId) - Constructor for class gnutant.ResponseGnutant
Initializes a new ResponseGnutant with the set of resources to be returned, the identifier of the requestor nest and an ant identifier to be used to obtain return information through nests.
ResponseListener - interface anthill.nest.ResponseListener.
Listener interface which must be implemented by objects that want to be notified about the results of a request.
ResponseMonitor - class anthill.antsim.impl.ResponseMonitor.
Class ResponseMonitor is
ResponseMonitor() - Constructor for class anthill.antsim.impl.ResponseMonitor
Instantiates a new ResponseMonitor.
responses(RequestId) - Method in class anthill.antsim.impl.ResponseMonitor
Returns the responses associated with the specified response identifier.
responses(RequestId, float) - Method in class anthill.antsim.impl.ResponseMonitor
Returns the responses associated with the specified response identifier if the number of responses received so far exceeds limit.
returnResources(RequestId, Resource[]) - Method in class gnutant.GnutantScenario
Upcall method used to notify this listener that the request associated to it has returned the specified set of resources.
returnResources(RequestId, Resource[]) - Method in interface anthill.AntView
This method is invoked by ants to notify the nest that the ant associated to this AntView, created to satisfy a request, has found the specified set of resources.
returnResources(RequestId, Resource[]) - Method in class anthill.antsim.impl.ScenarioImpl
Upcall method used to notify this listener that the request associated to it has returned the specified set of resources.
returnResources(RequestId, Resource[]) - Method in interface anthill.nest.ResponseListener
Upcall method used to notify this listener that the request associated to it has returned the specified set of resources.
returnResources(RequestId, Resource[]) - Method in interface anthill.nest.RequestSet
Returns the specified resources to the listener associated to the given key
returnResources(RequestId, Resource[]) - Method in class anthill.nestor.LocalAntView
This method is invoked by ants to notify the nest that the ant associated to this AntView, created to satisfy a request, is returning the specified set of resources.
returnResources(RequestId, Resource[]) - Method in class anthill.nestor.LocalRequestSet
 
returnResources(RequestId, Resource[], int) - Method in class anthill.antsim.impl.ResponseMonitor
Upcall method used to notify this listener that the request associated to it has returned the specified set of resources.
Rid - class anthill.antsim.impl.Rid.
 
Rid(Nest) - Constructor for class anthill.antsim.impl.Rid
 
ROUND_NUMBER - Static variable in class anthill.antsim.impl.ExperimentImpl
The identifier of the counter used in a Stats object to count the number of repetitions of the scenario evaluation in a experiment.
ROUND_NUMBER - Static variable in class anthill.antsim.impl.TimeExperiment
The identifier of the counter used in a Stats object to count the number of repetitions of the scenario evaluation in a experiment.
ROUND_NUMBER - Static variable in class anthill.genie.impl.GeneticExperimentImpl
The identifier of the counter used in a Stats object to count the number of repetitions of the scenario evaluation in a experiment.
ROUND_NUMBER_ID - Static variable in class anthill.antsim.impl.RangeExperiment
The identifier of the counter used in a Stats object to count the number of repetitions of the scenario evaluation in a experiment.
rounds - Variable in class gnutant.InsantScenario
Number of rounds to be performed
rounds - Variable in class gnutant.GnutantScenario
Number of rounds to be performed
rounds - Variable in class anthill.antsim.impl.ScenarioImpl
Regular rounds to be performed; during this phase, requests are generated and statistics are computed
rsetVersion - Variable in class gnutant.InsantScenario
Version identifier of the resource set; when init params change, the version increase
rsetVersion - Variable in class anthill.antsim.impl.ScenarioImpl
Version identifier of the resource set; when init params change, the version increase
run() - Method in class anthill.antnet.UdpGate
While-true loop waiting for a packet arriving from the datagram socket; the received packet is delivered to the agent listener object.
run() - Method in class anthill.antnet.Executor
Method run() of the thread.
run() - Method in class anthill.util.MapList
Periodically cleans up the staled elements in the map.
run(AntView) - Method in class gnutant.BackwardGnutant
This method encapsulate the computation performed by the ant.
run(AntView) - Method in class gnutant.ResponseGnutant
This method encapsulate the computation performed by the ant.
run(AntView) - Method in class gnutant.Gnutant
This method encapsulate the computation performed by the ant.
run(AntView) - Method in class gnutant.Insant
This method encapsulate the computation performed by the ant.
run(AntView) - Method in class gnutant.TrailGnutant
This method encapsulate the computation performed by the ant.
run(AntView) - Method in class gnutant.ReplyGnutant
This method encapsulate the computation performed by the ant.
run(AntView) - Method in class gnutant.SearchGnutant
This method encapsulate the computation performed by the ant.
run(AntView) - Method in class random.RandomAnt
This method encapsulate the computation performed by the ant.
run(AntView) - Method in class freenetant.FreenetAnt
This method encapsulate the computation performed by the ant.
run(AntView) - Method in interface anthill.Ant
This method encapsulate the computation performed by ants.

S

satisfies(Resource, Object) - Method in interface anthill.storage.QueryController
Returns the result of matching the specified query with the given resource.
satisfies(Resource, Object) - Method in class anthill.storage.impl.ANDQueryController
Returns the result of matching the specified query with the given resource.
scenario - Variable in class anthill.antsim.impl.ExperimentImpl
Scenario on which evaluate the experiment
scenario - Variable in class anthill.antsim.impl.TimeExperiment
Scenario on which evaluate the experiment
scenario - Variable in class anthill.antsim.impl.RangeExperiment
Scenario on which evaluate the experiment
Scenario - interface anthill.antsim.Scenario.
Interface Scenario represents a run of the simulation of a particular ant algorithm.
SCENARIO_ROUNDS - Static variable in class gnutant.InsantScenario
String name of the parameter used to determine the number of rounds which will be performed in this scenario.
SCENARIO_ROUNDS - Static variable in class gnutant.GnutantScenario
String name of the parameter used to determine the number of rounds which will be performed in this scenario.
SCENARIO_ROUNDS - Static variable in class anthill.antsim.impl.ScenarioImpl
String name of the parameter used to determine the number of rounds which will be performed in this scenario.
ScenarioImpl - class anthill.antsim.impl.ScenarioImpl.
Class ScenarioImpl is a simple implementation of interface Scenario in which a predefined set of resources is inserted in the network and then a certain number of requests are performed and simulate.
ScenarioImpl(Factory, int, int, int, int) - Constructor for class anthill.antsim.impl.ScenarioImpl
Instantiates a new ScenarioImpl.
scenarioVersion - Variable in class anthill.antsim.impl.ExperimentImpl
Version identifier of the scenario; when init params change, the version increase
scenarioVersion - Variable in class anthill.antsim.impl.RangeExperiment
Version identifier of the scenario; when init params change, the version increase
scenarioVersion - Variable in class anthill.genie.impl.GeneticExperimentImpl
Version identifier of the scenario; when init params change, the version increase
SearchGnutant - class gnutant.SearchGnutant.
 
SearchGnutant(RequestId, String, KeyHash) - Constructor for class gnutant.SearchGnutant
Instantiate a new SearchGnutant by setting the query to be satisfied and the hash value to be searched.
send(NestId, Ant, int) - Method in class anthill.antnet.UdpGate
Send an agent to the specified anthill.
send(NestId, Ant, int) - Method in interface anthill.nest.Gate
Sends an ant to the specified nest.
send(NestId, Ant, int) - Method in class anthill.nestor.LocalGate
Sends an ant to the specified nest.
set(int) - Method in class anthill.util.Backtrack
Writes the value i in the last position of the backtrack data structure.
setAntListener(AntListener) - Method in class anthill.antnet.UdpGate
 
setAntListener(AntListener) - Method in interface anthill.nest.Gate
Sets the ant listener, i.e. the object that will accept the ants coming from other nests.
setAntListener(AntListener) - Method in class anthill.nestor.LocalGate
Sets the ant listener, i.e. the object that will accept the ants coming from other nests.
setFileLevel(int) - Static method in class anthill.util.Log
Set the file debug level to level.
setMaxsize(int) - Method in class anthill.util.MapList
Modify the maximum size of this MapList.
setMaxtime(int) - Method in class anthill.util.MapList
Modify the maximum time of this MapList.
setOutLevel(int) - Static method in class anthill.util.Log
Set the console log level to level.
setPheromone(Object) - Method in interface anthill.AntView
Set the pheromone information object related to this ant.
setPheromone(Object) - Method in class anthill.nestor.LocalAntView
Set the pheromone information object related to the species of the ant associated to this AntView object.
setPheromone(Object, Class) - Method in class anthill.nestor.LocalNest
Return the pheromone associated to the link to this neighbour.
setStatistics(Stats) - Method in class anthill.antsim.impl.ResponseMonitor
 
setStats(Stats) - Method in class gnutant.InsantScenario
Set the statistics object which will be used throughout the scenario evaluation.
setStats(Stats) - Method in class gnutant.GnutantScenario
Set the statistics object which will be used throughout the scenario evaluation.
setStats(Stats) - Method in interface anthill.antsim.Scenario
Set the statistics object which will be used throughout the scenario evaluation.
setStats(Stats) - Method in class anthill.antsim.impl.ScenarioImpl
Set the statistics object which will be used throughout the scenario evaluation.
SHADigest - class anthill.util.SHADigest.
The class SHADigest computes the digest (or hash) of the specified content, and enables various other classes to compare the digests and store them in a HashMap or other collections in need of a hashCode method.
SHADigest() - Constructor for class anthill.util.SHADigest
Default constructor for externalization.
SHADigest(boolean) - Constructor for class anthill.util.SHADigest
Creates a new SHADigest instance based on a randomly generated SHA hash.
size - Variable in class anthill.antsim.impl.RandomResourceSet
Number of resources contained in this resource set
SIZE - Static variable in class anthill.antnet.AntIdImpl
Number of random bytes in the identifier
size() - Method in class gnutant.UrlResourceSet
 
size() - Method in class gnutant.UrlResource
 
size() - Method in interface anthill.Resource
Return the space required to store the resource object.
size() - Method in class anthill.antnet.FileResource
 
size() - Method in interface anthill.antsim.Peernet
Returns the size of the P2P network.
size() - Method in interface anthill.antsim.ResourceSet
Return the number of resources generated and stored in this ResourceSet.
size() - Method in class anthill.antsim.impl.RandomResource
 
size() - Method in class anthill.antsim.impl.PeernetImpl
Returns the size of the simulated p2p network (number of nests)
size() - Method in class anthill.antsim.impl.RandomResourceSet
Return the number of resources generated and stored in this ResourceSet.
size() - Method in class anthill.genie.GeneticCode
Returns the size of this genetic code.
size() - Method in class anthill.util.MapList
Returns the number of key-value mappings in this map.
size() - Method in class anthill.util.Backtrack
Return the number of elements stored in this backtrack data structure.
size() - Method in class anthill.util.Queue
Returns the number of elements contained in this queue
sizegenes - Variable in class anthill.genie.impl.GeneticFrameworkImpl
Size of a single gene
startRequest(RequestId) - Method in class anthill.antsim.impl.ResponseMonitor
 
stats - Variable in class gnutant.InsantScenario
Stats
stats - Variable in class gnutant.GnutantScenario
Stats
stats - Variable in class anthill.antsim.impl.ScenarioImpl
Stats
Stats - class anthill.antsim.Stats.
The Stats class enables programmers to collect information about events occurring during a simulation.
Stats() - Constructor for class anthill.antsim.Stats
Initializes an empty stats object.
step - Variable in class anthill.antsim.impl.RangeExperiment
 
storage - Variable in class anthill.storage.impl.LRUKeyStorage
A generic storage.
Storage - interface anthill.storage.Storage.
Storage is an empty interface which is used a marker for storage objects, which may be requested and obtained by ants when visiting nest.
StorageNotFoundException - exception anthill.storage.StorageNotFoundException.
StorageNotFoundException is FIXME ALB Should be a checked exception?
StorageNotFoundException(Throwable) - Constructor for class anthill.storage.StorageNotFoundException
Constructs a StorageNotFoundException with a target exception.
StorageNotFoundException(Throwable, String) - Constructor for class anthill.storage.StorageNotFoundException
Constructs a StorageNotFoundException with a target exception and a detail message.
storeReturnNest(AntId, NestId) - Method in interface anthill.AntView
Store information about the last nest visited by the ant associated with this AntView on the current nest.
storeReturnNest(AntId, NestId) - Method in class anthill.nestor.LocalAntView
Leave trail information on the Trail object stored in the nest.
stringValue(String) - Method in class anthill.factory.Factory
Method used to obtain the String value associated to a particular configuration parameter

T

test - package test
 
Test - class test.Test.
This class execute the test contained in
Test() - Constructor for class test.Test
 
tick() - Method in class anthill.antsim.impl.ResponseMonitor
 
tick(int) - Method in class anthill.antsim.impl.ResponseMonitor
 
TimeExperiment - class anthill.antsim.impl.TimeExperiment.
Class TimeExperiment is a simple implementation of Experiment which repeat the execution of a single scenario a certain number of times and returns a single Stats object containing a summary of the statistics for all the executions.
TimeExperiment(Factory, int) - Constructor for class anthill.antsim.impl.TimeExperiment
Instantiates a new experiment by setting the given number of times by which a scenario has to be evaluated.
TimeExperiment(Factory, int, int) - Constructor for class anthill.antsim.impl.TimeExperiment
Instantiates a new experiment by setting the given number of times by which a scenario has to be evaluated.
TimeExperiment(Factory, int, int, boolean) - Constructor for class anthill.antsim.impl.TimeExperiment
Instantiates a new experiment by setting the given number of times by which a scenario has to be evaluated.
toArray() - Method in class anthill.util.Queue
Copies the element of the queue in an array of objects, in the queue order.
toString() - Method in class gnutant.GnutantPheromone
Returns a string representation of the GnutantPheromone.
toString() - Method in class gnutant.UrlResourceSet
Returns a string representation of the object.
toString() - Method in class gnutant.UrlResource
Returns a string representation of the object.
toString() - Method in class anthill.Neighbour
Returns a string representation of the object.
toString() - Method in class anthill.antnet.UdpNid
Returns a string representation of the object.
toString() - Method in class anthill.antnet.AntIdImpl
Returns a string representation of the object.
toString() - Method in class anthill.antsim.impl.Rid
Returns a string representation of the object.
toString() - Method in class anthill.antsim.impl.RandomResource
Return a string representing this resource
toString() - Method in class anthill.factory.Factory
 
toString() - Method in class anthill.genie.GeneticCode
Returns a String containing this genetic code represented as a 0/1 string.
toString() - Method in class anthill.nestor.LocalAid
Returns a string representation of the object.
toString() - Method in class anthill.nestor.LocalRequestSet
 
toString() - Method in class anthill.nestor.LocalNest
 
toString() - Method in class anthill.nestor.LocalTrail
 
toString() - Method in class anthill.nestor.LocalNid
Returns a string representation of the object.
toString() - Method in class anthill.util.Printable
toString method to print out the content of an object.
toString() - Method in class anthill.util.SHADigest
Returns a string representation of the object.
toString() - Method in class anthill.util.KeyHash
Returns a string representation of the object.
toString(boolean) - Method in class anthill.antsim.Stats
Returns a semi-colon separated list of values to be printed
toString(String) - Method in class anthill.util.Printable
Auto-indenting, recursive toString() method to print out the content of an object.
Trail - interface anthill.nest.Trail.
This interface represents a container for associations (ant identifier, previous nest identifier) stored in nests.
TRAIL_MAXSIZE - Static variable in class anthill.nestor.LocalTrail
The identifier of the configuration parameter containing the maximum number of pairs (ant id, nest id) that may be stored in a Trail object.
TRAIL_MAXTIME - Static variable in class anthill.nestor.LocalTrail
The identifier of the configuration parameter containing the maximum time of permanence of a pair (ant id, nest id) in a Trail object.
TrailGnutant - class gnutant.TrailGnutant.
 
TrailGnutant() - Constructor for class gnutant.TrailGnutant
Default constructor for externalization
TrailGnutant(NestId, KeyHash, Resource[], AntId, History) - Constructor for class gnutant.TrailGnutant
Initializes a new TrailGnutant with the set of resources to be returned, the identifier of the requestor nest and an ant identifier to be used to obtain return information through nests.
TreeList - class anthill.util.TreeList.
This class implements a TreeList, which is a combination of a TreeMap and a doubly linked list.
TreeList(int) - Constructor for class anthill.util.TreeList
Instantiate a new TreeList object by setting the maximum number of key, value pairs which may be contained in it.
TreeList(int, int) - Constructor for class anthill.util.TreeList
Instantiate a new TreeList object by setting the maximum number of key, value pairs which may be contained in it.

U

UdpGate - class anthill.antnet.UdpGate.
A UdpGate is an implementation of the Gate interface based on UDP.
UdpGate(int) - Constructor for class anthill.antnet.UdpGate
Constructs a new UdpGate by instantiating a new datagram socket listening on the port contained in the anthill identifier.
UdpNid - class anthill.antnet.UdpNid.
An UDP anthill identifier is composed by an IP address plus an UDP port.
UdpNid() - Constructor for class anthill.antnet.UdpNid
Default constructor needed for externalization.
UdpNid(InetAddress, int) - Constructor for class anthill.antnet.UdpNid
Instantiates a new UDP anthill id and sets both the address and the port number.
UdpNid(int) - Constructor for class anthill.antnet.UdpNid
Instantiates a new UDP anthill id with the specified port number, using the local address as IP address.
URL_STORAGE - Static variable in interface anthill.storage.Storage
Name used to identify the standard storage for urls
UrlResource - class gnutant.UrlResource.
An UrlResource is an object containing the URL from which the content of a resource may be downloaded.
UrlResource() - Constructor for class gnutant.UrlResource
Default constructor for externalization.
UrlResource(String) - Constructor for class gnutant.UrlResource
Constructs a new UrlResource identified by the specified name.
UrlResource(String, DocumentKey) - Constructor for class gnutant.UrlResource
Constructs a new UrlResource identified by the specified name and dockey.
UrlResource(URL) - Constructor for class gnutant.UrlResource
Constructs a new UrlResource identified by the specified name.
UrlResourceSet - class gnutant.UrlResourceSet.
 
UrlResourceSet() - Constructor for class gnutant.UrlResourceSet
Default constructor for externalization.
UrlStorage - class gnutant.UrlStorage.
Implementation of an Least Recently Used (LRU) based URL storage.
UrlStorage(Factory, String, String) - Constructor for class gnutant.UrlStorage
 
Util - class anthill.util.Util.
This class contains various utility methods.
Util() - Constructor for class anthill.util.Util
 

V

value - Variable in class anthill.util.MapList.Pair
The value stored by this object
values() - Method in class anthill.util.MapList
 

W

writeExternal(ObjectOutput) - Method in class gnutant.UrlResourceSet
Marshals this UrlResourceSet to the specified output stream.
writeExternal(ObjectOutput) - Method in class gnutant.Gnutant
 
writeExternal(ObjectOutput) - Method in class gnutant.Insant
Describe writeExternal method here.
writeExternal(ObjectOutput) - Method in class gnutant.SearchGnutant
 
writeExternal(ObjectOutput) - Method in class gnutant.UrlResource
Marshals this UrlResource to the specified output stream.
writeExternal(ObjectOutput) - Method in class random.RandomAnt
 
writeExternal(ObjectOutput) - Method in class freenetant.FreenetAnt
 
writeExternal(ObjectOutput) - Method in class anthill.antnet.UdpNid
Write a UdpNid to a stream.
writeExternal(ObjectOutput) - Method in class anthill.util.SHADigest
Marshals this SHADigest to the specified output stream.
writeExternal(ObjectOutput) - Method in class anthill.util.KeyHash
Marshals this KeyHash to the specified output stream.

A B C D E F G H I K L M N P Q R S T U V W