A B C D E F G H I L M N P Q R S T U 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(AntId, ResponseListener) - Method in interface anthill.nest.RequestSet
Adds an association between ant identifier and the listener interested in the responses returned by this ant.
add(AntId, ResponseListener) - Method in class anthill.nestor.LocalRequestSet
 
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(AntView) - Method in class anthill.antnet.ConcurrentManager
Adds an ant to the queue of ants to be executed.
add(Object) - Method in class anthill.util.Queue
Appends object <\code> at the end of the queue.
add(String, float) - Method in interface anthill.antsim.Stats
Increment the value of the counter identified by name by value addend.
add(String, float) - Method in class anthill.antsim.impl.StatsImpl
Increment by 1 the value of 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 anthill to the set of neighbours known to this Nest, on behalf of an ant.
addAntResource(Resource) - Method in interface anthill.nest.Storage
Adds a resource to the storage.
addAntResource(Resource) - Method in class anthill.nestor.LocalStorage
Add a resource to the storage.
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 anthill to the set of neighbours known to this Nest, on behalf of an Nest client.
addClientResource(Resource) - Method in interface anthill.nest.Storage
Add a resource to the storage.
addClientResource(Resource) - Method in class anthill.nestor.LocalStorage
Add a resource to the storage.
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.
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(Resource) - Method in interface anthill.AntView
Add a resource to the nest.
addResource(Resource) - Method in class anthill.nestor.LocalAntView
Add the specified resource to the local nest.
ant - Variable in class anthill.nestor.LocalTrail.Pair
Identifier of the ant which visited this nest
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, AntId, 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.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

bestCode - Variable in class anthill.genie.impl.GeneticFrameworkImpl
Fittest genetic code
bestFitness - Variable in class anthill.genie.impl.GeneticFrameworkImpl
 

C

capacity - Variable in class anthill.nestor.LocalStorage
Current capacity (i.e., number of resources) of this storage
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.antsim.impl.ScenarioImpl
Restores the object to its initial state.
clear() - Method in class anthill.antsim.impl.ExperimentImpl
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.antsim.impl.StatsImpl
Restores the object to its initial state, setting all fields to zero.
clear() - Method in class anthill.antsim.impl.PeernetImpl
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.LocalStorage
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.LocalGeneticNest
Restores the object to its initial state.
clear() - Method in class anthill.util.Queue
Removes all the elements from the queue.
clear() - Method in interface anthill.util.Clearable
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
 
Clearable - interface anthill.util.Clearable.
Interface Clearable is implemented by those objects whose content may be restored to its initial state.
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.
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.
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.
computed - Variable in class anthill.genie.impl.GeneticExperimentImpl
Boolean flag; true if the fitness has been already computed
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 that parses the file given by the default URL.
ConfigParser(String, Factory) - Constructor for class anthill.factory.ConfigParser
Constructs a parser that parses the file obtained from the specified URL.
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.
cullRate - Variable in class anthill.genie.impl.GeneticFrameworkImpl
Percentage deemed unfit for reproduction

D

DEBUG - Static variable in class anthill.util.Log
True if the log function is active.
degree - Variable in class anthill.antsim.impl.PeernetImpl
The degree of the nests, i.e. the number of links to other nests
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.

E

eliteRate - Variable in class anthill.genie.impl.GeneticFrameworkImpl
Percentage of population carried forward unchanged from each generation
end() - Method in class anthill.nestor.LocalTrail
Close the thread associated to this trail.
equals(Object) - Method in class anthill.Neighbour
Check whether this LocalNid is equal to the specified object.
equals(Object) - Method in class anthill.genie.GeneticCode
Check whether this GeneticCode 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.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.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.
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.
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.ScenarioImpl
Perform the evaluation of this scenario object by simulating it.
evaluate() - Method in class anthill.antsim.impl.ExperimentImpl
Perform the evaluation of the current ant algorithm.
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 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.
execute() - Method in class anthill.antnet.ConcurrentManager
Execute an ant stored in this Manager
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, String, int) - Constructor for class anthill.antsim.impl.ExperimentImpl
Instantiates a new experiment by setting the given number of times by which a scenario of the specified class has to be evaluated.

F

factory - Variable in class anthill.genie.impl.GeneticFrameworkImpl
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.ExperimentImpl
Factory used to instantiate objects
factory - Variable in class anthill.antsim.impl.PeernetImpl
Reference to the peernet factory which created this object
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.
FileResource - class anthill.antnet.FileResource.
FileResource represents a local file resource that can be added by a an anthill clients.
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.

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
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) - Constructor for class anthill.genie.impl.GeneticScenarioImpl
Instantiates a new ScenarioImpl.
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(String) - Method in interface anthill.antsim.Stats
Return the value of the counter identified by name
get(String) - Method in class anthill.antsim.impl.StatsImpl
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
 
getAntId() - Method in interface anthill.AntView
Returns the pseudo-unique identifier of the ant associated to this AntView.
getAntId() - Method in class anthill.nestor.LocalAntView
 
getAnts(GeneticCode, Object) - Method in interface anthill.genie.GeneticAntFactory
Factory method for creating ants.
getAnts(Object) - Method in interface anthill.AntFactory
Factory method for creating a set of ants aimed at satisfying a particular request.
getAnts(Object) - Method in class random.RandomAntFactory
Returns a set of ants for a query.
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.antsim.impl.RandomResource
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.antnet.UrlResource
Returns the value associated to the specified attribute name, or null if there is no attribute with that name.
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.antsim.impl.RandomResource
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.antnet.UrlResource
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.
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.
getId() - Method in class anthill.Neighbour
Returns the nest identifier of the neighbour
getId() - Method in interface anthill.nest.Gate
Returns the identifier of the nest containing this gate.
getId() - Method in class anthill.nest.AntDescriptor
Return the identifier of the ant associated with this ant descriptor.
getId() - Method in interface anthill.nest.Nest
Returns the identifier of this nest
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
getId() - Method in class anthill.antnet.UdpGate
Returns the identifier of the Nest to which this gate is associated.
getInputStream() - Method in interface anthill.Resource
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.
getInputStream() - Method in class anthill.antnet.FileResource
Return an input stream to download the contents of the resource.
getInputStream() - Method in class anthill.antnet.UrlResource
Return an input stream to download the contents of the resource.
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
getName() - Method in interface anthill.Resource
Returns the string identifier of the object.
getName() - Method in class anthill.antsim.impl.RandomResource
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.antnet.UrlResource
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
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
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.
getPreviousNest() - 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().
getPreviousNest() - Method in class anthill.nestor.LocalAntView
Lookup trail information on the Trail object stored in the nest and move to the obtained nest.
getRequest() - Method in interface anthill.antsim.ResourceSet
Generate a random request.
getRequest() - Method in class anthill.antsim.impl.RandomResourceSet
Generate a random request.
getResource() - Method in interface anthill.genie.ResourceFactory
Factory method for Resource objects.
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 interface anthill.AntView
Performs the specified request on the local resource storage and returns the resources satisfying the request.
getResources(Object) - Method in interface anthill.nest.Storage
Returns the set of resources stored locally which satisfy the request.
getResources(Object) - Method in class anthill.nestor.LocalAntView
Performs the specified request on the local nest and (possibly) returns the resources satisfying the request.
getResources(Object) - Method in class anthill.nestor.LocalStorage
Returns the Resource objects which satisfy the specified request.
getSpecies() - Method in interface anthill.Ant
Returns the identifier of the "species" of this ant.
getSpecies() - Method in class random.RandomAnt
Returns the identifier of the "species" of this ant.
getTargetException() - Method in class anthill.factory.ConstructorException
Get the thrown target exception.
getTTL() - Method in class anthill.nest.AntDescriptor
Return the remaining time-to-live of this ant.
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.

H

hashCode() - Method in class anthill.Neighbour
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.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.
head - Variable in class anthill.nestor.LocalTrail
Head of the list connecting the pairs; pairs will be removed here

I

inc(String) - Method in interface anthill.antsim.Stats
Increment by 1 the value of the counter identified by name.
inc(String) - Method in class anthill.antsim.impl.StatsImpl
Increment by 1 the value of the counter identified by name.
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 anthill.
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

L

list - Variable in class anthill.nestor.LocalStorage
LRU queue
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, int) - 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, int) - Constructor for class anthill.nestor.LocalNest
Constructs a new nest, by putting together a Storage (a resource database), a Gate (i.e. the basic API for communicating with other nests) and an Manager (i.e., a thread handler managing the agent execution).
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
LocalStorage - class anthill.nestor.LocalStorage.
LocalStorage is a simple implementation of the Storage interface, aimed at serving as resource repository for nests during the off-line simulation.
LocalStorage(int) - Constructor for class anthill.nestor.LocalStorage
Builds a new empty storage, with the given capacity.
LocalTrail - class anthill.nestor.LocalTrail.
Class LocalTrail is the implementation of Trail to be used during off-line simulations.
LocalTrail.Pair - class anthill.nestor.LocalTrail.Pair.
The Pair class is an inner class used to link objects in the hash table in a list.
LocalTrail.Pair(LocalTrail, AntId, NestId, LocalTrail.Pair) - Constructor for class anthill.nestor.LocalTrail.Pair
Initializing constructor
LocalTrail(int, int, int) - Constructor for class anthill.nestor.LocalTrail
Instantiate a new Trail object by setting the maximum number of pair (ant id, source) which may be contained in it.
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) - 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) - 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.

M

main(String[]) - Static method in class random.RandomTest
 
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.nestor.LocalStorage
Hash map for obtaining resources
map - Variable in class anthill.nestor.LocalTrail
Hash table mapping ant identifiers to the nest from which the ant has arrived.
merge(Queue) - Method in class anthill.util.Queue
Add the elements of the addend queue at the end of this queue.
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

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 - Variable in class anthill.nestor.LocalTrail.Pair
Identifier of the nest from which this nest has arrived
Nest - interface anthill.nest.Nest.
Nest is the interface used by nest users to communicate with nests.
NestId - interface anthill.NestId.
Empty interface used as a marker for nest identifiers.
nests - Variable in class anthill.antsim.impl.PeernetImpl
Nest network
nestVersion - Variable in class anthill.antsim.impl.PeernetImpl
Nest version
net - Variable in class anthill.antsim.impl.ScenarioImpl
Peernet on which the genetic code will be evaluated
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.nestor.LocalTrail.Pair
Next pair in the linked list
NUMBER_OF_ROUNDS_ID - 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.
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.
PeernetImpl - class anthill.antsim.impl.PeernetImpl.
This is a basic implementation of the Peernet interface.
PeernetImpl(Factory, int, int) - 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
prev - Variable in class anthill.nestor.LocalTrail.Pair
Next pair in the linked list
print(int, Object) - Static method in class anthill.util.Log
If the log is not active, print an exception on the standard output.
print(int, String) - 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.
print(String) - 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
 
println(int, Object) - Static method in class anthill.util.Log
If the log is not active, print an exception on the standard output.
println(int, String) - 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.
println(String) - 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(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(PrintWriter) - Method in class anthill.factory.ConstructorException
Prints the stack trace of the thrown target exception to the specified print writer.
put(String, String, Object[]) - Method in class anthill.factory.Factory
Method used to insert or update an interface mapping in the factory database.

Q

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.antsim.impl.ScenarioImpl
Random number generator
RandomAnt - class random.RandomAnt.
This class contains the implementation of a simple ant which performs a random walk through the network.
RandomAnt(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(int) - Constructor for class anthill.antsim.impl.RandomResourceSet
Initializes this RandomResourceSet by creating size resources.
RandomTest - class random.RandomTest.
 
RandomTest() - Constructor for class random.RandomTest
 
readExternal(ObjectInput) - Method in class anthill.antnet.UdpNid
Read a UdpNid from a stream.
readExternal(ObjectInput) - Method in class anthill.antnet.UrlResource
Marshals this UrlResource to the specified output stream.
readExternal(ObjectInput) - Method in class random.RandomAnt
 
remove() - Method in class anthill.util.Queue
Removes the first element of the queue.
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
request(Object, ResponseListener) - Method in interface anthill.nest.Nest
Accepts a resource request originated by the user of this nest.
request(Object, ResponseListener) - Method in class anthill.nestor.LocalNest
Accepts a request from the nest user.
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 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.
ResponseListener - interface anthill.nest.ResponseListener.
Listener interface which must be implemented by objects that want to be notified about the results of a request.
returnResources(AntId, Resource[]) - Method in interface anthill.nest.RequestSet
Returns the specified resources to the listener associated to the given ant identifier.
returnResources(AntId, Resource[]) - Method in class anthill.nestor.LocalRequestSet
 
returnResources(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(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(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(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.
rounds - Variable in class anthill.antsim.impl.ScenarioImpl
Number of rounds to be performed
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.nestor.LocalTrail
Periodically scans the linked list of pairs in order to remove staled pairs (ant id, nest id).
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(AntView) - Method in interface anthill.Ant
This method encapsulate the computation performed by ants.
run(AntView) - Method in class random.RandomAnt
This method encapsulate the computation performed by the ant.

S

scenario - Variable in class anthill.antsim.impl.ExperimentImpl
Scenario on which evaluate the experiment
Scenario - interface anthill.antsim.Scenario.
Interface Scenario represents a run of the simulation of a particular ant algorithm.
scenarioClass - Variable in class anthill.antsim.impl.ExperimentImpl
Class name of the scenario to be used
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) - 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
send(NestId, AntDescriptor) - Method in interface anthill.nest.Gate
Sends an ant to the specified nest.
send(NestId, AntDescriptor) - Method in class anthill.nestor.LocalGate
Sends an ant to the specified nest.
send(NestId, AntDescriptor) - Method in class anthill.antnet.UdpGate
Send an agent to the specified anthill.
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.
setAntListener(AntListener) - Method in class anthill.antnet.UdpGate
 
setFileLevel(int) - Static method in class anthill.util.Log
Set the file debug level to level.
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.
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.
size - Variable in class anthill.antsim.impl.RandomResourceSet
Number of resources contained in this resource set
size - Variable in class anthill.antsim.impl.PeernetImpl
The size of the network, i.e. the number of nests included in it
size - Variable in class anthill.nestor.LocalStorage
Current size (i.e., number of resources currently stored in this storage)
SIZE - Static variable in class anthill.antnet.AntIdImpl
Number of random bytes in the identifier
size() - Method in class anthill.genie.GeneticCode
Returns the size of this genetic code.
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.RandomResourceSet
Return the number of resources generated and stored in this ResourceSet.
sizegenes - Variable in class anthill.genie.impl.GeneticFrameworkImpl
Size of a single gene
stats - Variable in class anthill.antsim.impl.ScenarioImpl
Stats
Stats - interface anthill.antsim.Stats.
The Stats interface enables programmers to collect information about events occurring during a simulation.
StatsImpl - class anthill.antsim.impl.StatsImpl.
The Stats class enables programmers to collect information about events occurring during a simulation.
StatsImpl() - Constructor for class anthill.antsim.impl.StatsImpl
Initializes an empty stats object.
Storage - interface anthill.nest.Storage.
The Storage interface represents the resource storage component of a nest.
storePreviousNest() - Method in interface anthill.AntView
Store information about the last nest visited by the ant associated with this AntView on the current nest.
storePreviousNest() - Method in class anthill.nestor.LocalAntView
Leave trail information on the Trail object stored in the nest.

T

tail - Variable in class anthill.nestor.LocalTrail
Tail of the list connecting the pairs; pairs will be added here
time - Variable in class anthill.nestor.LocalTrail.Pair
Creation time; used to detect when a link is stale
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 anthill.Neighbour
Returns a string representation of the object.
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.antsim.impl.RandomResource
Return a string representing this resource
toString() - Method in class anthill.nestor.LocalAid
Returns a string representation of the object.
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.antnet.UdpNid
Returns a string representation of the object.
toString() - Method in class anthill.antnet.AntIdImpl
Returns a string representation of the object.
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.

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.
UrlResource - class anthill.antnet.UrlResource.
An UrlResource is an object containing the URL from which the content of a resource may be downloaded.
UrlResource() - Constructor for class anthill.antnet.UrlResource
Default constructor for externalization.
Util - class anthill.util.Util.
This class contains various utility methods.
Util() - Constructor for class anthill.util.Util
 

W

writeExternal(ObjectOutput) - Method in class anthill.antnet.UdpNid
Write a UdpNid to a stream.
writeExternal(ObjectOutput) - Method in class anthill.antnet.UrlResource
Marshals this UrlResource to the specified output stream.
writeExternal(ObjectOutput) - Method in class random.RandomAnt
 

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